Unable to cast COM object of type 'CADViewLib.DXFImageClass'
Posted: 12 Apr 2011, 15:23
hello,
i am using CADViewx with c#.net.when i am trying find the extents using the AXCadvieX.DXFImage.Extents method i am getting the following error.
"Unable to cast COM object of type 'CADViewLib.DXFImageClass' to interface type 'CADViewLib.IDXFImage'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{E5FD69A2-2C2E-4E65-91D3-AF93ACAC3028}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))."
the code is :
CADViewLib.tagFRectLong vExt = AXCadViewX.DXFImage.Extents;
i am using CADViewx with c#.net.when i am trying find the extents using the AXCadvieX.DXFImage.Extents method i am getting the following error.
"Unable to cast COM object of type 'CADViewLib.DXFImageClass' to interface type 'CADViewLib.IDXFImage'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{E5FD69A2-2C2E-4E65-91D3-AF93ACAC3028}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))."
the code is :
CADViewLib.tagFRectLong vExt = AXCadViewX.DXFImage.Extents;