Hi Fabien, I've got printing to work ok but positioning objects on the page is difficult compared to Gambas2. The Paint.Width and Paint.Height values seem to bear no relation to pixels or mm. On A4 paper I get values of 559 and 760 approx. What units are used here? (My printer resolution is 300) Also in the hPrinter.Configure() dialog I cannot set all the printer options, specifically 'Orientation' is disabled. I set it in code with hPrinter.Orientation = Printer.Landscape but the Paint component still outputs in Portrait mode. Would appreciate any assistance. Regards Michael
On 04/12/10 01:19, Fabien Bodard wrote: > Private hPrint As New Printer As "Printer" > Public Sub Form_Open() > > If Not hPrint.Configure() Then > hPrint.Print > > Endif > > End > > > Public Sub Printer_Begin() > > hPrint.Count = 1 > > End > > > Public Sub Printer_Draw() > Paint.Font.Size = 12 > > Paint.Text("Hello", 30, 50) > Paint.fill > End > > Public Sub Printer_End() > > > > > End > > > > Tou need to learn more about the paint class :) > > first create a path and then draw around or fill it (stroke/fill) > > look at the paint example > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App& Earn a Chance To Win $500! > Tap into the largest installed PC base& get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ What happens now with your Lotus Notes apps - do you make another costly upgrade, or settle for being marooned without product support? Time to move off Lotus Notes and onto the cloud with Force.com, apps are easier to build, use, and manage than apps on traditional platforms. Sign up for the Lotus Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user