Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Poor graphics resolution exporting to PDF

Status
Not open for further replies.

KerryC

Technical User
Apr 9, 2002
36
CA
I have an application written in VB.NET that uses a Crystal Reports Viewer to allow the user to export a file to pdf. The report has a logo on it that gets quite choppy when printed from the pdf file.

I know there is a known issue in regards to this, and I've done the registry edits on my computer as outlined in the Business Objects KnowledgeBase article c2009714, and this helps immensely when reports are exported from Crystal Reports itself, or from my application running on my computer. However, when exporting from my application when it is installed on a computer that does not have Crystal Report installed, the logo still prints with low resolution. I edited the registry on that computer, adding the registry path and keys specified in the KB article but that doesn't seem to help.

Has anyone come accross this before, and been able to solve it?

Cheers,
Kerry
 
hi
check the acrobat setting in regards to images setting
in the pdf program

Durango122
if it moves and should not used Duck Tape
if does not move and should used WD-40
 
Thanks Durango. I had a look at the pdf settings under vb.net and near as I can tell, the only options are

PdfRtfWordFormatOptions.FirstPageNumber
PdfRtfWordFormatOptions.LastPageNumber
PdfRtfWordFormatOptions.UsePageRange

Nothing regarding images. I wonder where the final executable is getting the BitMapMagnifNumerator setting specified in the KB article? As I said - on my machine when I change that setting in the registry the change in resolution carries through to documents exported from my application, not just the local installation of CR.

Regards,
Kerry
 
I don't think the problem is in your code.

The default printer settings are used to define things like font support, page size and some graphics settings. Select a laser or ink jet printer, or configure a pretend printer on LPT1. That might fix things.

Or in the report designer, set the report to "No printer" and save it prior to processing in your app.

Editor and Publisher of Crystal Clear
 
Hi KerryC,

I just wondering if you solved your problem by setting "No Printer" or another way? I have a similar problem.

Corres
 
Hi Corres

No, unfortunately this didn't help. I tried both setting the report to 'No Printer' and changing the laser printer resolution to it's highest setting and re-savig the report. I still find it odd that making the registry changes outlined in the KB article on my pc make it print the higher res graphic from my application, no matter what the printer setting in the report.

Please do post back if you happen upon a solution..

Kerry
 
Ah ha! I have CR V9 on my machine, and the report I'm using was created in V9. In my .NET application the reference for CrystalDecisions.CrystalReports.Engine says Version 9.1.5000.0 so I had only added the registry keys for Version 9 to my test machine (the one without Crystal Reports installed). Just for fun (and desperation) I decided to add the keys for V8.5 and lo and behold - it now prints with the higher resolution. I don't understand it, but it works so I'm happy for now.

Kerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top