Link to home
Start Free TrialLog in
Avatar of nkjain24
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.Document")

>> 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\runtimedoc.doc"
 Myobject.bold

Please Help
 
 
ASKER CERTIFIED SOLUTION
Avatar of Brian Mulder
Brian Mulder
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial