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

export to a .txt file by vs.net?

Status
Not open for further replies.

meg25

Technical User
Apr 15, 2002
8
SG
hi..

can anyone tell me how to code and export a crystal report to a .txt file using vs.net? i have managed it in .rtf but i am unable to process the formatting that comes with it, and therefore hope for a .txt file. below is my code in my aspx page for .rtf, where cr is my crystalreport.

Dim DiskOpts As CrystalDecisions.Shared.DiskFileDestinationOptions = New CrystalDecisions.Shared.DiskFileDestinationOptions()
cr.ExportOptions.ExportDestinationType = CrystalDecisions.[Shared].ExportDestinationType.DiskFile
cr.ExportOptions.ExportFormatType = CrystalDecisions.[Shared].ExportFormatType.RichText
DiskOpts.DiskFileName = "d:\Output.rtf"
cr.ExportOptions.DestinationOptions = DiskOpts
cr.Export()

in the fourth last line, there is an option of exportformattype.noformat. i suppose that might be what i want. however, that brings another problem. what will me my diskfilename then? "d:\output.???"

any help is deeply appreciated. [bigears]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top