Is there a way to process a LocalReport object (got this part done) and get it displayed after, in a ReportViewer control, on another form? The idea is to print without the ReportViewer (already done) but, if the user wants to can also preview what he is about to print.
I'm using Visual Basic .NET SDK 3.5 and Visual Studio 2008. Can also use 2010, if needed.
I tryed to do something like this:
ReportViewer1.LocalReport = myLocalReport
but without luck since LocalReport property on ReportViewer is read only...
Any hint on this? Thanks in advance.
(I know to preform this using the ReportViewer1.LocalReport method. All I want is to create a single code and bind it either to the printer directly or to the preview form)
LocalReport is read only, but ReportPath and ReportEmbeddedResource is setable
Try something like this, or if your Report is not embedded try to set ReportPath property of LocalReport