Solved

Setting custom papersize

Posted on 1998-06-29
4
197 Views
Last Modified: 2010-04-01
I need to print on labels of different sizes, sizes that are not defined as standard by NT, on a 24pin matrix printer, so I need to set the size of the paper to fit, so the printer doesn't feed a mile after the label.

I realize that this is done using the DEVMODE structure together with ResetDC() or CreateDC(), but when I do so, I don't get the paper size changed, in fact nothing goes wrong, it just doesn't change anything, what are the correct steps to take to set the paper size, ie what fields must be filled and can a poorly written driver refuse to set the paper size (the printer is a panasonic kxp-1123, using the M$ std driver)
0
Comment
Question by:dionysos_swamp
  • 2
4 Comments
 
LVL 1

Author Comment

by:dionysos_swamp
ID: 1166771
Edited text of question
0
 
LVL 23

Accepted Solution

by:
chensu earned 220 total points
ID: 1166772
Is it because of this?
DOCERR: DEVMODE dmPaperSize Member Documentation Error
http://support.microsoft.com/support/kb/articles/q108/9/24.asp
0
 
LVL 22

Expert Comment

by:nietod
ID: 1166773
If that is not the problem, post your code where you try to set the size, so we can see it.
0
 
LVL 1

Author Comment

by:dionysos_swamp
ID: 1166774
well, Chensu, that was a most exelent answer, short, exact and usable, if I could I would give you an pow(A,2) but the grade scale here is incapable of handling your enormous wit.
Thank you for your speedy answer.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question