W
Word-to-prn
Hello all,
I need to convert Doc(word) file to Prn file through VBA or through any
programming language. Could you please advise me how to convert doc to
prn(or)ps without manual interaction.
I tried to convert "doc to prn" through visual basic. I copied the code. If
i run the code the dialog window appers for saving the .prn file. Is it
possible to control that dialog window(save as) via code(without manual
interaction). (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
I need to convert Doc(word) file to Prn file through VBA or through any
programming language. Could you please advise me how to convert doc to
prn(or)ps without manual interaction.
I tried to convert "doc to prn" through visual basic. I copied the code. If
i run the code the dialog window appers for saving the .prn file. Is it
possible to control that dialog window(save as) via code(without manual
interaction). (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