Solved

how to send word documents to the spooler

Posted on 2004-08-30
4
209 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 250 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

919 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now