.dwg file printing from vb.net

.dwg file printing from vb.net

Anonymous
Not applicable
315 Views
3 Replies
Message 1 of 4

.dwg file printing from vb.net

Anonymous
Not applicable
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.
0 Likes
316 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
AutoCAD LT does not support ActiveX automation. I believe there may be a
third party package available to alleviate this shortcoming, but I'm not
sure.

Chuck


"markelo" wrote in message
news:B14200A9A786FF12CD919689C74743FB@in.WebX.maYIadrTaRb...
> 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.
>
>
0 Likes
Message 3 of 4

Anonymous
Not applicable
I remember a thread on this NG a while back validating what Chuck is saying.
And yes, they were talking about a third party program or something as a
work around (although not as powerful as ActiveX).

Jeff
--
Jeff Spannbauer
Civil Engineer III
Cannon Associates
www.cannonassoc.com
805-544-7407

"Chuck Gabriel" wrote in message
news:7850CC88BA241EDD048C9E63879C62D6@in.WebX.maYIadrTaRb...
> AutoCAD LT does not support ActiveX automation. I believe there may be a
> third party package available to alleviate this shortcoming, but I'm not
> sure.
>
> Chuck
>
>
> "markelo" wrote in message
> news:B14200A9A786FF12CD919689C74743FB@in.WebX.maYIadrTaRb...
> > 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.
> >
> >
>
>
0 Likes
Message 4 of 4

Anonymous
Not applicable
Oh, that would explain it...Thanks!

If that's not too much trouble, can you tell me which version does support
ActiveX and/or where do I get this information.

Thanks,
Alex.


"Chuck Gabriel" wrote in message
news:7850CC88BA241EDD048C9E63879C62D6@in.WebX.maYIadrTaRb...
> AutoCAD LT does not support ActiveX automation. I believe there may be a
> third party package available to alleviate this shortcoming, but I'm not
> sure.
>
> Chuck
>
>
> "markelo" wrote in message
> news:B14200A9A786FF12CD919689C74743FB@in.WebX.maYIadrTaRb...
> > 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.
> >
> >
>
>
0 Likes