I ordered the Developer OEM License and tried again the delphi integration (via Crosstalk from Atozed). This works better than the OEM support from delphi (in the evluation period we checked all delphi versions without success).
I can read DOCX and save them again. But I can not save my examples as PDF.
Strange thing: If I first open an Docx from your website than I can save this DOCX as PDF and all other examples, but only if I start with this special file. In the other cases the resulting pdf-files are empty and the app is closed.
procedure DoIt(fn: string);
APdfOptions: DocSaveOptions; // PdfSaveOptions;
Caption := fn;
WordApp := ComHelper.Create;
ALicense := License.Create;
ADoc := Document.Create;
ADoc := WordApp.Open(‘S:\Projekt CS\ims\Diverses\AsposeTool’ + fn + ‘.docx’);
ADoc.Save(‘S:\Projekt CS\ims\Diverses\AsposeTool’ + fn + ‘_1.docx’);
ADoc.Save(‘S:\Projekt CS\ims\Diverses\AsposeTool’ + fn + ‘_2.pdf’, SaveFormat.pdf);
On E: Exception do
// THIS WORKS
… same souce
// THIS DOES NOT WORK AND CRASHES AFTER TRYING TO SAVE PDF
So I think there may be an initialization in your file (test00.docx) that is needed for converting the other files. Maybe the problem is Office2016 or the german language support? I tried something without any success, but without debugging it is not easy to localize the problem.
I can send you more files, but I did not know if you know CrossTalk for compiling this example.
PS: I can store my files as RTF but not as XPS!
I am using the lastest Version and using C# it works fine. But using it via Delphi this strange behavior is the result.
Is there a Chance of logging aspose?