Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Setting custom papersize

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

790 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