nkjain24
asked on
Call word doc using VB 3.0
I am trying to create word document using VB 3.0.
I need to create word doc at run time & insert & format text at run time.
My machine is NT 4.0 workstation.
I tried following code
Dim Myobject As object
Set Myobject = CreateObject("Wordproc.Doc ument")
>> I am getting error on the above line
"OLE Automation Server can not create Object"
Myobject.bold
Myobject.insert "Hello World"
Myobject.Print
Myobject.saveas "c:\neeraj\winfax\runtimed oc.doc"
Myobject.bold
Please Help
I need to create word doc at run time & insert & format text at run time.
My machine is NT 4.0 workstation.
I tried following code
Dim Myobject As object
Set Myobject = CreateObject("Wordproc.Doc
>> I am getting error on the above line
"OLE Automation Server can not create Object"
Myobject.bold
Myobject.insert "Hello World"
Myobject.Print
Myobject.saveas "c:\neeraj\winfax\runtimed
Myobject.bold
Please Help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.