Solved

Printing pages of infinite length

Posted on 1998-11-22
1
145 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 50 total points
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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.

763 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

8 Experts available now in Live!

Get 1:1 Help Now