PDA

View Full Version : Load fails URGENT PROBLEM


Wim Sandra
July 31, 2003, 16:10:30
Hi,

The TX Text Control ActiveX Server fails on the attached word document with the following code:

Tx4oleLib::ILicManagerPtr lic(__uuidof(Tx4oleLib::TXLicenseManager));
Tx4oleLib::_DTX4OLEPtr textControl(__uuidof(Tx4oleLib::TXTextControl));

textControl->EnableAutomationServer();
textControl->Load((char *) _fullPathName.c_str(), 0, 9);
textControl->ViewMode = 2;
textControl->PageHeight = 16837;
textControl->PageWidth = 11906;

It does not fail without the "textControl->EnableAutomationServer();"



Wim

Christopher Krause
July 31, 2003, 18:19:17
Hi Wim,

I have tested your document and it is working fine.

tx.Load Server.MapPath("report3616_1059657129.doc"), 0, 9, false

Regards,
Christopher Krause, TX Text Control

Wim Sandra
July 31, 2003, 19:29:48
Indeed, Christopher,

textControl->Load((char *) _fullPathName.c_str(), 0, 9, 0);

solved the problem on my side as well.


Thanks for the fast response,

now I can continue with some performance testing on our webserver,

Wim