Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Suppress an error in Tx Text Control
Message
From
07/04/2023 11:20:26
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
07/04/2023 10:59:09
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01686463
Message ID:
01686466
Views:
49
>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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform