in reply to Re: Printing a TK Canvas
in thread Printing a TK Canvas

wow, thanks for that :) i didnt know about that widget demo thing, its very useful :)

It all appears to work now, my canvas prints to postscript form, almost perfectly! the biggest thing which would go on it, is luckily in perfect proportions for an A4 sheet! The only problem i am still having is with the lpr command...

lpr -S localhost or 127.0.0.1 -P LPT1 FILENAME

which its having problems with (Error: print server unreachable or specified printer does not exist.). Howevetr im sure its only a matter of time before i work this out! And the fact it is getting this far anyway means that it is likely to work once it finds te correct place! :)

Thanks alot!

Replies are listed 'Best First'.
Re: Re: Re: Printing a TK Canvas
by Madams (Pilgrim) on Apr 18, 2004 at 22:49 UTC

    The reason You're having problems with:

    lpr -S localhost or 127.0.0.1 -P LPT1 FILENAME

    Is that under WinXP (which you mention running), you need to enable lpr support under "services". Please note that lpr support is only available under XP-Pro, NOT under XP-Home.

    And even then it's kludgy and hard to administer. It's easier to just dump into a file and spawn (Win32::CreateProcess()) something to do the dirty work of sending it to the printer, like maybe, ghostscript.


    madams55075@comcast.net