[Gambas-user] gb.report

Buster Seven buster6seven at ...626...
Sat Dec 5 01:24:48 CET 2015


Tanks Frank Just what i needed.
One more question when displaying a report in reportview component how do
scale the report down to fit the reportview?

thanks shane

On Wed, Dec 2, 2015 at 8:43 PM, Frank <fgores at ...174...> wrote:

> this is how I did it:
>
> Public Sub savepdf()
>
> Dim path As String
> Dim hReport1 As New Rpt
> Dim hprinter As New Printer
>
> path = "/home/me/Gambas/projecten/project/" & name & ".pdf"
>
> hprinter.Orientation = Printer.Portrait
> hprinter.Resolution = Desktop.Resolution
> hprinter.Paper = Printer.A4
> hprinter.OutputFile = path
> hReport1.Print(hprinter)
>
> Message.Info("something is saved")
>
> End
>
>
> brgds,
>
> Frank
>
> Op 02-12-15 om 10:37 schreef Fabien Bodard:
> > Do you use gb.report or gb.report2 ?
> > Le 2 déc. 2015 04:52, "Buster Seven" <buster6seven at ...626...> a écrit :
> >
> >> i'm using gb.report and I would like to save a pdf file automatically
> >> generated from my program without out user input ! is this possible?
> >>
> >>
> >> thanks Shane
> >>
> >>
> ------------------------------------------------------------------------------
> >> Go from Idea to Many App Stores Faster with Intel(R) XDK
> >> Give your users amazing mobile app experiences with Intel(R) XDK.
> >> Use one codebase in this all-in-one HTML5 development environment.
> >> Design, debug & build mobile apps & 2D/3D high-impact games for multiple
> >> OSs.
> >> http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
> >> _______________________________________________
> >> Gambas-user mailing list
> >> Gambas-user at lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
> >>
> >
> ------------------------------------------------------------------------------
> > Go from Idea to Many App Stores Faster with Intel(R) XDK
> > Give your users amazing mobile app experiences with Intel(R) XDK.
> > Use one codebase in this all-in-one HTML5 development environment.
> > Design, debug & build mobile apps & 2D/3D high-impact games for multiple
> OSs.
> > http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
> ------------------------------------------------------------------------------
> Go from Idea to Many App Stores Faster with Intel(R) XDK
> Give your users amazing mobile app experiences with Intel(R) XDK.
> Use one codebase in this all-in-one HTML5 development environment.
> Design, debug & build mobile apps & 2D/3D high-impact games for multiple
> OSs.
> http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
> _______________________________________________
> 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