[Gambas-user] Printing, don't see my mistake

Fabien Bodard gambas.fr at ...626...
Thu Oct 25 11:51:35 CEST 2012


2012/10/25 Gregor Burck <gregor at ...2441...>:
> Hi,
>
> I don't understand how to print in gambas3. Even when I look at the example I don't find my mistake, I got always a blank page:
>
> Public Sub AnsichtDrucken()
>
>  If prt.Configure() Then Return
>
>  Me.Enabled = False
>  Inc Application.Busy
>  prt.Print
>  Dec Application.Busy
>  Me.Enabled = True
>
> End
>
>  Public Sub prt_Draw()
>
>  Paint.Text("Hello World", 200, 200, 300, 50)
Paint.Fill
>
> End
>
> I tried out other code with Rectangle and Scale and and and,...
> The documentation diddn't help me so long, maybe I don't understand the clue.
>
> Bye
>
> Gregor
> --
>

Paint.text just generate the path

you need then fill or draw the border with draw.fill and draw.stroke

It's vectorial drawing :-)



>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard




More information about the User mailing list