Hi,
I need some help retrieving the active set report parameters from a web report viewer.
I have a aspx page with the report viewer on it, in addition to the viewer I also have a custom email button. When the user clicks on that button I would like to sent a mail with the current report as a attachment. Problem with that is that when the user changes a few report parameters I have to apply those changes to report before I create the PDF file.
The creation of the PDF file I'm doing with the report processor:
Dim
reportProcessor
As
New
Processing.ReportProcessor()
Dim
deviceInfo
As
New
Hashtable()
Dim
instanceReportSource = reportViewer.ReportSource
Dim
result
As
Processing.RenderingResult = reportProcessor.RenderReport(
"PDF"
, instanceReportSource, deviceInfo)
Problem with the code above is that the parameters of the report viewer report source are the original parameters and not the ones who the user has changed.
Anyone suggestions how I can send the displayed report as a PDF attachment in a mail?