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] [bigears] [bigears]](/data/assets/smilies/bigears.gif)
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] [bigears] [bigears]](/data/assets/smilies/bigears.gif)