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] [flowerface] [flowerface]](/data/assets/smilies/flowerface.gif)
I was standing in the park, wondering why frisbees got bigger as they came closer... then it hit me!
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] [flowerface] [flowerface]](/data/assets/smilies/flowerface.gif)
I was standing in the park, wondering why frisbees got bigger as they came closer... then it hit me!