[Gambas-user] Can't print in Gambas 3
Johny Provoost
johny.provoost at ...27...
Wed May 16 18:08:32 CEST 2012
Dear,
What's wrong with this code. I want to set someting to the printer but
the only thing I get is an empty page.
I can configure my printer but I get an error on the line
'Paint.Begin(mijnprinter)' -> 'printer is not printing' and the printer
is giving me an empty page.
Working with Gambas 3.1.90
Ubuntu 12.04
Components: gb, gb.from, gb.image, gb.qt4, gb.qt4.ext
tried with gtk and got the same result.
---------------------------------------------------------------------------
' Gambas class file
Public mijnprinter As New Printer
----------------------------------------------------------------------
Public Sub Form_Open()
End
----------------------------------------------------------------------
Public Sub Button1_Click()
If mijnprinter.Configure() = True Then Return
mijnprinter.FirstPage = 0
mijnprinter.Orientation = 1
mijnprinter.Paper = 2
mijnprinter.Print
Paint.Begin(mijnprinter)
Paint.Text("TEST TEST")
Paint.End
End
---------------------------------------------------------------------
Greetings,
Johny Provoost
More information about the User
mailing list