From: Everton L. B. <ev...@fa...> - 2003-11-21 16:34:32
|
i'm creating some examples for rlib and need a help: - how to put date and time of report? (i think it's come from php variables, how to export for rlib xml?) - why at pagefooter i cannot put horizontal lines and <text width> not applying in html format? (at pageheader works) try put on page footer and compare pdf and html: <PageFooter> <Output> <Line> <text>Page: </text> <field value="r.pageno" width="3" align="right"/> <text width="63"/> <text>http://rlib.sicompos.com</text> <text width="1"/> </Line> </Output> </PageFooter> -- Everton Luis Berz Nucleo de Sistemas :: FACCAT - Faculdades de Taquara +55 51 541 6600 - R.624 ICQ 7807919 |
From: Bob D. <bd...@si...> - 2003-11-21 16:48:29
|
On Fri, 2003-11-21 at 11:33, Everton Luis Berz wrote: > i'm creating some examples for rlib and need a help: > - how to put date and time of report? (i think it's come from php > variables, how to export for rlib xml?) if in php you had: $some_date = "2003-01-01" in rlib you do <field value="m.some_date"/> The key here is use m.whatever Keep in mind that the date has to be formatted in: YYYY-MM-DD Also.. global variables must be turned on in PHP If not Chet added something to rlib 1.1.4 so you can do rlib_add_parameter($rlib, "some_name", "some_value"); so basically you can do rlib_add_parameter($rlib, "some_name", "some_value"); Or if you want the current server date from rlib you can do <field value="date()"/> > - why at pagefooter i cannot put horizontal lines and <text width> not > applying in html format? (at pageheader works) > >From your example I don't see you using any <HorizontalLine size="whaterver" bgcolor="'whatever'"/> Can you send me a more specific example?? Thanks :) > try put on page footer and compare pdf and html: > <PageFooter> > <Output> > <Line> > <text>Page: </text> > <field value="r.pageno" width="3" align="right"/> > <text width="63"/> > <text>http://rlib.sicompos.com</text> > <text width="1"/> > </Line> > </Output> > </PageFooter> |
From: Everton L. B. <ev...@fa...> - 2003-11-21 18:54:45
|
try this report ... <PageHeader> <Output> <Line fontSize=3D"11"> <text width=3D"50">Cities Report</text> <text width=3D"30"/> <text>Date</text> </Line> <Line fontSize=3D"11"> <text width=3D"50">by Everton Lu=EDs Berz</text> <text width=3D"30"/> <text>Time</text> </Line> <HorizontalLine size=3D"4" bgcolor=3D"'white'"/> </Output> </PageHeader> =09 ... <PageFooter> <Output> <Line fontSize=3D"11"> <text width=3D"50">Cities Report</text> <text width=3D"30"/> <text>Date</text> </Line> <Line fontSize=3D"11"> <text width=3D"50">by Everton Lu=EDs Berz</text> <text width=3D"30"/> <text>Time</text> </Line> <HorizontalLine size=3D"4" bgcolor=3D"'white'"/> </Output> </PageFooter> ... pageheader and pagefooter contents in xml are equals, but in the html output not. Bob Doan escreveu: > On Fri, 2003-11-21 at 11:33, Everton Luis Berz wrote: >=20 >>i'm creating some examples for rlib and need a help: >>- how to put date and time of report? (i think it's come from php=20 >>variables, how to export for rlib xml?) >=20 >=20 > if in php you had: >=20 > $some_date =3D "2003-01-01" >=20 > in rlib you do >=20 > <field value=3D"m.some_date"/> >=20 > The key here is use m.whatever > Keep in mind that the date has to be formatted in: YYYY-MM-DD > Also.. global variables must be turned on in PHP >=20 > If not Chet added something to rlib 1.1.4 so you can do >=20 > rlib_add_parameter($rlib, "some_name", "some_value"); >=20 > so basically you can do >=20 > rlib_add_parameter($rlib, "some_name", "some_value"); >=20 > Or if you want the current server date from rlib you can do >=20 > <field value=3D"date()"/> >=20 >=20 >>- why at pagefooter i cannot put horizontal lines and <text width> not=20 >>applying in html format? (at pageheader works) >> >=20 >=20 >=20 >>From your example I don't see you using any >=20 > <HorizontalLine size=3D"whaterver" bgcolor=3D"'whatever'"/> > Can you send me a more specific example?? >=20 > Thanks :) >=20 >=20 >>try put on page footer and compare pdf and html: >><PageFooter> >> <Output> >> <Line> >> <text>Page: </text>=09 >> <field value=3D"r.pageno" width=3D"3" align=3D"right"/> >> <text width=3D"63"/> >> <text>http://rlib.sicompos.com</text> >> <text width=3D"1"/> >> </Line> >> </Output> >></PageFooter> >=20 >=20 --=20 Everton Luis Berz Nucleo de Sistemas :: FACCAT - Faculdades de Taquara +55 51 541 6600 - R.624 ICQ 7807919 |