Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: How to display PDF print preview screen? Post Reply Post New Topic
Author Message
momer79
Newbie
Newbie


Joined: 23 Feb 2009
Location: United Kingdom
Online Status: Offline
Posts: 12
Quote momer79 Replybullet Topic: How to display PDF print preview screen?
    Posted: 29 Apr 2010 at 1:11am

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?

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.