PC Review


Reply
Thread Tools Rate Thread

Create a document with particolar paper

 
 
Agnoletto Christian
Guest
Posts: n/a
 
      20th Jun 2006
Hi,
i create a particolar papername on my printer.
Now i need to print on it.

I try to select this papername as default for the printer but when i print
in the dialog box the paper kind is A4 and not "Ricevute".

How can i force this paper size?

Thank's
Christian


 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgUml0Y2hpZQ==?=
Guest
Posts: n/a
 
      20th Jun 2006
What does your print code look like?

If your page size settings have been setup propertly in the Control Panel,
it should just be a matter of finding the PaperSize object in the
PrinterSettings property's PaperSizes property and assigning it to the
PrintDocument.PaperSize property. e.g.:

System.Drawing.Printing.PrintDocument printDocument = new
System.Drawing.Printing.PrintDocument();
System.Drawing.Printing.PageSettings pageSettings = new
System.Drawing.Printing.PageSettings();
// ...
foreach (System.Drawing.Printing.PaperSize paperSize in
printDocument.PrinterSettings.PaperSizes)
{
if (paperSize.PaperName == "A4")
{
pageSettings.PaperSize = paperSize;
}
}

--
http://www.peterRitchie.com/


"Agnoletto Christian" wrote:

> Hi,
> i create a particolar papername on my printer.
> Now i need to print on it.
>
> I try to select this papername as default for the printer but when i print
> in the dialog box the paper kind is A4 and not "Ricevute".
>
> How can i force this paper size?
>
> Thank's
> Christian
>
>
>

 
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
Print an A5 document twice on A4 paper LBE Bursar Microsoft Word Document Management 2 29th Nov 2007 08:35 AM
I want to create a document that looks like notebook paper? =?Utf-8?B?eXZvbm5l?= Microsoft Access 1 7th Nov 2007 06:11 PM
How do I format a document for A4 paper? =?Utf-8?B?WXZvbm5l?= Microsoft Word Document Management 4 25th Apr 2005 06:09 PM
Printing an A3 document on A4 paper =?Utf-8?B?Q2hhc0h5ZGU=?= Microsoft Word Document Management 0 14th Feb 2005 02:31 AM
RE: Paper Break before new document =?Utf-8?B?dGp0amp0anQ=?= Microsoft Word Document Management 0 3rd Mar 2004 10:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:45 AM.