Render Rdlc To Pdf Without Reportviewer

Jul 08, 2010  Home / ASP.NET Forums / Advanced ASP.NET / SQL Server Reporting Services / PDF or Print a.rdlc report without a reportviewer PDF or Print a.rdlc report without. I am trying, to Render Report on windows application for export to pdf without report viewer. I can do with Web application but I have hard time with windows app. Please help me with any suggestion.

  1. How to export rdlc report to PDF without using ReportViewer. ' Create an instance of ReportViewer Dim viewer. = viewer.LocalReport.Render('PDF.
  2. Smcgrath1977 Member. RDLC - Export directly to Excel or PDF from codebehind May 10, 2010 02:55 PM|smcgrath1977|LINK. Is is possible to export directly to Excel or PDF from a code behind file without showing the reportviewer first and without the user having to click the export button.
Active2 years, 9 months ago

I am facing problem in last two days. I am trying to view rdlc report as pdf without reportviewer. I export rdlc to pdf using the following code...

The pdf file exported to User->AppData->Temp

I want to render this pdf file to the client PC.

This Code is work fine on my local machine. But when i publish this to IIS Server and run for try to get the exported pdf file to client PC not success. How can i solve this issue. Can anyone help me.

Thanks In Advance...

Osman Goni
Osman GoniOsman Goni

1 Answer

Finally, i found one solution about view RDLC report as pdf in asp.net MVC. The solution is following....

I use the following method for generate pdf from RDLC....

Osman GoniOsman Goni
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Not the answer you're looking for? Browse other questions tagged c#asp.net-mvcasp.net-mvc-4pdf-generationrdlc or ask your own question.

Active5 months ago

I was wondering if is possible to send/print data from DataGridView directly to rdlc report without binding it to ReportViewercontrol.

Localreport render

There are many threads about binding dgv data to report viewer control.I don't want to create another form with report viewer control, but use existing form with data on DataGridView and on print button to send the data to RDLC report and print it.

Is it possible?
Thanks

Reza Aghaei
74.4k9 gold badges71 silver badges192 bronze badges
NavCoreNavCore
4401 gold badge6 silver badges19 bronze badges

1 Answer

Print without showing Print dialog

As an option you can print an RDLC report programmatically using LocalReport object and CreateStreamCallback callback function. Here is a complete msdn walkthrough:

Print with showing Print dialog

As another option put a ReportViewer on form and set the Visible property of the control to false then pass data to the report and when the RenderingComplete event fired, call PrintDialog:

For the first option (print without showing print dialog), I've created a Print extension method which you can easily use it this way:

Localreport Render

Here is the extension method:

Reza AghaeiReza Aghaei
74.4k9 gold badges71 silver badges192 bronze badges
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

C# Reportviewer Rdlc

Not the answer you're looking for? Browse other questions tagged c#winformsreportrdlc or ask your own question.