General information
Category:
Reports & Report designer
>Is there a way I can run a VFP program or form that runs a Crystal Report that creates a Crystal Report .RPT file, but then export it into a Word document.
>
>I have the first part of the equation working where I run a Crystal Report from a VFP EXE. I am wondering what to do after that with the .RPT file. I am trying to avoid a user having to run Crystal Reports to export the .RPT file to Word.
>
>I would like to do everything under control of VFP. Any thoughts or ideas on how to go about this? Thank you very much.
>
>Meanwhile, I will check out the Crystal Reports website for answers too.
Steve:
I used a very old version of Crystal Reports so this may not necessarily be helpful. But..........
I have a VFP 6 form with the Crystal Active X control on it.
There is a Destination property which can be set to FILE with a corresponding PrintFileName property. There is also a PrintFileType property for which a value of 17 (Uses the Microsoft Word for Windows format to save the data in the report).
As I said, my version is very old but I hope this gives you a start
.......Rich
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only