473,396 Members | 1,935 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Create a document with particolar paper

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
Jun 20 '06 #1
1 3719
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

Jun 20 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Eric Linders | last post by:
Hi, I have customer contact information in a MySQL DB. The standard stuff: first name, last name, city, state, zip, etc. I'd like to write a PHP script that will take a customer ID range...
6
by: Lauren Quantrell | last post by:
I have a table tblCustomers in a one-to-many relationship with table tblProducts. What I want to do is to create a stored procudure that returns a list of each customer in tblCustomers but also...
10
by: FloWo3 | last post by:
Hi, how do you create (design) algorithms. I'm talking about thinking about it and come to an idea. Tanks, FroxX
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
3
by: sandrina | last post by:
Hello everyone, My name is Debi and I am an Administrative assistant with a large company in their sourcing department. I was hired one month ago, and walked in to a HUGE filing nightmare. My...
14
by: Alf P. Steinbach | last post by:
Not yet perfect, but: http://home.no.net/dubjai/win32cpptut/special/pointers/ch_01.pdf http://home.no.net/dubjai/win32cpptut/special/pointers/ch_01_examples.zip To access the table of...
58
by: jacob navia | last post by:
Hi I have put together a document explaining most extensions of lcc-win32, why they were done, why they could be useful, and a documentation of the string/container library that uses those...
2
by: mike.medland | last post by:
Hi I am developing a web based application in asp.net and am in the process of trying to integrate a third party application. The third party application is supplied in the form of a .h file. ...
1
by: shapper | last post by:
Hello, I am creating an IHttp Handler that sends an XML file as response. The XML file is created at runtime. I think the correct way is to save it to a stream. I have: 1 XDocument...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.