Thanks Fabien for your reply. After much struggle I still cannot get a result and include the following for the amusement of all. :)
prnter is not aware of events begin and draw. Rsult is T and thus a failure. The program does spit an empty sheet from the printer. If someone could correct the code (maybe even start again?) I would be grateful rgds > ' Gambas class file > Public prnter As New Printer > '------------------------------------ > Public Sub Button1_Click() > Dim rsult As Boolean > > prnter.count = 1 > rsult = prnter.Print() > Print "result:" & rsult > End > '------------------------------------ > Public Sub prnter_begin() > Print "begin" > End > '------------------------------------ > Public Sub prnter_draw() > Print "draw" > > Paint.Begin(prnter) > Paint.Text("hello", 100, 100) > Paint.End > End > '------------------------------------ > > > -- View this message in context: http://old.nabble.com/Gambas3%3Adraw.begin%28printer%29-tp28732431p28745130.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user