VB.NET, export Crystal Reports to XML using crystal reports engine .net component

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
        With exportOpt
            .DestinationOptions = diskFile
            .ExportDestinationType = ExportDestinationType.DiskFile
            .ExportFormatType = ExportFormatType.PortableDocFormat  '<---- change to XML somehow?  new component or different component?
        End With

    End Sub

Thanks in advance
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Nope, no XML.


What is the report based on? What XML output format do you want?
cmgtechAuthor Commented:
with the CRAXDRT, I was exporting to whatever native XML format crystal uses and then using an XSLT to transform it into something useful to myself.

Do you think there is any other way to export to something that I can get into xml format at some point using the .NET component?
Sure... you could export to HTML40 and pray you can hack that into something usable with XSLT...

Otherwise, you'll have to create a dataset directly from the report's base (query/stored procedure) and dump that with XmlWriter.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cmgtechAuthor Commented:
I won't be able to do the second because I do not have direct access to the server.  I am only using these crystal reports because that is all i have access to.  I am doing a select * from each table, turning them into xml and merging what I need into a nested xml document... it is a pain in the ass and not very elegant but it works... sometimes.  the CRAXDRT is cousing me some grief and I have fixed it using the .NET component to do some PDF files so I might just be up a creek.  Thanks for your help though.
cmgtechAuthor Commented:
Ill give the HTML a shot for a bit but may have to explore new avenues.  Thanks for the help.  Full points awarded for saving me more time searching for the ellusive XML export.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.