Talk with the Author
 Crystal Reports Forum : General Information : Talk with the Author
Message Icon Topic: Setting a Report to "No Printer" at runtime Post Reply Post New Topic
Author Message
saman700
Newbie
Newbie
Avatar

Joined: 14 Apr 2008
Location: Australia
Online Status: Offline
Posts: 2
Quote saman700 Replybullet Topic: Setting a Report to "No Printer" at runtime
    Posted: 15 Apr 2008 at 1:18am
Hi Brian,
 
I am trying to setup the printing options for a report file. I could easily change the page size to A3 through the following code:
 
myReport.PrintOptions.PaperSize = PaperSize.PaperA3;
 
However, I don't know how i can set the Printer Option to No Printer during the runtime. Apparently there is something called PESelectPrinter that can be used but I couldn't find any documentation for it I think It belongs to old versions of CR. I have CR XI and I can't find anyway to do this.
 
Thank you very much for your help.
regards,
Sam
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 15 Apr 2008 at 2:54pm
There is a property ReportDocument.PrintOptions.PrinterName that you can assign to a printer name in quotes. But this is for telling CR where to direct the printed output. It's not the same as the internal 'No Printer' option that CR uses for rendering the report and where to position report objects.

Unfortunately, I can't answer that right now, but I will research it.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
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.032 seconds.