Click to See Complete Forum and Search --> : Print the REcords of table


Shiv Kumar G.M.
August 28th, 2001, 03:12 AM
Dear Gurus,
I want the code which prints a string to a printer without using APIS'.

Can anyone help me out.

Thanks,
Shivakumar G.M.

Cakkie
August 28th, 2001, 04:14 AM
You can use the printer object

Printer.print "This is a line on the printer"
Printer.print "This is the next line"
Printer.print "This is the last line"
Printer.print "Ok, I lied about the last line, this is the last line"
Printer.EndDoc




Tom Cannaerts
slisse@planetinternet.be

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook

berta
August 28th, 2001, 04:18 AM
see the object Printer.

hi,brt

<center>
<HR width=80%>
<img src='http://web.tiscali.it/bertaplanet/images/bertaplanet.gif'>
</center>

Shiv Kumar G.M.
August 28th, 2001, 06:31 AM
Hello sir,
after printing the last line, it will leave a lot of spaces. I do not want to leave a single line space also.

Please help me sir.
Thank You,
Shivakumar G.M.

Cakkie
August 28th, 2001, 07:07 AM
In that case, omit the enddoc. The enddoc will end the current printfile, and the printer will process it. if you are using a matrix printer, the enddoc should not issue a new page.

Tom Cannaerts
slisse@planetinternet.be

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook