Hi Team,
I am not able to open existing document by invoking Aspose.words dll as com in delphi 2007.While invoking Comhelper open method in Delphi 2007,It is Throwing floating point error/Access violation error/Stack Overflow error.
Please help us to resolve this
var
doc: _Document;
builder: _DocumentBuilder;
opendoc:_ComHelper;
doc1: OleVariant;
helper: OleVariant;
Begin
{this below code throws stack overflow error on opening docx and access violation error on doc file}
doc := CoDocument.Create;
builder := CoDocumentBuilder.Create;
opendoc:= CoComHelper.Create;
doc := opendoc.Open('c:\testing.dotx');
doc.Save('c:\testing.pdf');
{The below code Throws floating point error at open method }
CoInitialize(nil);
helper := CreateOleObject('Aspose.Words.ComHelper');
doc1 := CreateOleObject('Aspose.Words.Document');
doc1:= helper.Open('c:/testing.dotx');
doc1.Save('c:/srcdoc.pdf');
CoUninitialize;
Thanks
Vijaya Maruthai