Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export to PDF with expanded drilldown the report viewer by C #?

How do I export to excel or pdf with all data already expanded (Drill Down) in the report viewer.

Export to PDF for example, the data that are part of the drilldown not appear.

Is there any way to configure it via C #?

Here's a part of my code:

byte[] bytes = report.ServerReport.Render("PDF");
string fsFileName = "C:\Reports\MyReport.pdf";
FileStream fs = new FileStream(fsFileName, FileMode.Create);
fs.Write(bytes, 0, bytes.Length);
fs.Close();

I thank you very much!

like image 716
Kreverson Julho Avatar asked Nov 02 '22 09:11

Kreverson Julho


1 Answers

The Report viewer loads a report definition language (RDL) file, and can then output the result in the viewer or like you want to do export it to PDF/Word/Excel...

Are you working on a web app? or desktop? anyway here is a link where you can open and write a PDF file to the browser directly in ASP.NET.

like image 158
Overmachine Avatar answered Nov 15 '22 04:11

Overmachine