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!
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With