Re: generate html report using sqlplus
From: Peter Teoh <htmldeveloper_at_gmail.com>
Date: Thu, 17 Jan 2008 20:53:21 -0800 (PST)
Message-ID: <948b7c27-054b-4a00-a61f-7d7b52d101a2@v67g2000hse.googlegroups.com>
Date: Thu, 17 Jan 2008 20:53:21 -0800 (PST)
Message-ID: <948b7c27-054b-4a00-a61f-7d7b52d101a2@v67g2000hse.googlegroups.com>
Using sqlplus, and if u have access to the htp and htf package, it
should be no problem generating HTML, for example, look at the file
$ORACLE_HOME/rdbms/admin/privutil.sql, and search for all the htp.*
function usage, and u can get the idea how it uses htp functions to
generate HTML structure contents.
For example:
htp.preOpen; htp.prints(translate(text,NL_CHAR,' ')); htp.preClose;
And this:
htp.print('</PRE>'); htp.p(htf.format_cell(columnValue, format_numbers)); htp.tableRowOpen; htp.tableRowClose; htp.tableRowOpen; htp.tableRowClose; htp.formSelectOpen( cname => p_cname, htp.formSelectOption( cvalue => nc_visible, htp.formSelectClose;
etc. Received on Thu Jan 17 2008 - 22:53:21 CST