Solved

how to send word documents to the spooler

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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

809 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