I have created a VB6 program which uses Word as its report generator. I use the following code to generate an instance of word.
Set mobjWord = GetObject("", "Word.Basic")
mobjWord.AppMinimize ("Microsoft Word")
I am able to manipulate the new document without any trouble. I can insert text and tables but I can't seem to change the documents page orientation. I want to change it to landscape. All of the above operations are done in the background with the application minimized.
Can someone help me out.