[Gambas-user] Printing Forms

Benoit Minisini gambas at ...2...
Fri May 23 00:32:24 CEST 2003


Le Jeudi 22 Mai 2003 21:14, Ken Schrock a écrit :
> Here is a workaround for what I wanted to do
> (only drawback is that ImageMagick must be present)
> I have set the title of the Form to MyForm1
>
> PUBLIC SUB PrintButton_Click()
>
>   DIM foobar AS printer
>   DIM mypic AS picture
>
>   printer.size = 2
>   mypic = NEW picture
>   EXEC "import -window MyForm1 /tmp/grab.jpg" WAIT
>   mypic.load("/tmp/grab.jpg")
>   Draw.begin(printer)
>   Draw.picture(mypic)
>   Draw.end
>
> END
>
> If you want the window decorations also, you just add -frame

I like GNU/Linux and Unix for THAT.

How can one want a Windows version of Gambas ? :-)

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list