Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 03-22-2010, 02:53 AM
mariaprabudass mariaprabudass is offline Word to prn Windows XP Word to prn Office 2003
Novice
Word to prn
 
Join Date: Jan 2010
Posts: 12
mariaprabudass is on a distinguished road
Default

I copied the code for doc to prn thriugh visual basic. If i run the code the dialog window opening for saving the .prn file. Could you please advise me how to control that dialog window(save as) via code. (Or) Is there any third party tool available for this.

Code:
Dim WordObj As Word.Application
Dim Doc As Word.Document
Set WordObj = New Word.Application
WordObj.DisplayAlerts = 0
Set Doc = WordObj.Documents.Open("C:\1.doc")
WordObj.PrintOut Background:=False
Doc.Saved = True
WordObj.Quit
Set WordObj = Nothing

Thanks in advance
Reply With Quote
 



Other Forums: Access Forums

All times are GMT -7. The time now is 01:33 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft