How to make the same font of the exported PDF file and CR designer in Crystal reports - crystal-reports

My report in exported PDF version and in CR designer are not the same. The font in the PDF looks smaller than in the designer and I don't know why. Of course, that makes a big problem for me, because I am getting unused "white space". The problem is shown in the image below:
I am using SAP Crystal Reports 2013. Thanks in advance.

I found this, I needed to create a registry key: HKEY_CURRENT_USER\Software\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\Export\PDF\ForceLargerFonts
And then to set: ForceLargerFonts to the value dword: 00000001
And it works fine now.

Related

SolaimanLipi font is breaking the connected word in iReport exporting PDF

I am using iReport 5.6.0 version. I am trying to work with custom font, in my case SolaimanLipi.ttf. It works perfectly in internal view. But when I export to PDF file then it is breaking with the combined letter (for my case: Bengali). I have googled for it and try some but no luck.
My attempts are as follows.
When adding TTF font:
In iReport view:
In exported PDF - broken:
Support for Indic scripts in PDF has been introduced in JasperReports 6.2.0, see the changelog.
You will not be able to benefit from that with iReport 5.6.0. I suggest downloading the latest Jaspersoft Studio release from here.

Different Results Of Report Generation In IReport preview And Using Jasperreports API

I want my report pages to have A4 format. to do this i used 'report->Page Format...' in iReport. In PDF preview everything seems to be ok. But when i use the .jasper file to generate report from my application it has only one long page instead of a couple of standart pages. What is wrong with it? how can i tell jasper to generate multi-page report?
iReport version is 3.7.1
Both generated report and iReport preview i'm viewing with adobe reader.
Thanks for your replies
I found the solution. It appears that you should explicitly set IS_IGNORE_PAGINATION parameter to false in pdf exporter. Unckecking it in iReport doesn't work.
params.put("IS_IGNORE_PAGINATION", false);
JasperPrint reportOut = JasperFillManager.fillReport(report, params, dataset);
I hope it will help somebody

Why my report has strange fonts when I export it to PDF file?

Hi
I have a report which has been created by Crystal Reports 8.5.
When I run my application (vb6) and wanna show the report, every thing is all right but problem begins when I export it to PDF file. The .pdf file has strange fonts and can NOT be read .
I have used "Tahoma" font for displaying text on the report.
What is your solution? Is there any solution?
Maybe your .rpt got corrupted somehow? Try building a new test report from scratch and use the same setup to export it to PDF. If that works, then you'll probably have to rewrite your real report from scratch.

Reverse Engineering Crystal Reports Definition Files

We're creating a metamodel of our report definitions within our central metadata repository. We know how to "harvest" SSRS reports since they are XML. IS there any easy way to do the same for Crystal Reports. We're interested in getting to anything CR understands about the report (similar in concept to the SSRS RDL Model)
TIA,
Paolo
Use the Crystal Reports SDK (Java or .Net version) to convert the object hierarchy to an XML representation.
Samples:
Visual Basic .Net: RptToXml
C# .Net: RptToXml
PowerShell: PsCrystal
You can get a report definition text file if you export the crystal report as...you guessed it "Report Definition(TXT)" It has the crystal version and lots of info for each section such as datafields, formatting, etc...
Check http://www.reportminer.com/, it includes a diff tool (although after exporting to text you can use the diff'er of your choice).
AFAIK, there is no way to do this. CR files are in a closed and proprietary format. :-(
I used something like this once to debug a Crystal problems, it might help:
rpt Inspector
RptToRdl.Com (http://www.RptToRdl.com) will do this for you for $25. Check out their FAQ, and you can get one done for free.

Storing Crystal Reports in XML files?

I was talking to somebody a recently who mentioned it was possible to store reports created using Crystal Reports as XML files.
Upon Googling this, I can't find anything suggesting that this is the case (using data stored in XML in a report, yes, but actually storing the report, the part stored by default as a .rpt file, no.
Am I correct in assuming that there was in fact some sort of misunderstanding between us and it in fact not possible to do this?
It is not possible to store the report template in XMLformat. XML is supported as export format of the "rendered" report only.
For what purpose do you need the report template in XML format. There is a Java reporting solution called Crystal-Clear which can read the Crytsal Reports report template and save it as XML report template. The other way round this does not work. After you created a XML file you cannot open the report with Crystal Reports again. But you can work with the report using Crystal-Clear which is coming with a GUI-designer too.
Use the Crystal Reports SDK to convert the RPT file format to XML.
There's a GitHub project that will convert RPT to XML. The intent of the tool is to use for diffs, so I don't know if there is a XML to RPT converter. Crystal Reports certainly can not take the XML file and open it like a .RPT file.
At least in version 8.5 XML-file is one of the supported export destinations just like PDF, Excel or Word. Seems unlikely they'd have removed the support in later versions.
I just tested in Crystal Reports 10.
Open up the report you want to export, click on export in the file menu, and at least in CR 10, XML is at the very bottom.
Next a screen appears, asking for directory and base file name to save to. According to the Window it uses "Crystal Markup Language" XML Format