that tell me that there are no printers installed (which there are of
course). The puzzling thing is this: While attempting to narrow down the
problem, I simplified the code like so:
<!--- Try to connect to the Word application object --->
<CFTRY>
<!--- If it exists, connect to it --->
<CFOBJECT
ACTION=""> CLASS="Word.Application"
NAME="objWord"
TYPE="COM">
<CFCATCH>
<!--- The object doesn't exist, so create it --->
<CFOBJECT
ACTION=""> CLASS="Word.Application"
NAME="objWord"
TYPE="COM">
</CFCATCH>
</CFTRY>
<!--- <cftry> --->
<CFSCRIPT>
/* This will open Word if running locally */
objWord.Visible = true;
/* This returns the 'Documents' collection of the Word object */
objDoc = objWord.Documents;
/* Open the document */
newDoc = objDoc.open(fileName);
/* Send the document to the server's default printer */
// newDoc.PrintOut();
/* Close the document */
newDoc.Close();
/* Quit Word */
objWord.Quit();
</CFSCRIPT>
However Word never even becomes visible on the server. But it'snot throwing
any errors now that I've commented out the PrintOut() function.
Any ideas/suggestions? Thanks!
---
Josh Remus
Network Manager
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

