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

PDF Export in Crystal Reports 8.5 1

Status
Not open for further replies.

bluehorseshoe

Programmer
May 14, 2002
8
AU
Hi,

I'm using the Crystl32.ocx in a VC++ application. I would like to generate a report from a predefined rpt file and email it in a PDF format.

I don't seem to be able to create a PDF format. Have been able to create .rpt, .xls, .rtf and others but not PDF. I'm using the SetPrintFileType(...) function.

Anyone know the trick?

Thanks

Peter
 
.PDF is owned by Adobe. To create a PDF you will need to have 1 of 2 programs installed Adobe Acrobat or PDF factory. Acrobat is very versatile but costs a couple hundred bucks. PDF factory only creates PDF's but is only about 30 bucks.
 
I'm using VB to run a Crystal Report and generate a PDF file and then email it from my VB code. No licenses or 3rd parties required. The Export DLL's are part of CR 8.5

I set the File Type to PDF (I think the value is 31) and the file name should be a .PDF Editor and Publisher of Crystal Clear
 
Thanks for the replies. Gotta say the documentation for the VC++ is pretty ordinary.

I have been able to request the creation of a PDF file and have it dispayed on the screen. From there I can email it to whereever. I don't seem to be able to do it via my application though. ie creation then sent straight to the email. I think I must be not setting a parameter or something.

Sorry to be a pain Cort and Chelseatech but any ideas.

Peter
 
this works ok for me

re_main.ExportOptions.FormatType = crEFTPortableDocFormat
re_main.ExportOptions.PDFExportAllPages = True
re_main.ExportOptions.DestinationType = crEDTDiskFile
re_main.ExportOptions.DiskFileName = sPath
re_main.Export False
 
Well heck. I learn something every day. I thought Adobe had a copyright on the creation of PDF files. Thanks for the info.
 
I've used pdfFactory and had good results. Bring up the preferences window and look at the SETUP tab. There is a drop-down box that talks about "Show Dialog". You can set this to "NO - SEND EMAIL" and when you route output to this virtual printer, it will be composed into a PDF document and tucked into an email for you to address and send. That's the closest I got to making it automatic.

cheers....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top