1. Re: Printing - How to? Addendum

On Tue, 06 Feb 2001, you wrote:
> Hi all,
> I am trying to create a print procedure for my program, following is my 
> code but it all prints on one line. How do I send line feeds. Or am i 
> doing something else wrong.
> Also
> How can i tell if the text is too long for a line?
> How would i know when to start a new page?

I realized the printPage code wouldn't do much good if you didn't have the 
following procedure which hands the entire document as a sequence to 
printPage,and  gets back a sequence less the amount printed. It keeps this 
up until the entire doc is printed. (length(doc) = 0)

Regards,
Irv

 doc = printPage(doc)
end while
if not endDoc() then
  printErr = True
end if
end procedure

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu