Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
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.