On Thursday, October 30, 1997, 08:50 AM, Don Travis wrote: Does anyone know of a tool that will create a internet/intranet document from an RPG-generated report from the spool file. This would be similiar to the Cognos Impromtu tool that has an option to publish a report as an HTML. Don, I don't know of a tool/utility to do this but it's not too difficult do it yourself if you have only a few spool files to do. But it probably could be automated without too much difficulty using CA/PCS and VB. To do it manually,.. 1) you need a physical file with a record length at least as long as your spool file, eg. 132. 2) Use CPYSPLF to that physical file. 3) Download the physical file to a PC as a text, (*.txt) file. 4) Insert the following html tags, (without the quotes) to the beginning and end of the text file: BORDER=5 CELLSPACING=0 CELLPADDING=5>
'<'HTML'>' '<'HEAD'>' '<'TITLE'>Spoolfile to HTML or Any tittle you want'<'/TITLE'>' '<'/HEAD'> '<'BODY'>' '<'PRE'>' . . '<'/PRE'>' '<'/BODY'>' '<'/HTML'>'Then save the file as *.HTM, *.HTML. Hope this helps,
Jon A. Erickson Viking Industries, Inc. |
Comment