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!
We met a problem about design the report.
There is a Table in report detail section. In each TextBox of table cell,it will be set a text value in table_Binding event. I want to set some textbox's font color to red. For example,whose value is "1". I use Textbox.style.color to do that. But because the table and textbox is in detail section, it seems this operation will change the color of template (affect all pages), not only one page include the textbox which value is "1". That's wrong result.
Do you have any other idea to implement such functions?