Crystal report when exported to pdf looks different on development machine and server - pdf

I am exporting crystal report to pdf format. On development machine the pdf document looks perfect but on server, the right hand section of entire pdf document is cut off a little bit.
I am using sub reports. On server the right border of all the sub reports and minor text is getting cut off.

Suggests here that in the Crystal Report client, go to Page Setup and select No Printer.
Crystal Report create strange PDF format on server
That might resolve your difference in the output.

Related

SSRS 2008: Strange characters in PDF after exporting report to PDF

I have a set of reports created with SQL Server Business Intelligence Studio 2008.
Reports run on SSRS 2008 and exported to PDF.
In PDF files, however, some of the text cannot be found by "Find". If this text is copied from PDF and pasted into a text document, a strange combination of symbols is pasted - i.e. Copy "1400" from PDF and "1e4d0it0e" is pasted, see screenshot below.
Another strange feature: the same field, in this case "Id", is presented in two tables in the same report, and in the first case some Ids are "garbled" in PDF, but in the second all are rendered correctly. I can see no visible differences between tables.
Any ideas on how to prevent such behaviour?
I found why this is happening, even though it makes no sense to me.
Where the text is displayed properly in the PDF, the textbox has a setting CanGrow=true.
Where the text is "garbled" in PDF after Copy-Paste, the textbox has a setting CanGrow=false.
Changing the setting on the textbox fixes the issue.

Font missing with Crystal Reports generated PDF

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.

Exporting Crystal Report into PDF causes a freeze - Vb.Net2003

I have an application developed with Vb.Net 2003 and using Crystal Reports 11 used to preview many statistical reports.
I always preview any report successfully, but when exporting some of the reports (not all) into PDF using the built-in export functionality in the report viewer control, the application freezes forever.
So, I need to know if there is any report object (textobject, Picture, Chart, line, box, etc..) that might not be able to be exported into PDF, and I think this type of object is only found in some of my reports and that's why I face this problem only with some of the reports and not all of them.
The most common reason this happens is that not all the variables you use in the report are filled. So make sure of that. Otherwise you should get an error on the object you use. Do you get an error on exporting?

SSRS 2008 huge pdf report, blank pages

We are having an issue while generating a huge PDF Report. We are using SSRS 2008 and a particular report generates more than 1000 pages. If I export to PDF format, the data is populated upto page no. 465 and rest of the pages till 1000 are totally blank. I have Adobe Reader 9.0 installed on my machine and I thought there should be some issue with the reader itself. I upgraded to Adobe Reader 10 but experiencing same issue. Everytime I generate the report and export to PDF (using the report viewer webcontrol), the pages become blank after 465. There is absolutely no problem with the data (the stored procedure which I am using to load customers) and I have verified in the backend. We had this issue last month and somehow it got fixed automagically. Now again we have the same issue. Any help please?
Apparently there was nothing wrong with SSRS or Adobe reader or anything related to caching. Some of the sections in each page were pushed to next page due to increase in height of an image. When I readjusted the height of the embedded image control, everything went fine.

SSRS report losing formatting in interactive viewer

I have an SSRS report with two subreports that had been working fine. Recently I added some additional table sections to the report and I started seeing an issue when the report was displayed in the interactive viewer. The data is fine but the formatting on the last two table sections does not appear in the viewer.
The formatting actually stops working half way through the next to last report. However, when I print the report (or export to a PDF), all of the formatting is there and the report prints fine.
I have tried splitting the report into more subreports, running with different data and it still does not display correctly in the interactive viewer. The report and subreports do have a lot of formatting and table sections and I am wondering if the RDL files are too big to store in memory or if they even do get stored in memory.
The RDL file sizes are 61 kB for the main report and 2612 kB and 2608 kB respectively for the subreports. Is there a size limitation on the RDL files? Any ideas?
I have found a work around for my problem. If I render my report directly to a PDF, then the report will not display in the interactive viewer, but only as a PDF which displays correctly. This is done by adding "&rs:Format=PDF" to my URL when I call it from my C# program that allows the user to input the parameters. Then the user can print the report and never see the missing formatting in the interactive viewer. This works for my, however, I would still like to know if there is another answer that allows it to view correctly in the interactive viewer or if I have surpassed some memory limitations.
If you split the report into its component parts does it display ok? If as you say you have recently added some new sections/Sub reports to it if you remove them does it look ok again.
You have probably got some strange overlapping happening, in the report designer when the report complies check the warning tag to see if it gives you any clues