General information
Category:
ActiveX controls in VFP
>In the similar situation ActiveX it self shows error messagebox when .LOAD() metod, how I can suppress that? Is there any flag/property?
From what I remember (looking at my code from 2011) I don't even .load() the file, the only contact between the document and the AX control is what you saw. The whole thing was about getting the right document type (9 for old style doc, 12 for docx). I remember that this trick stopped the error from appearing. If you have a different cause, well, so much from me.
One more thing: frames, if used in the document, used to create chaos in the pdf, as they were somehow floating above the coordinates of the document, and the renderer was supposed to flow the text around them, which Word did right, but Tx control didn't. We simply converted those using Word automation, and gradually phased them out, replacing the frames with other types of shapes in the template documents. Word automation had its own problems - just like anything else in Office, it worked fine in demos, but couldn't bear real load. It would fail to return memory when unloading the document, so I had to kill the word object after every 40 documents and instantiate another one.
That's why there is no Word Automation, I guess.
BTW, The code stuck at this point
loTx.Load(lcFromFile, 0, lnType) && Not in all DOC/DOCX but in few random.
Regards,
Jignesh
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only