I'd be careful with HTMLDoc, it doesn't support shrink to fit, it also
doesn't compensate for IE's tendency to print off the right side of the
page. This is a pretty well known bug, and they had no knowledge of it.

Since generating PDF's is essentially a print process, the bug falls over
into the generated PDF. I had to abandon HTMLDoc because of this.

sas

Scott A. Stewart
ColdFusion Developer
 
GNSI
11820 Parklawn Dr
Rockville, MD 20852
(301) 770-9610  

-----Original Message-----
From: Andrew Tyrone [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 17, 2005 11:20 AM
To: CF-Talk
Subject: RE: Sending Faxes through Cold Fusion

> -----Original Message-----
> From: Justin D. Scott [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, November 17, 2005 10:06 AM
> To: CF-Talk
> Subject: RE: Sending Faxes through Cold Fusion
> 
> > Google HTMLDOC. If I remember correctly it's free
> > and does everything you are looking for.
> 
> Thanks Terry, the only thing I could find with that was a 
> utility to convert
> pages to PDF, but I didn't see anything about it sending them to the
> printer.  My ideal solution would be a tool that would simply 
> take a URL to
> fetch, render, and print to the default printer with no user 
> interaction on
> the server.
> 
> I've been trying to write a utility in .NET to do this, but 
> my C# skills are
> not to that level just yet and I'm running out of scheduled time.

This is a Windows-only solution (at least just tested and being used on
Windows):

Actually, htmldoc allows you to convert html pages to postscript as well, so
if you have postscript drivers installed for your printers you can simply
copy the .ps file to any local or network printer via the command line.  You
can even use move from the command line which will take care of sending the
file to the printer and then deleting it (although there is a caveat with
using move, see below).  I set this system up a few years back for a
non-profit client of ours.  It's an intranet system that allows them to
print reports, letter runs and billing statements directly to any printer on
their network.  It also gives them the option to generate a PDF, which is
nice when they are working remotely and need to view or print something
locally.

The batch file runs the html file through htmldoc and then moves the output
...ps file to the printer: move \\server\printername.  For some reason I've
noticed that moving the file stopped working on the server after some period
of time, so I had to change the batch file so it would copy the .ps file to
the printer and then delete it.  That's neither here nor there, though, but
maybe it'll help someone in the future!

Andy





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224508
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to