generate report, save pdf without user intervention or viewing
I currently have a Crystal Report 8.5 using the Dev edition inside my VB6 application that I use a form with the crviewer to run, there are a few paramaters I pass with code.
My boss as an additional request now wants to generate the report,save as pdf, and mail it using MAPI along with other attachments without the user ever seeing the actual report in the viewer. I can handle the other attachments I just don't know how to generate the Crystal Report input the paramaters save etc without the user seeing it and without any user intervention.
Any suggestions as to how to do this would be appreciated.
Re: generate report, save pdf without user intervention or viewing
Hello scostell , I was searching the forum for Generating PDF files from VB without user intervention and found this thread. Your code helped me and I was able to generate report in PDF. Thank a lot. I am facing two small problems... a. If my database (*.mdb) is password protected then it is not working and giving me and error "Server has not opened." b. If on report I have any formula field, then how to set the values of this field. Thanks,
Re: generate report, save pdf without user intervention or viewing
You could use the ConnectionProperties object to pass the password to the rpt when you load it in the vb6 app
I can help you more if you post the Datasource properties of the rpt
In the Crystal reports ide, menu / Database / Set Datasource Location
Expand the Properties level and post them
Also post your actual code where you load & export the rpt
JG
... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...