HP3000-L Archives

September 2006, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Wirt Atmar <[log in to unmask]>
Reply To:
Date:
Tue, 12 Sep 2006 17:42:19 EDT
Content-Type:
text/plain
Parts/Attachments:
text/plain (42 lines)
Ray writes:

> I was doing some reading on the WEB, and saw an example of
>  an hp spool file being displayed on a WEB page hosted on the hp3k using
>  APACHE.  My question is: has anyone actually done this, and if yes, did
>  you try it with a laser printer report?  I assume that the PCL codes for
>  the laser printer would hose the display on the WEB page, but if it
>  actually worked - wow.

It's actually not that hard to do. In fact, a very simple version of HTML 
requires almost no coding at all. Don't worry that this example makes no sense:

     http://aics-research/other/test.html

Instead, just look at the source code for the page. All you need do is write 
some HTML header material to a file, ending with a pre-formatted header, 
"pre," and then write your ASCII text to the file as you always would. Close the 
file out with a "/pre" and the standard HTML closes, and you're done.

If you've written the material to file name that the webserver already links 
to, you're done. The newest data is now displayed to the world.

However, if you're using a more elaborate report writer, such as the 
extraordinarily elegant and well-done QueryCalc, you can autonomously create PDF files 
on the HP3000 and have them displayed instead, as in this example:

     http://www.aics-research.com/goldbook/goldbook2.pdf

The quality of the on-screen display for these PDF files is greatly 
diminished from the actual output, thus print these few pages out on your color 
printer, if you have one.

In either case, both examples were created wholly on the HP3000 and could be 
served by the same machine, if you have Apache running. If you don't, the same 
files could be automatically FTP'ed to your webserver using a job control 
script on the HP3000.

Wirt Atmar

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2