This is a migrated thread and some comments may be shown as answers.

Help Exporting a report

0 Answers 33 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Brad Williams
Top achievements
Rank 1
Brad Williams asked on 16 Apr 2010, 03:52 PM
I have the below code to export a report into a memory stream:

        Dim reportDocument As New ReportClass.myReport

        reportDocument.ReportParameters(0).Value = myNum

        Dim reportProcessor As New ReportProcessor()
        Dim result As RenderingResult = reportProcessor.RenderReport("PDF", reportDocument, Nothing)

        Dim ms As New MemoryStream(result.DocumentBytes)
        Dim myAttachment As New Attachment(ms, "PO_" + myPONum + ".pdf")

Visual Studio generates an error message on the line that reads: "Dim result as RenderingResult = reportProcessor...."

The error message reads "There is no source code available at the current location"

What have I done wrong?

Thanks!

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Brad Williams
Top achievements
Rank 1
Share this question
or