VB.NET, export Crystal Reports to XML using crystal reports engine .net component
Posted on 2004-11-30
is there an easy way to export to xml rather than pdf in thsi scenario? I cannot find anything on the net that has anything on it at all. I used to be using CRAXDRT and it had the method in the same place as the PDF export. the .net component does not...dammit.
here is the code:
Private Sub Export(ByVal myReport, ByVal arr)
Dim exportOpt As New ExportOptions()
Dim diskFile As New DiskFileDestinationOptions()
diskFile.DiskFileName = "c:\xml\" & arr & ".pdf"
exportOpt = myReport.ExportOptions
.DestinationOptions = diskFile
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.PortableDocFormat '<---- change to XML somehow? new component or different component?
Thanks in advance