ورود

View Full Version : سوال: export در کریستال ریپورت



as987498749874
جمعه 25 بهمن 1392, 13:24 عصر
سلام دوستان
به علت اینکه نوشته ها موقع پیش نمایش در کریستال ریپورت جالب نمایش داده میشه اونو به پی دی اف اکسپرت کرد و با ادوبی ریدر نمایش داد

فقط مشکل تغییر سایز فونت بعد تبدیل هست که با کد پست زیر حل میشه

اگه سوالی بود در خدمتم




1. Run -> Regedit

2.Open HKEY_CURRENT_USER\SOFTWARE\Crystal Decisions\10.0\Crystal Reports\Export -> Right Click On 'Export' Folder and select New->key ->Name 'PDF'
3. Right Click -> Select New -> DWARD Value (32 Bit) -> Name is 'ForceLargerFonts' -> Change Value to '1'

4-open HKEY_LOCAL_MACHINE\SOFTWARE\Crystal Decisions\10.0\Crystal Reports -> Right Click On 'Crystal Reports' Folder and select New->key ->Name 'Export'
5- -> Right Click On 'Export' Folder and select New->key ->Name 'PDF'
6- Redo Item 3


7-Restart Windows
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Font Size Decreases When Export to PDF in Crystal Report
If barcode size is not what you expect when export to PDF in Crystal Report, you need to look no further for solution.
To fix the bug, just follow steps below by adding 2 registry keys.
1. Select Start > Run. Type regedit and click OK.
2. For Crystal Reports 2008, Expand HKEY_CURRENT_USER\Software\Business Objects\Suite 12.0\Crystal Reports\Export.
For Crystal Reports 11.0, Expand HKEY_CURRENT_USER\Software\Business Objects\Crystal Reports.
For Crystal Reports 10.0, Expand HKEY_CURRENT_USER\SOFTWARE\Crystal Decisions\10.0\Crystal Reports\Export
For Crystal Reports 9,0, Expand HKEY_CURRENT_USER\software\crystal decisions\9.0\Crystal Reports\Export
3. Right-click the Export folder and select New > Key. This creates a new folder. Name the new folder PDF.
4. Right-click the PDF folder and select New > DWORD Value.
5. Name this 'ForceLargerFonts' with no quotes and note that it is case sensitive.
6. Double-click ForceLargerFonts and change the Value data to 1 and click OK.
7. Close all the registry folders and expand the following registry For Crystal Reports 2008, HKEY_LOCAL_MACHINE\Software\Business Objects\Suite 12.0\Crystal Reports.
For Crystal Reports 11.0, HKEY_LOCAL_MACHINE\Software\Business Objects\Suite 11.0.
For Crystal Reports 10.0, HKEY_LOCAL_MACHINE\SOFTWARE\Crystal Decisions\10.0\Crystal Reports
For Crystal Reports 9.0, HKEY_LOCAL_MACHINE\Software\Crystal Decisions\9.0\Crystal Reports
8. Right-click the Crystal Reports folder and select New > Key. Name this key Export.
9. Right-click the Export folder and select New > Key. This creates a new folder. Name this folder PDF.
10. Repeat steps 4 through 6.
11. Close the Registry Editor and restart Crystal Reports.
After adding these two registry keys, Crystal Reports won't have this font size problem any more.
However, if you want to generate barcode in Crystal Reports from IIS server, you need to modify permissions of these registry keys.
IIS security model prevents the application pool identity to read those registry entries by default.
Open Windows application Regedit and browse to
HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Crystal Reports\Export\PDF
Right click the key and choose “Permissions” from context menu.
Add in default IIS user account. Usually it's IUSR_MachineName.

mohammadmowlavi
جمعه 02 اسفند 1392, 16:31 عصر
از این کد چطور باید استفاده کنیم