or
Dim report As New Report1()
Dim mimetype As String = String.Empty
Dim extension As String = String.Empty
Dim encode As Encoding = Nothing
Dim buffer As Byte() = ReportProcessor.Render("PDF", report, Nothing, mimetype, extension, encode)
Dim fs As New IO.FileStream("C:\temp\a.pdf", IO.FileMode.Create)
fs.Write(buffer, 0, buffer.Length)
fs.Flush()
fs.Close()
Result:
1. On the line (Dim buffer...), error "Use the "new" keyword to create an object instance", please help.
2. How do I open the pdf file in browser or RadWindows? (I am not good in javascript and my application must use the pdf temp file rather than direct showing pdf in browser)
Benson.