From: Bob D. <bd...@si...> - 2003-09-19 19:28:36
|
CVS HEAD has support for multiple reports I'm currenrly working on auto* support plus a spec file.. Also.. I'm working on some code refactoring... but.. At some point next week I'll make the next official release.. Hopefully this will work for you.. if it does maybe you would like to put together an example for the documentation?.. Maybe for the web site.. btw.. this is how you do it $rlib = rlib_init($sql_host, $sql_users, $sql_password, $sql_database); rlib_add_query_as($rlib, "select * from example", "example"); rlib_add_query_as($rlib, "select * from example order by name", "example2"); rlib_add_query_as($rlib, "select * from example", "example3"); rlib_add_report($rlib, "report.xml"); rlib_add_report($rlib, "report.xml", "example2"); rlib_add_report($rlib, "report2.xml", "example3"); rlib_set_output_format($rlib, $format); rlib_execute($rlib); rlib_finalize($rlib); header( rlib_get_content_type($rlib)); rlib_spool($rlib); NOTE:: rlib_add_report can now take an optional 3rd paramater to say what data source to use for the main loop Cheers, - Bob On Sat, 2003-09-13 at 22:07, A Vision wrote: > Of course! I haven't learned how to work it yet, so I am slightly behind! > > > >From: Bob Doan <bd...@si...> > >To: A Vision <av...@ho...> > >CC: rli...@li... > >Subject: Re: [Rlib-users] differing page layouts > >Date: Sat, 13 Sep 2003 21:57:04 -0400 > > > >Hi, > > > >RLIB is very close to being able to do this. In fact, it should be able > >to do this in a weeks time or so.. I'm working on it now (along with a > >few other things) > > > >In your case you would have 2/3 XML definition files one cover, one main > >report, and then possible one more for the legal. > > > >Take for example the example provided in the manual > > > >$rlib = rlib_init($sql_host, $sql_users, $sql_password, $sql_database); > >rlib_add_query_as($rlib, "select * from example", "example"); > >rlib_add_report($rlib, "report.xml"); > >rlib_set_output_format($rlib, $format); > >rlib_execute($rlib); > >rlib_finalize($rlib); > >header( rlib_get_content_type($rlib)); > >rlib_spool($rlib); > > > >We would change it up just a bit > > > >$rlib = rlib_init($sql_host, $sql_users, $sql_password, $sql_database); > >rlib_add_query_as($rlib, "select * from example", "example"); > >rlib_add_report($rlib, "cover_page.xml"); > >rlib_add_report($rlib, "main_report.xml"); > >rlib_add_report($rlib, "legal_stuff.xml"); > >rlib_set_output_format($rlib, $format); > >rlib_execute($rlib); > >rlib_finalize($rlib); > >header( rlib_get_content_type($rlib)); > >rlib_spool($rlib); > > > >There are a few problems with this however for more complicated > >stuff.... Like the ability to set rlib internal variable (pageno, line > >count, detail line count.. ect.. back to one) > > > >The other problem is we need to ability to have different main loop > >queries for the different reports.. > > > >Anyway... would you be up for trying a beta of this when its ready? > > > >- Bob > > > > > >On Sat, 2003-09-13 at 10:42, A Vision wrote: > > > This a "can rlib do this" > > > > > > I have a report that needs to be deployable in a single PDF. When > >printed > > > page 1 must be a cover letter, the rest of the pages must be landscape. > > > Then one additional page must be appended as a letter with microscopic > > > legalese. > > > > > > Yuck. > > > > > > If this is doable, where can I scrounge up an example of multiple page > > > layouts? > > > > > > _________________________________________________________________ > > > Need more e-mail storage? Get 10MB with Hotmail Extra Storage. > > > http://join.msn.com/?PAGE=features/es > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Rlib-users mailing list > > > Rli...@li... > > > https://lists.sourceforge.net/lists/listinfo/rlib-users > > > > > > > _________________________________________________________________ > Fast, faster, fastest: Upgrade to Cable or DSL today! > https://broadband.msn.com > > |