home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 31
/
CDASC_31_1996_juillet_aout.iso
/
vrac_os2
/
printurl.zip
/
PRINTURL.TXT
< prev
Wrap
Text File
|
1996-06-04
|
2KB
|
67 lines
/*------------------------------*/
/* PrintURL */
/*------------------------------*/
This PM application allows the user to load and print a specified
URL on the default system printer through a single command (much in
the same way that you print out a text-only file). The loading,
formatting and printing of the URL is all handled by the WebExplorer
DLL's (not included). All activity is hidden from the user as the
application starts an invisible window which loads, formats and
prints the specified URL. The application stops after the URL is
successfully printed or if any loading or printing error occurs.
Any type of URL that WebExplorer is capable of loading may be
printing with this utility. This includes:
1) HTML files
2) FTP directory listings
3) Graphic files (GIF, BMP, JPG)
USAGE:
PrintURL urlname
EXAMPLES:
PrintURL http://www.yahoo.com
PrintURL ftp://hobbes.nmsu.edu/os2
PrintURL http://www.unitedmedia.com/comics/dilbert.gif
RETURNS:
0 - No errors
1 - Could not load URL (invalid, not found or unavailable)
2 - Other loading errors
3 - Printing error
NOTES:
- The WebExplorer DLL's must be in the libpath or, for Warp,
the BEGINLIBPATH or ENDLIBPATH envirironment variable must
be set to the directory containing the WebExplorer DLL's.
POSSIBLE FUTURE ENHANCEMENTS:
- checking for tcp/ip connection
- specification of connection script (if required)
- timed and/or repeated execution
- select non-default printer
- use configuration
- error notification/quiet mode toggle
KNOWN PROBLEMS:
- WebExplorer crashes if you attempt to print a very large table
PACKAGE CONTENTS:
PrintURL.exe - 35657 bytes
PrintURL.txt - 1985 bytes
This program is free but drop me a line if you think it is useful.
Darcy Chorneyko
darcy@ibm.net