Solved

how to send word documents to the spooler

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 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

10 Experts available now in Live!

Get 1:1 Help Now