Most things seems to work, but i get an with this code:
Code: Select all
IPXC_Annotation annot = page.InsertNewAnnot(nText, ref rcPage);
// error comes here
IPXC_AnnotData_Line aData = (IPXC_AnnotData_Line)annot.Data;
Anybody got any ideas?{"Unable to cast COM object of type 'System.__ComObject' to interface type 'PDFXEdit.IPXC_AnnotData_Line'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{74241EDA-26AF-4F26-89CC-DB968190332D}' failed due to the following error: Det er ingen støtte for dette grensesnittet (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))."}
The rest of the code in the application seems to work as it should
the IPXC_AnnotData_Line interface is found in Visual Studio, and I can se propertes og an object based on it, and the cast is allowed pre runtime, but I get the abowe error when accessing the code at runtime.