I am trying to get a Crystal report to automatically export to a PDF file at a specific name and location. I want this to occur on the form load event (or form activate event) in a VB6 project. I beleive I have almost all the parts needed to do this but I still am having some dificulty.
I want the Report called "crptLocalTest.dsr" which is already in the project as a crystal report.
(or I can also run a "LocalTest.rpt" that can be in the local app directory)
I want it to export in PDF format to the directory called C:\Temp\
I want it named Output.pdf
It will also need to overwrite the "Output.pdf that will be currently in the directory.
I want this all to occur withiut any prompting past starting the VB app. It seems like I need to modify some of the code below that I have been working with.....
crptLocalTest.ExportOptions.DiskFileName = ("C:\Temp\Output.PDF")
crptLocalTest.Action = 1
crptLocalTest.ExportOptions.FormatType = crEFTPortableDocFormat
Can anybody help me make my way through this, I am pretty new to VB so try to keep it as simple as possible.