Solved

Setting custom papersize

Posted on 1998-06-29
4
191 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now