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

Exporting Crystal Report to text file through VB

Status
Not open for further replies.

21544

Programmer
Apr 12, 2002
3
DE
I need to export a Crystal Report to a text file format from a VB Form.
I can do it in the Crystal report designer but from VB I have no idea.

I have found out these two properties to use from VB but could not find the code to give the path of the file.

CrystalReport.Destination = crptToFile
Crystalreport.PrintFileType = crptText


Can any one help me in this matter, its kind of urgent.

Best regards,
Khokhar
 
report.ExportOptions.FormatType = crEFTPaginatedText
report.ExportOptions.DestinationType = crEDTDiskFile
report.ExportOptions.DiskFileName = sPath & sFilename
report.export false

schould work
 
Thanks buddy, I was able to solve it with almost the same solution you had sent.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top