[Gambas-user] Printing text vertically (using printing or gb.report)

Willy Raets willy at ...2734...
Sun Jan 19 00:00:13 CET 2014


On Fri, 2014-01-17 at 21:50 +0100, Fabien Bodard wrote:
> 2014/1/16 Willy Raets <willy at ...2734...>:
> >
> > I added some screenshots of how it is implemented at the moment in MS
> > Access. As you can see the report designer of MS Access allows for
> > labels to be placed vertically on the design (there is a property named
> > vertical for textlabels that can be set to yes, it is as simple as
> > that).
> >
> > The second screenshot is a print preview and that is the result I would
> > need. As you can see the layout of the Dymo Address Label is portrait,
> > the text is printed vertical on the Address Label.
> >
> > As I am porting this application to Gambas, I need to figure out how
> > this can be done in Gambas, as the Dymo Label Writer doesn't have any
> > other options to print this.
> >
> > gb.report doesn't seem to have this possibility and neither does using
> > the printer object. Or maybe they can but I haven't discovered it yet.
> >
> >>
> >> >
> >> >>
> >> >> myPrinter.Orientation = Printer.Landscape
> >> >>
> >> >
> >> > This suggestion sets me to think. The Dymo labels are in portrait in the
> >> > Dymo label printer. So making a landscape label on a pdf surface and
> >> > next print this in landscape (so actually giving the landscape design a
> >> > twist to being printed in portrait) could do the job. I'am going to give
> >> > this a try as soon as I am at work.
> >>
> >> Yes, sometimes things can be tricky :-)
> >
> > I do think I will try with gb.cairo to see what I can come up with, just
> > curious if that would work. But having this option in gb.report would of
> > course be much easier :)
> 
> it is in the code of report but it seem i have a bug with path
> extents. and the editor don't show the rotation.
> 
> i will correct that.
> 

That would be great.

Thanks

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org








More information about the User mailing list