OIPI Table printing (OpenInsight Specific)
At 06 SEP 2001 05:43:56PM b cameron wrote:
I want to be able to print two tables next to each other.
The first is 5 columns and 2 rows. The second which is completly
different information is 2 columns and 3 rows no headings.
I used get_printer("POS") to get the top position before printing
table1 (this is great for the vertical position). Then I tried
setting the horizontal using the TEXTXY. Then I used the ADDTABLE
again for the next table which I wanted to start at the same row
but horizontally to the right of the end of table1.
I could use TEXTXY for the 3 lines and 2 columns of table2 but
would rather not.
At 06 SEP 2001 06:16PM Matt Crozier wrote:
Look at Parameter 7 for ADDTABLE:
Try using the Position argument to specify the X co-ordinate of the second table. Set the Y co-ordinate using the 'POS' message.
M@
At 06 SEP 2001 06:18PM Matt Crozier wrote:
I'll try that again -
In ADDTABLE, try using the second argument of Parameter 7, 'Position', to specify the X co-ordinate of the second table. Set the Y co-ordinate using the 'POS' message.
M@
At 06 SEP 2001 06:57PM Robert Lee wrote:
You might also find the INDENT message of use.
Robert Lee
At 06 SEP 2001 06:58PM b cameron wrote:
That got it close but…
I used…
x=Set_Printer("POS",Top) ;* got top prior to addtable table1
x=Set_Printer("TEXT","") ;* had to go down 1 line
x=Set_Printer("ADDTABLE", cf, head, td, hdrshade, bodyshade, append,7:@FM:'R')
This worked but my colors / shading of the columns in all the other
tables is now gone. Strange, I will play with it some more.
BTW - I am using TEXTXY to print other single line data and would
like to have the line descriptions right justified…
Something like
Name:Address:
City:State:Thanks for the response!
At 06 SEP 2001 07:31PM Matt Crozier wrote:
We've done something similar, but ended up using ADDTABLE calls (per cell!) across the board instead of TEXTXY. Seems to give you more options (like justification ).
M@
At 09 SEP 2001 08:26PM Scott, LMS wrote:
Hi All
I have a program that does invoices on preprinted forms
The forms change shape every time they re-order from the printer
So I tend to set all the co-ordinates in the same place.
This is just an extract of code to give you an idea of how to position text on page.
* NOTE - the following variables are relative to the top and left margins in inches.
first field is from left, second is from top.* sample pos
abn_pos = 6.10 :@FM: (0.3500)hdr_pos = 0.00 :@FM: (0.1875 + top_offset) ;* (3/16 inch).cust_pos = 0.00 :@FM: 1.00due_date_pos = 3.00 :@FM: 1.00addr_pos = 0.75 :@FM: 1.94* Print the abn (just do one field)
set position on pagestat=SET_PRINTER( 'POS', abn_pos)If ( stat to set your position from the top of the page for the* second table…
* if your shading and stuff is disappearing, you need to save the col_fmat, col_head and format variables separately for each variation of shading. Ie have one of these variables eg col_fmat1, col_fmat2 etc for each variation of table look that you want. Ie if you are right justifying your labels in column 1 of table 1 but left justifying stuff in column 1 of table 2, you will need more than one column format variable… I have a default_font variable too, and use that to reset the font after I have changed it too.
Hope that helps.
Scott