Message 1 of 4
.dwg file printing from vb.net

Not applicable
05-01-2002
12:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I need to be able to print .dwg files from vb.net program, but so far I
can't even instantiate new AcadApplication object.
This code - MyCADapp = New AutoCAD.AcadApplication
yields "COM object with CLSID {bla-bla-bla} is either not valid or not
registered." error
And this code - acApp = CType(CreateObject("AutoCAD.Application"),
AutoCAD.AcadApplication)
yields "Cannot create ActiveX component." error.
I was reading some earlier posts that the second error occasionally happened
on VB6, but did noticed any resolutions to that (actually there was a
solution - to reinstall AutoCAD...)
I'm programming against AutoCAD LT 2000i
Any ideas?
Thanks,
Alex.
I need to be able to print .dwg files from vb.net program, but so far I
can't even instantiate new AcadApplication object.
This code - MyCADapp = New AutoCAD.AcadApplication
yields "COM object with CLSID {bla-bla-bla} is either not valid or not
registered." error
And this code - acApp = CType(CreateObject("AutoCAD.Application"),
AutoCAD.AcadApplication)
yields "Cannot create ActiveX component." error.
I was reading some earlier posts that the second error occasionally happened
on VB6, but did noticed any resolutions to that (actually there was a
solution - to reinstall AutoCAD...)
I'm programming against AutoCAD LT 2000i
Any ideas?
Thanks,
Alex.