hi
i want to save report to pdf as binary to insert this report save in the database (sqlserver) such as one field of record.
plz help me .
sorry for bad English.
save report befor view in webviewer in pdf file
save report befor view in webviewer in pdf file
Hello,
You can load a report, render it and then export it to the memory stream, and then, convert the stream into the necessary format and insert it into the database.
Thank you.
You can load a report, render it and then export it to the memory stream, and then, convert the stream into the necessary format and insert it into the database.
Code: Select all
//Load report, Render
StiReport report = new StiReport();
report.Load("e:\\Report.mrt");
report.Render(false);
//Export fotmat Pdf to stream
MemoryStream stream = new MemoryStream();
report.ExportDocument(StiExportFormat.Pdf, stream);
//Your code for insert into database stream.ToArray()
...
save report befor view in webviewer in pdf file
Hi Aleksey,
Excellent, your code does exactly what I want.
More thanks
Excellent, your code does exactly what I want.
More thanks
save report befor view in webviewer in pdf file
Ok!
Have a nice day!
Thank you.
Have a nice day!
Thank you.