Hi there
I need to automate the printing of wordpad documents using VB. The following code is what I have written :-
Dim filename As String
Dim wp As String
Dim actApp As String
filename = "test1.txt"
wp = "c:\wordpad.exe c:\MyDocuments\" + filename
Shell wp
' to change focus to WordPad app
actApp = filename + " - WordPad"
AppActivate actApp
I believe the above will make the wordpad application window active. But what do I do next print the document from here?
I need to open up the document in order to print becoz the document contains Chinese characters. So I need to open up the document so that a Chinese translator software at my PC will display them correctly before printing. Pls help and advise. Thanks alot for your kind attention.
Rgds
jche...
I need to automate the printing of wordpad documents using VB. The following code is what I have written :-
Dim filename As String
Dim wp As String
Dim actApp As String
filename = "test1.txt"
wp = "c:\wordpad.exe c:\MyDocuments\" + filename
Shell wp
' to change focus to WordPad app
actApp = filename + " - WordPad"
AppActivate actApp
I believe the above will make the wordpad application window active. But what do I do next print the document from here?
I need to open up the document in order to print becoz the document contains Chinese characters. So I need to open up the document so that a Chinese translator software at my PC will display them correctly before printing. Pls help and advise. Thanks alot for your kind attention.
Rgds
jche...