[Gambas-user] gb.report
Buster Seven
buster6seven at ...626...
Tue Dec 8 13:14:01 CET 2015
but i can't work out how to load the report into the document view?
On Tue, Dec 8, 2015 at 9:49 PM, Fabien Bodard <gambas.fr at ...626...> wrote:
> You can see an example in the farm ... search : "DocumentView"
>
> 2015-12-08 11:42 GMT+01:00 Fabien Bodard <gambas.fr at ...626...>:
> > 2015-12-08 0:46 GMT+01:00 Buster Seven <buster6seven at ...626...>:
> >> I’m trying to use the reportview component that i add to a form and then
> >> display my report without using the preview basically
> >> my own preview form with the buttons on it to do what i want before it
> >> printed etc
> >
> > OKay
> >
> > so you have two solution.
> >
> > You can use the reportview widget. Provided by the gb.report2 component.
> > ReportView.Report = hReport
> >
> > Or more hard...
> >
> > you can enforce the report.draw in a drawing area.
> >
> > hReport.scale = 0.5
> > hreport.Draw(Page)
> > hreport.Scale = 1.0
> >
> > Get the report size in pixel ?
> >
> > Report.UnitTo(TSizeParse[MyReport.Width].ToInch(), "in", "px")
> > Report.UnitTo(TSizeParse[MyReport.Height].ToInch(), "in", "px")
> >
> > This size depend of the device.
> > By default the desktop one.
> >
> >
> > In fact i've splitted the viewer in 3 part :
> >
> > DocumentView -> ReportView -> FPreview
> >
> > So ReportView is a composite widget that contain a DocumentView and
> > adapt it to the reports specificities.
> >
> > DocumentView is a widget that provide the bases to display images in a
> > multipage documents style, like a pdfviewer or a print preview.
> >
> > It allow to arrange elements in different mode by using the
> > Arrangement property and the column one.
> >
> > To play with it just set the DocumentView.Count property, and the
> > PageHeight/PageWidth.
> >
> > I really need to make the doc.
> >
> > You can also manage the padding arround and the spacing.
> >
> > You can set the layout of each page in the Layout event.
> >
> > Like often with me... powerfull but undocumented
>
>
>
> --
> Fabien Bodard
>
>
> ------------------------------------------------------------------------------
> 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