tweetie777
Programmer
I am currently using the code below in order to print a word document using my delphi program. What class string would I have to use in place of 'word.basic' in order to open and print through the word viewer. I can't find it anywhere. Thank you to anyone who can help me.
uses ComObj;
var
MSWord : OLEVariant;
begin
MSWord := CreateOLEObject('Word.Basic');
MSWord.FileOpen('c:\sample.doc');
MSWord.Print;
end;
uses ComObj;
var
MSWord : OLEVariant;
begin
MSWord := CreateOLEObject('Word.Basic');
MSWord.FileOpen('c:\sample.doc');
MSWord.Print;
end;