I have a same Problems like described in this thread: Aspose.Words invoked through COM fails to open some Word templates
Unfortunately the solutions of this thread don’t help in my case.
Here is the code I’m using:
procedure TForm7.Button1Click(Sender: TObject);
var
WordApp, ADoc: OLEvariant;
begin
CoInitialize(nil);
WordApp := CreateOleObject(‘Aspose.Words.ComHelper’);
ADoc := CreateOleObject(‘Aspose.Words.Document’);
try
ADoc := WordApp.Open(‘s:/doc/doc1.docx’);
ADoc.Save(‘s:\doc\doc2.docx’);
finally
CoUninitialize;
end;
end;
And here is the error message I get:
In Project S:… occured an error with the following message: ‘Floating Point invalid Operation at 0x79aa47a8’. Process stopped…
Does anyone has the same issue or a solution for this Problem?