Eric,
That is why the example says: TYPE FILE.TXT > LPT1 or COPY /B *.TXT LPT1
However, I also send this example (see below).
Copy the code below and save it to a file with the extension: .vbs. Example: Print_Word_Document.vbs
Set app = Wscript.CreateObject("Word.Application")
' app.Visible = true
app.Documents.Open("D:\TEMP\test.doc")
app.Options.PrintBackground = False
app.ActiveDocument.PrintOut:
Saving the file with the .vbs extension will create an icon next to the file. To run it, click the icon or type at the command prompt: Print_Word_Document.vbs
-----Original Message-----
From: Eric Levinson
[mailto:oracledba-ezmlmshield-x93365907.[Email address protected]
Sent: Thursday, September 08, 2005 7:26 PM
To: LazyDBA Discussion
Subject: RE: PRINTING WORD DOC FROM DOS
You can't print a word file to a printer.
Type file.doc >LPT1 will not work.
The file would need to be converted to text, or postscript, and then you
can TYPE or COPY a file in DOS to the printer.
Eric
-----Original Message-----
From: Edwards Ed
[mailto:oracledba-ezmlmshield-x10845016.[Email address protected]
Sent: Thursday, September 08, 2005 7:23 AM
To: LazyDBA Discussion
Subject: RE: PRINTING WORD DOC FROM DOS
Windows 95 and above users
To print information from MS-DOS to the printer the '> LPTx' command
needs to be used after the command typed. This tells the computer to
reroute all information to the appropriate LPT port, x represent the
number. An example and most commonly used command is:
DIR > LPT1
This command tells the computer to print a directory listing, however,
instead of printing it to the screen, send it to the printer which is
located on LPT1.
This command can also be used to print files by using the type command,
for example:
TYPE FILE.TXT > LPT1
If, however, multiple files need to be printed, using the copy command
can also be used. Below is an example:
COPY /B *.TXT LPT1
The above example will copy all txt or text files in the current
directory to the lpt1 port.
-----Original Message-----
From: Edwards, Ed
Sent: Thursday, September 08, 2005 10:11 AM
To: 'j'; LazyDBA Discussion
Subject: RE: PRINTING WORD DOC FROM DOS
Importance: High
What about saving the Word (.doc) file to a .txt file (Example:
File1.doc to File1.txt)? Then, at the Command Prompt, type print
File1.txt
-----Original Message-----
From: j [mailto:oracledba-ezmlmshield-x24337164.[Email address
protected]
Sent: Thursday, September 08, 2005 9:57 AM
To: LazyDBA Discussion
Subject: PRINTING WORD DOC FROM DOS
Dear All,
Can anyone propose some idea of how printing of a word doc can be done
from DOS?
Thanks and Regards,
Jay
"Reedus Design SL - Jason Reed "
<oracledba-ezmlmshield-x22129671.[Email address protected]
09/08/2005 06:59 PM
To
"LazyDBA Discussion" <[Email address protected]
cc
Subject
Oracle database connection to sql server
I am trying to get Oracle 9i to talk to Sql Server (which is on another
office) without much success.
I have tried following the many tutorials on heterogeneous Services ODBC
agent. but they seem geared for oracle speaking to Sql server on the
same
machine.
Any bright sparks that can point me in the right direction??
I am more of a developer than a dba so please make it easy to follow..
Thanks in advance.
Jason
--------
website: http://www.LazyDBA.com
Please don't reply to RTFM questions
Oracle documentation is here: http://tahiti.oracle.com
To unsubscribe: see http://www.lazydba.com/unsubscribe.html
To subscribe: see http://www.lazydba.com
By using this list you agree to these terms:
http://www.lazydba.com/legal.html
ForwardSourceID:NT0000B3B2
Notice: The information contained in this e-mail message and/or
attachments to it may contain confidential or privileged information.
If you are not the intended recipient, any dissemination, use, review,
distribution, printing or copying of the information contained in this
e-mail message and/or attachments to it are strictly prohibited. If
you have received this communication in error, please notify us by reply
e-mail or telephone and immediately and permanently delete the message
and any attachments. Thank you
--------
website: http://www.LazyDBA.com
Please don't reply to RTFM questions
Oracle documentation is here: http://tahiti.oracle.com
To unsubscribe: see http://www.lazydba.com/unsubscribe.html
To subscribe: see http://www.lazydba.com
By using this list you agree to these
terms:http://www.lazydba.com/legal.html
--------
website: http://www.LazyDBA.com
Please don't reply to RTFM questions
Oracle documentation is here: http://tahiti.oracle.com
To unsubscribe: see http://www.lazydba.com/unsubscribe.html
To subscribe: see http://www.lazydba.com
By using this list you agree to these
terms:http://www.lazydba.com/legal.html
--------
website: http://www.LazyDBA.com
Please don't reply to RTFM questions
Oracle documentation is here: http://tahiti.oracle.com
To unsubscribe: see http://www.lazydba.com/unsubscribe.html
To subscribe: see http://www.lazydba.com
By using this list you agree to these terms:http://www.lazydba.com/legal.html
Oracle LazyDBA home page