This is the below code I have used to export data to pdf from report viewer control in web application.
Dim warnings As Warning() = Nothing
Dim streamids As String() = Nothing
Dim mimeType As String = Nothing
Dim encoding As String = Nothing
Dim extension As String = Nothing
Dim bytes As Byte()
bytes = rptReportViewer.LocalReport.Render("PDF", Nothing, mimeType, encoding, extension, streamids, warnings)
Using fs As New FileStream(bytes, FileMode.Create)
fs.Write(bytes, 0, bytes.Length)
End Using
I am getting error in the bold line.
Please post solution for this post
Thanks in Advance
...
Go to the complete details ...