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.
- How to export rdlc report to PDF without using ReportViewer. ' Create an instance of ReportViewer Dim viewer. = viewer.LocalReport.Render('PDF.
- 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.
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...
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....
Not the answer you're looking for? Browse other questions tagged c#asp.net-mvcasp.net-mvc-4pdf-generationrdlc or ask your own question.
I was wondering if is possible to send/print data from DataGridView
directly to rdlc report without binding it to ReportViewer
control.
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
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