Symptom
When exporting to PDF format from Crystal Reports Designer or through a .NET application Viewer or through direct code the right character is chopped off
Environment
- Crystal Reports for Visual Studio
- Crystal Reports 2016
- Crystal Reports 2020
Reproducing the Issue
I tried 3 versions of usp10.dll, all with same result:
- 1.0422.3790.1830
- 1.0626.7601.23259
- 10.0.17763.864
I tried also different printers
- adobe pdf
- Brother
- HP
- local and network printer
I tried with "no printer". But then the truncation even gets worse.
All tested with "ForceLargerFonts" set to 1.
I tried to switch screen resolution to 800x600.
You can reproduce it:
- Put the following text in a text box (width: 17.725, height:1.136) Font: Arial, Size:10
- Die vorläufige Datenabschrift weist Ihre bisherigen, provisorischen Noten sowie die ECTS der absolvierten Module aus.
- Then export to pdf, it will be truncated.
Resolution
This issue was reported to R&D and a fix will be released in CR for VS SP 30, due out February, 2021. Note: the fix is in crxf_pdf.dll
Try this first, change the Paragraph and add .2 to the right indentation:
- Right click on every Object affected, one at a time
- Select Format Field
- Select the Paragraph tab
- Change the right value to 0.2
Test the results.
Or
Add the registry key “AdjustTextObjectWidthDynamically” as DWORD, set the value as 1 to enable it, set the value as 0 or delete it to disable it
For Cystal Reports for Visual Studio:
For 32 bit version of MS Windows:
HKEY_LOCAL_MACHINE\Software\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\Export\PDF\
For 64 bit version of MS Windows:
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\Export\PDF\
For Crystal Reports 2016:
For 32 bit version of MS Windows:
HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Suite XI 4.0\Crystal Reports\Export\PDF\
For 64 bit version of MS Windows:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SAP BusinessObjects\Suite XI 4.0\Crystal Reports\Export\PDF\
For Crystal Reports 2020:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SAP BusinessObjects\Suite XI 4.0\Crystal Reports\Export\PDF\
Keywords
CR for VS, Truncation, export, pdf, sp30 , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem