Hi,
I have question regarding printer option page which pop up when i click on print button on crystalreportviewer and when i click okay on that pop up page it displays print preview of the report.
Is there any way to skip that pop up window(Printer Option) and just display (PDF)print preview screen instead?
(I am not exporting report to pdf, just want to display printview screen and when the user click on print button it will print out the page)
I have tried following code but i am getting error:
"Object reference not set to an instance of an object."
-------------------------------
myRpt =
New ReportDocument
myRpt.Load(Server.MapPath(
"../Reports/myreport.rpt"))
myRpt.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response,
True, "")
--------------------------------
Any solution pls?