[Gambas-user] Print probleem with pictures/text
Ron Onstenk
ronstk at ...239...
Mon Jul 24 23:48:56 CEST 2006
On Monday 24 July 2006 11:48, Timothy Marshal-Nichols wrote:
>
> This project is version of previous one:
>
> It includes the bug fix for the first printing example
> And a second example that includes a crude word wrap function
>
> Note that for the Word-Wrap function to work you must have set up your
> Draw.Begin(Printer) call and also set the Font you want.
>
> Thanks
>
> 8-{)} Timothy Marshal-Nichols
> <mailto: timothy.marshal-nichols at ...247...>
>
>
--------8<---
> > I'll try to make a function for wordwrap or the bigtext must
> > provide the correct width.
> >
> > Anyway I should be able to more now after all the struggle.
> >
> > Thanks again
> >
> > Ron
> >
>
Very nice suprise,
I just had to exchange the rems on the 2 load lines you commented about :
' Older versions of Gambas require
imageTop = NEW Image
imageTop.Load(Dialog.path)
'imageTop = Image.Load(Dialog.path)
DrawScreenImage(DrawingAreaTopImage, imageTop)
to
' Older versions of Gambas require
imageTop = NEW Image
' imageTop.Load(Dialog.path)
imageTop = Image.Load(Dialog.path)
DrawScreenImage(DrawingAreaTopImage, imageTop)
and it worked perfect.
Many thanks again.
Ron
ps I have not found where i did wrong in my code)
More information about the User
mailing list