?
Solved

how to send word documents to the spooler

Posted on 2004-08-30
4
Medium Priority
?
219 Views
Last Modified: 2010-04-23
Hi,

In VB.NET, how can I send jobs such as documents to the printer spooler.  I guess what I'm trying to do is... I have merged the letters and data file and want to send all of them to the spooler and hang there until somebody physically change the form type  print them.

Thanks in advance.
0
Comment
Question by:happytoo
  • 2
  • 2
4 Comments
 
LVL 28

Accepted Solution

by:
iboutchkine earned 500 total points
ID: 11941438
Dim oWord as Word.Application
Dim oDoc as Word.Document

oWord = CreateObject("Word.Application)
oWord.Visible = False.

oDoc = oWord.Documents.Open("C:\Report.doc")

0
 

Author Comment

by:happytoo
ID: 11944677
Never mind.  Got this resolved.  Question closed.
0
 
LVL 28

Expert Comment

by:iboutchkine
ID: 11944736
Would you like to share with everybody?
0
 

Author Comment

by:happytoo
ID: 11945287
       wd.Documents("c:\temp\VB\letter.doc").MailMerge.Execute()
        wd.ActiveDocument.Printout()
        wd.Documents("c:\temp\VB\letter.doc").Close(False)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month17 days, 4 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question