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

Crystal 10 - Export to PDF 1

Status
Not open for further replies.

tb

Programmer
May 27, 2003
328
Hi all,

I am experiencing a weird problem when exporting a Crystal 10 report to PDF through code.

I must admit that I didn't write the code - and that the programmer that did has left the company ...
But the code is simple and straight forward.

crReport.DisplayProgressDialog = True
crReport.ExportOptions.DestinationType = crEDTDiskFile
crReport.ExportOptions.DiskFileName = "Path\FileName.pdf"
crReport.ExportOptions.FormatType = crEFTPortableDocFormat
crReport.Export False

The error occurs on the last line .. on export
Err.number = -2147191858
Err.Description = "This field name is not known."

Now this is where it gets very weird. The other reports export fine ... no changed has been made to the reports since they last worked.

What do you think?
A problem on the report / code ??
Any comments or ideas would be much appreciated.

Thanks,
[flowerface]

I was standing in the park, wondering why frisbees got bigger as they came closer... then it hit me!
 
you should check the odbc in the report, maybe a change was made in the DB and a field is now missing for the report

Mal'chik [bigglasses]
 
Thanks !!
That was exactly it!!

* 4 u

I was standing in the park, wondering why frisbees got bigger as they came closer... then it hit me!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top