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

At 05 SEP 2001 12:42:24AM Tony Ayling wrote:

Has anyone successfully exported an oipi report to a html file yet?

Maybe someone could just confirm it works so we know we have a problem or not.

Thanks all

Regards

Tony Ayling


At 08 OCT 2001 04:02PM WinWin/Revelation Technical Support wrote:

Tony:

From an upcoming White Paper on OIPI and exporting to files.

Program presumes that you have already done a Set_Printer(START32).

$Insert OIPI_Equates
$Insert Colors

*---
* Print to an HTML File
*---
Filename =TEST PRINT':@FM: '' :@FM: 4 :@FM: 'C:\temp\HTMLfile.HTML'
x   =Set_Printer("INIT",FILENAME,'','','',0)
text=Export to HTML Example"
x   =Set_Printer("TEXT", TEXT)

*---
* Print 10 Lines
*---
For I=1 To 10
	TEXT=Line ':I
	x=Set_Printer("TEXT", TEXT)
Next I
*---
* print a table
*---
table =1,2,3,4":@fm
table := "5,6,7,8/"
table := "9,10,11,12/"
table := "Row Number 4 - Column Number 1,Row Number 4 - Column Number 2,Row Number 4 - Column Number 3,Row Number 4 - Column Number 4"

convert "," to @vm in table
convert "/" to @fm in table

head       =Column 1":@VM: "Column 2":@VM: "Column 3":@VM: "Column 4"
Column_Defs=+2160":@VM: "=2160"

x=Set_Printer("TEXT", @FM: "Here's a Table":@FM)

x=Set_Printer("ADDTABLE", Column_Defs, head, table, Red$, Yellow$, 0, TB_ALL)

x=Set_Printer("TERM")

Hope it helps

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/746152f9831972b085256abe0019dae9.txt
  • Last modified: 2024/01/04 20:57
  • by 127.0.0.1