{{tag>category:"OpenInsight 32-Bit" author:"Bertil Strom" author:"Bob Orsini"}}
[[https://www.revelation.com/the-works|Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community]]
==== OIPI Header and footer (OpenInsight 32-Bit) ====
=== At 23 AUG 2004 09:25:07AM Bertil Strom wrote: ===
Using different printers causes me trouble with headers and footers.
However the same code produces the same result with OI4.13.
However the Textcolumns appear the same, no matter what printer.
What have I done wrong ?
OIPI_TEST:
* Default printer=Generic/Text, display Ok
* =HP_laserjet 2100, header in middle of page,footer ok, oipi_printerheader, line 279 debug
* =Ricoh Aficio cl 7000 , header in middle of the page, no footer, oipi_printerheader, line 279 debug
* =Kyocera Mita FX 1800 , no header, no footer, oipi_printerheader, line 279 debug
* =All" , Textcol prints ok
margin=1:@FM:1:@FM:1:@FM:1:@fm:@fm:@fm:9 ;* A4 inches
device=2 ;* Preview
pageinfo=0:@fm:1 ;* inches
set=Set_Printer("INIT",name,'',margin,pageinfo,device)
header=@VM: "Main Header 'D'":@VM: "Page 'P'"
footer=This is the main Footer Page 'P' File=F'"
colLen=2,2,2"
colHeader=Col1,Col2,Col3"
colText=111,222,333/aaa,bbb,ccc/AAA,BBB,CCC"
* Convert delimiters
convert "," to @fm in colLen ; convert "," to @vm in colHeader
convert "," to @vm in colText ; convert "/" to @fm in colText
* Set header and column information
set=Set_Printer("HEADER", header, colLen, colHeader)
sta=Set_Printer("FOOTER", footer,"") ;* Set footer
set=Set_Printer("TEXTCOL", colText) ; * Print column text
set=Set_Printer("TERM") ;* End printing
/Bertil
----
=== At 23 AUG 2004 10:35AM Bertil Strom wrote: ===
To make myself clear. The printouts are all the same when the code is run with OI4.13, no matter what printer I choose.
With OI7.01, the results are as described and the column header is not shown.
/Bertil
----
=== At 23 AUG 2004 12:11PM Bob Orsini wrote: ===
Certain European printers use commas instead of periods to display decimals. If you are in the UTF8 mode the oipi header routines assmumes this and converts the decimals to commas before sending the paramter to the vsprinter ocx. If the UTF8 mode is on and the printer does not use the commas then the header routine has problems. Is this the case here?
----
=== At 23 AUG 2004 02:27PM Bertil Strom wrote: ===
Thanks Bob
Turning on the UTF8 helps and if I only use one column in the header it looks allright on different printers. Still I get the debug from the OIPI_PRINTHERHEAD routine. Any considerations regarding Fonts and size in this case ?
Bertil
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=WORKS_READ&SUMMARY=1&KEY=33CCE3B6F2B432AA85256EF90049B60A|View this thread on the Works forum...]]