Solved

Printing pages of infinite length

Posted on 1998-11-22
1
148 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
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C++ assignment question 7 196
Embarcadero C++ Builder XE2 TDateTime 8 70
IdTCPClient1->Disconnect(); not working 3 66
c++ syntax question 9 48
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

808 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