Im trying to get dynamic pdf files attached to my Crystal Report. I tried inserting a pdf dummy file using OLE object on crystal reports and going through the following steps:
Format Graphic (of the OLE) --> Picture --> Graphic Location --> Picked the column with the pdf files location and unique names
When I preview the report it still ONLY shows the dummy pdf. Any thoughts?
Thank you very much in advance,
MA
The Dynamic Graphic Location will only be able to work with 'image' file types (Example: .JPG, .BMP and .TIFF) and if a formula is used to dynamically change the image according to a database value, the data will change as expected so the correct image is displayed.
If an image is used the Dynamic Graphic Location will work as expected however if a non-image file type such as .RTF, .PDF are used then this will not work within this formula editor since they are not Graphic files.
If you want to use the Dynamic Graphic Location, your .PDF files would need to be converted to a graphic file such as .JPG, .BMP etc.
Related
In my project there is a function to produce a PDF file based on a custom template for each customer. in order to do that I use SelectPDF, then add in ASP.NET Razor files and exporting it as a PDF. sometimes I'm asked for specific fonts, so I add them to my .LESS file for the template using #font-face.
now I have a task to create a PDF that may be later converted to a PowerPoint file via Adobe. the problem is that Adobe doesn't know how to handle the custom fonts I use.
for example, this is what I get with the PDF:
and this is what happens after I convert it via Adobe:
is it keep the custom fonts from the PDF export to the PowerPoint file
generally for such a font to be supported it should be 100% embeded as a font not subset as a range of characters.
Then the Full TTF name should be in the fontlist
If the pdf2pptx converter is doing its job correctly, and has access for fallback, it should then use RockwellNova, as seen here without embed and with embed
however since PPTX rarely embed the fonts it will be down to the system substitution when viewing the pptx.
I am trying to convert a pdf file to a crystal report file, is that even possible? IS there a software tool out there that does that?
I have looked on-line but can't find anything
The answer is no.
But given that the question is a bit odd (Crystal needs a data source), perhaps what you are after is embedding a PDF form outline in Crystal.
That can be done by inserting the PDF (or an image of the form) in the page header and taking advantage of the 'Uderlay Following Sections' option. This would make the form outline act as the background for the rest of the report, allowing you to position dynamic content on top of that image.
Is there a way to export images to XML from SSRS?
Images column invisible when I open XML file via excel.
When export my report to excel directly no problem i can see the images.
Any suggestion?
Thanks,
You can't do this because the XML renderer is a data renderer that writes to a text file, much like the CSV renderer. That means that it doesn't attempt to export certain formatting and visual elements. Excel won't ever be able to load them because they weren't saved in the file in the first place. Just as if you were loading an exported CSV.
The Excel renderer, on the other hand, is a layout renderer which attempts to preserve those visual elements. Sometimes at the cost of making the data more difficult to work with.
Per the MDSN reference, https://msdn.microsoft.com/en-us/library/dd283112.aspx:
The XML rendering extension returns a paginated report in XML format. The schema for the report XML is specific to the report, and contains data only. Layout information is not rendered and pagination is not maintained by the XML rendering extension.
And https://msdn.microsoft.com/en-us/library/dd255234.aspx:
The Excel renderer is primarily a layout renderer. Its goal is to replicate the layout of the rendered report as closely as possibly in an Excel worksheet and consequently cells might be merged in the worksheet to preserve the report layout.
XML files themselves are text-based and rarely contain images. Even with image data stored as Base64, that would not achieve the result of having a column display images when opening in Excel.
One area where XMLs were used to store image data were the 2003 XML Office document formats, which stored them in a <pkg:binaryData>element. There's a chance you could generate such a file using an XLST transformation and a lot of work. But that is likely beyond the scope of your question, and at that point you would be better served just using the Excel renderer.
I have a Crystal Report 8.5 file, that I need to export to PDF.
That report contains a field that I need to represent as Bar Code. To achieve that I use a TrueType font.
If I open the generated PDF file on that machine I see the bar code.
But if I open it from another machine that doesn't have the font installed, I see only numbers.
How can I assure that the codebar is visible on the PDF even if the computer doesn't have the font installed?
If you do not want to include a font, you can generate an image and call it via HTTP.
The barcode below is generated using an online barcode generator courtesy of WASP:
http://www.waspbarcode.com/services/waspbarcode/barcodegen.ashx?symbology=Code128&code=font_missing_31301980
Steps for Report:
Create blank JPG using MS Paint. Resize without aspect ratio checked on.
Insert image placer holder such as 50x323 PNG into Crystal Report
Right-click on graphic and select Format Graphic...
Click on Picture tab, click on Formula, Enter Formula
Create a formula where like the URL above. You want to retrieve the barcode data from the database and concatenate the prefix and barcode field together:
"http://www.waspbarcode.com/services/waspbarcode/barcodegen.ashx?symbology=Code128&code=" + {table.barcode_field}
Take care to use your own online barcode generator. WASP service may not work if people starting abusing the service and generate too many barcodes for reports.
You can also generate Code 3 of 9 barcodes using HTML only, but I haven't tried in Crystal Report formula yet.
You have to embed the barcode font into the PDF!
Very likely the following has happened:
The PDF is generated on a machine that (obviously) has the mentioned TrueType barcode font installed locally, but the barcode font isn't embedded into the PDF.
Hence the same machine can still display that barcode correctly (because the font is available from the machine's local installation).
The same barcode font is NOT installed on your $other machine.
Hence $other machine cannot display that barcode correctly because it has to use a substitute font.
To rectify that situation, you have two options:
Install that barcode font onto every single machine which will ever have to process, display or print that PDF. This is the worse alternative.
Make your PDF generating software embed the barcode font into the PDF. Then you do not need to care about any machine that ever opens, displays, processes or prints the PDF. This is the better alternative!
If you use a barcode image library, such as this barcode 3 of 9 image creating library for Crystal Reports, you will need not install font to each computers.
You must have the Bar Code font installed on the machine that is rendering the report if you are exporting to PDF because Crystal Reports does not embed fonts due to licensing issues.
However, you can print to a PDF printer, and select the option to embed the fonts into the file.
There are issues embedding fonts with 8.5 and SAP is not going to be very helpful as it is such an old version.
I had done this, so whenever you want the custom font style in crystal report, you have to install that font in server machine where your application host.
So if font is available, then report will map the font style and display as normal font.
There is one rule when you want other than standard font : as you installed font in your local machine to check pdf, the same process you will done on to the application server where your application are host or simply say the location (means server) / computer of your crystal report's physical files.
To show bar-code value in your crystal report, you just need to choose font in the format text of controls. Reports automatically display that, if it find the font, other wise gives error of font missing or not show properly bar-code section.
I have a small trouble with Japanese symbols when I save rasterized PDF document into PNG. I tried to convert PDF file into the PNG with help of pitron.PDF.Rasterizer in my Windows Store application. Another files with embedded fonts are converted without problems, but this file does not contain embedded fonts and looks horrible.
Thanks, any help will be appreciated.
Please check that Аpitron.Core.Winrt.winmd is placed at the same folder as Аpitron.PDF.Rasterizer.dll.
Your PDF file requires external fonts and they could not be loaded at runtime without the types declared in metadata.