Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Suppress an error in Tx Text Control
Message
De
07/04/2023 12:22:37
 
 
À
07/04/2023 11:20:26
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
01686463
Message ID:
01686467
Vues:
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.

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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform