[Gambas-user] Gambas3 Printing
Michael
mdavies5 at ...169...
Sat Dec 4 12:46:31 CET 2010
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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
More information about the User
mailing list