PC Review


Reply
Thread Tools Rate Thread

Reading the PageSettings object

 
 
=?Utf-8?B?TWFyY2VsIEpvZW1tYW5iYWtz?=
Guest
Posts: n/a
 
      22nd Feb 2005
We are making an application that uses CrystalReports10 to create reports.
Those documents need to be printed from several printers and/or trays.
Problem we had is that a reportdocument cant be printed with the standard
printer object in .NET. A CR10 printobject must be used, and printing can be
started with the PrintToPrinter method.
Before we want to print we want to set up from which printer to print and
from which tray. To do this we use the PrintDialog. On this dialog you can
select the printer and under "properties" you can set the tray. Once the
print button is pressed we dont start the print action, but instead read out
the printersettings to know which printer was selected.
We are unable however to read out the pagesettings. Every time we read out
the pagesettings object it does not contain the settings we selected in the
dialog. My question is how can we select the correct printer and tray, and
then put them in a pagesettings and printersettings object?

Those two objects are needed for the CR10
ReportDocument.CopyFrom(PrinterSettings, PageSettings) method.

Thanks in advance,
Marcel Joemmanbaks
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Serializing PageSettings Lorentz Microsoft C# .NET 1 4th Sep 2008 07:21 AM
PageSettings,HardMarginX / MarginY Not accurate...!! Jorge Microsoft C# .NET 0 21st Feb 2008 04:19 PM
Reading Values from FormView Ctrl - Object reference not set to an instance of an object. Prakash Microsoft ASP .NET 0 14th Dec 2006 08:36 AM
ReportViewer & PageSettings.HardMarginX =?Utf-8?B?andhdA==?= Microsoft Dot NET Framework Forms 3 3rd Feb 2006 08:52 AM
How to use IE control with pagesettings.print() DotNetDummy Microsoft Dot NET 0 20th Oct 2004 02:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:46 PM.