How to print a series of files on disk to the windows print spool.
Hello,
I have a list of files on disk.
Each record is the fully qualified UNC path and filename.
I would like to send these files to the end users default printer as a document.
I have attempted to build a html page using document.write statements and print using printWindow.print();
command.
I think there must be a better way to send a series of files to the windows print spooler.
I would welcome any and all input.
Wouldn't a server side method including
$ZF(-1,"PRINT "_uncpath)
work?Stuart, thank you for your reply. I implemented you suggestion and get a return code of zero. Nothing happens on the client. I need to test if the PRINT command is executing on the server. I am also going to look at encapsulating the image in a ZEN report and using a Render Server.
Peter,
What kind of files are these? Text files, PDF files, something else entirely? The answer to this is going to matter because some formats require an application to print them.
Where are the files. Are they on the server or are they on the client.
Clark
Clark, thank you for your reply. In this case the files are all group four tiff files. I can access each file via a unique UNC. The file is not on the client.
Hello again, I have returned to creating a web page which contains the image data that I wish to print.
This approach works when I reference images in my /csp directory. However, I need to reference
images which may reside on several storage locations.
I am exploring using virtual directories defined on my CSPGateWay – so far unsuccessfully.
I have tried using URL and just virtual directory syntax(see below).
My hope is that someone with experience in web development might take a look and point out any issues.
Thank you.
<!DOCTYPE html>
<html>
<head>
<title>Print Window</title>
</head>
<body>
<img height="1000" width="1000" src="http://myIISserver/csp/IPMDrvK/###/###/##e/#uk/euk_3.tif">
<img height="1000" width="1000" src="http://myIISserver/csp/IPMDrvK/###/###/##e/#uk/euk_4.tif">
<img height="1000" width="1000" src="http://myIISserver/csp/IPMDrvK/###/###/##e/#uk/euk_5.tif">
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Print Window</title>
</head>
<body>
<img height="1000" width="1000" src="/IPMDrvK/###/###/##e/#uk/euk_3">
<img height="1000" width="1000" src="/IPMDrvK/###/###/##e/#uk/euk_4">
<img height="1000" width="1000" src="/IPMDrvK/###/###/##e/#uk/euk_5">
</body>
</html>