kyocera printing, cant set MM_LOMETRIC

Posted on 2000-02-04
Medium Priority
Last Modified: 2010-08-05
I have a c++/mfc program that sets MM_LOMETRIC mode to enable exact positioning for printing.  This works fine on almost all printers, but for some reason I cant set that mode on Kyoceras (new and old) - the call fails and they remain on the default MM_TEXT.  Is there some special handling for kyoceras that I should know about?

Question by:tekwini
LVL 22

Accepted Solution

nietod earned 150 total points
ID: 2489359
It is posible that the scale for the low metric unit is causing a overflow.  Does this printer have higher resolution than the other printers you have been working with?  

(If that is the case try using MM_ANISOTROPIC and setting the scale yourself using SetWindowExt and SetViewPortExt(), but specifiy the smallest possible values to these functions.  i.e you can generate a 1:2 scale using 1 and 2 or using 1000 and 2000.  You want to use small numbers to prevent an overflow.)

If you are under windows NT you can try calling GetLastError() to find out exactly what the problem is.

Author Comment

ID: 2493783
thanks.  that sorted it out :)

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

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 viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

600 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