From: Bob D. <bd...@si...> - 2005-02-18 16:13:03
|
On Thu, 2005-02-17 at 12:01 -0700, Carol Fouse wrote: > Bob - > > I have tried the round function. Normally, values .0 to .4 round down > and .5 to .9 round up, but in rlib, .5 is rounding down. I think this > needs a fix. I have attached a writeup for the round function which > gives examples of how to use it, and how to make it round to other > values besides whole integers. I have used the second example, but > rounding to thousands, but assume the third example of rounding to > less than a whole integer would work as well. Good Catch!! I fixed this. I'll put out a release soon w/ this fix. Any chance you could edit the real rlib documentation? rlib/doc It's really not that hard. Try doing to that directory and typing "make". If all goes well you will have a pdf manual. If you might have to install db2pdf or something. > > Did you read over what I wrote up for the loading of rlib? Is it OK? Yes. We should add it to the real RLIB manual. > > I am now tackling your examples for fixed_part and flow_part. I don't > know which I will end up using, but I will give it a shot. I am > trying to print out address labels, and figure they will be better > formatted if I use rlib than if I try to do it with php, since html > has a mind of its own when it comes to lining things up. It seems that you didn't copy array.xml and array2.xml into your /var/www/html/Dev dir. Among other things these examples show you how to include other XML files To do labels I would suggest having a part w/ 2 or 3 columns like: <pr> <pd width='33%'> --- Include Report w/ labels here </pd> <pd width='33%'> --- Include Report w/ labels here </pd> <pd width='33%'> --- Include Report w/ labels here </pd> </pr> The next trick is to query mod 3 or in RLIB suppress based on a mod 3. So that there will be an even amount of rows Like (Col 1) <line suppress"iif(r.rowcount%3==0,yes,no)"> ... Like (Col 2) <line suppress"iif(r.rowcount+1%3==0,yes,no)"> ... Like (Col 3) <line suppress"iif(r.rowcount+2%3==0,yes,no)"> ... Also figuring out the amount of white space will trial and error.. when you are done it would be a nice contribution for the project. - bob > > I tried to display what the code would produce for the flow_part, and > received a bunch of errors: > Warning: I/O in /var/www/html/Dev/flow_part.php on line 100 > > Warning: warning : in /var/www/html/Dev/flow_part.php on line 100 > > Warning: failed to load external entity "array.xml" > in /var/www/html/Dev/flow_part.php on line 100 > > Warning: I/O in /var/www/html/Dev/flow_part.php on line 100 > > Warning: warning : in /var/www/html/Dev/flow_part.php on line 100 > > Warning: failed to load external entity "array2.xml" > in /var/www/html/Dev/flow_part.php on line 100 > > Warning: I/O in /var/www/html/Dev/flow_part.php on line 100 > > Warning: warning : in /var/www/html/Dev/flow_part.php on line 100 > > Warning: failed to load external entity "array2.xml" > in /var/www/html/Dev/flow_part.php on line 100 > > Warning: I/O in /var/www/html/Dev/flow_part.php on line 100 > > Warning: warning : in /var/www/html/Dev/flow_part.php on line 100 > > Warning: failed to load external entity "array.xml" > in /var/www/html/Dev/flow_part.php on line 100 > > Warning: I/O in /var/www/html/Dev/flow_part.php on line 100 > > Warning: warning : in /var/www/html/Dev/flow_part.php on line 100 > > Warning: failed to load external entity "array.xml" > in /var/www/html/Dev/flow_part.php on line 100 > > Warning: I/O in /var/www/html/Dev/flow_part.php on line 100 > > Warning: warning : in /var/www/html/Dev/flow_part.php on line 100 > > Warning: failed to load external entity "array2.xml" > in /var/www/html/Dev/flow_part.php on line 100 > > Warning: I/O in /var/www/html/Dev/flow_part.php on line 100 > > Warning: warning : in /var/www/html/Dev/flow_part.php on line 100 > > Warning: failed to load external entity "array2.xml" > in /var/www/html/Dev/flow_part.php on line 100 > > I did not make any changes to either of the files. > > > - Carol |