Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Printing pages of infinite length

Posted on 1998-11-22
1
Medium Priority
?
157 Views
Last Modified: 2010-04-01
I'm using VC++ 6.  I have an app that prints to a grocery store type receipt printer.  The receipt printer, of course, just has a long spool of paper and does not come in "pages."  I've got the printing thing working OK by using members of CDC, but it keeps wanting to deal in pages and I just want to keep doing a TextOut and send a single EndPage() when I'm done.  At present, however, it prints about a legal page's worth of text and then doesn't print anymore.
Any thoughts?

(p.s., I had it all working fine using low level C functions using a file stream set to the stdprn, etc., but I really want to try to get it to use the device context so I can let the user select network devices, etc.)
0
Comment
Question by:dpt081598
1 Comment
 
LVL 14

Accepted Solution

by:
AlexVirochovsky earned 100 total points
ID: 1178419
I can't print all output in 1 page.
You must devide you output to pages(60 lines in Page, for example), and use StartPage/EndPage function.
In other case, Y coordinate of you output will be
> maxY(you can find it by GetDeviceCaps function) and
Windows ignore all you output.
Regards, Alex
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
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.
Suggested Courses

885 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