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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

On export to PDF, loss of custom font

Status
Not open for further replies.

ciscowiz

MIS
Apr 21, 2004
146
US
I use CR 9 with Windows 2000. I have a custom TrueType font I created to show our company logos. If the report is viewed and exported to PDF in the CR Designer, the logo shows up fine. If the report is viewed over the web via CE9, the logo shows up fine in the AcitveX viewer but on export to PDF, the font is substituted for Arial, I believe. If I view the report over the web using my custom app with the .NET crystalreportviewer, the logo shows up fine. If I export it though, I get the same results, the custom font is disregarded and Arial is used instead. The custom font is installed on the server and the client. Anybody have any idea why I am losing my font on the export?

Thanks,
Bryan
 
Bryan,

It has to do with the export dll for Adobe Acrobat - if it doesn't recognise the font it will substitute another. It is common behavior for PDF export within Crystal.

I hope this helps

Cheers
paulmarr
 
So is it using a different export dll for CE and .NET than it is for the CR designer, because the export works fine in the CR Designer. I thought they all used the crxf_pdf.dll located in programfiles\commonfiles\crystaldecisions\2.0\bin. What are the other PDF export DLLs called and what are their locations?

Thanks,
bryan
 
Bryan,

You said the font was a custom True Type Font - is this font registered on the server running CE? I think they do use the same dll - but I have had the same behavior appear on exports through CE. I'm thinking that maybe the font you are using is not available on the report server machine hosting CE.

I hope this helps

Cheers
paulmarr
 
The font is installed on the server machine and the client. Like I said, on the server, within the designer, the font is exported to PDF successfully. It is only when you involve CE or my custom .NET app that the export to PDF does not work. BUT the logo/font shows up fine in the CE/.NET viewer, it is only on the EXPORT to PDF that I lose my font. You can't really say Adobe doesnt recognize the font because I can produce PDFs with the logo/font and you can't really say the server doesn't have it available because the logo/font shows up fine in the designer, viewers, notepad, anywhere really. What else is weird is on my XP machine I can export it fine in my .NET app, the server is Windows 2000 so maybe thats it I dunno anymore this sucks.

Is there a difference between installing a font and "registering" a font as you described?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top