Greetings,

I have exmined the news groups about printing in tcl for some time while
writting the app that I am working on (entirely in vtcl;) many thanks Stewart!)
and I have listed a couple of the sugestions that I seem to understand.   Below
are 2 examples, the first for Unix and the second for windoze.  

Getting it to print in Unix:

exec lpr << [.canvas postscript]

Getting it to print in windoze:

set lpt [open LPT1 w]
puts $lpt [.canvas postscript]
close $lpt

I am thinking that in this case that if a postscript printer is not used
this will not work with the lpt1 and windoze example.  I think from what I can
test on my RedHat box the filter catches it and all is well:) Perhaps someone
can confirm or deny this conjecture.

Anyhow here are my questions:
Question 1.)  Is there a better way? (Please be specific.)


Question 2.)  How do I place (or arrange) the info I want to place in the
canvas?   (Again, please be specific.)

On Q2.  I am thinking of printing invoices which I can probably just send
text to the lpr and do not need postscript however,  I am very puzzled about
if I want nice things like images or other neat things.  I am assuming I should
take advantage of the canvas.  Then I am also puzzled about letters.  I would
like to print the return address on a letter to follow the invoice. But how to
get the text oriented correct on the letter.....hmmmmm.....  

Thoughts Welcome and Many Thanks!!


--
RJ Ent. -- http://www.rjent.pair.com 
Had Enough GPF's from M$? 
Try something stable:  http://www.freebsd.org or http://www.redhat.com
Strong Supporter of Visual Tcl -- http://www.neuron.com/stewart/vtcl/

---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
message body (where [EMAIL PROTECTED] is your e-mail address).

Reply via email to