View Full Version : Text Control Size too small to load data
MCSL
July 23, 2004, 18:45:01
Hi,
I am trying to load a .tx file using ActiveX server control. But it gives me error saying "Text Control Size too small to load data". Following are my page parameters that I set
TXControl.FontBold = False
TXControl.FontSize = 1
TXControl.ViewMode = 1
TXControl.PageHeight = 16837
TXControl.PageWidth = 11606
TXControl.PageMarginL = 567
TXControl.PageMarginB = 567
TXControl.PageMarginT = 567
TXControl.PageMarginR = 567
Please help me with this
Björn Meyer
July 29, 2004, 13:28:00
Hello
Which development environment do you use? Do you use ASP? May I ask for the samplte .tx file?
bjoern@textcontrol.com
eingen
October 7, 2004, 20:07:15
I am also suddenly getting this error when I wasn't ever before. Please help!!!
Björn Meyer
October 8, 2004, 10:44:39
Hello Erik
Do you also load a document? Pleae send me this document. Thank you.
bjoern@textcontrol.com
ning
February 2, 2006, 21:40:13
I have the same problem loading word template file into text control. Once it blows up, I have to restart the IIS server or application pool to make it work again. A known memory issue?
Ackamajack
February 14, 2006, 04:00:31
I see there is a fix for this in v11 SP3, but what is the cause of the problem?
We get this error on 1 PC but not another. Any idea why?
We get the problem trying to do the following:
objControl.PageWidth = (int)objControl.get_LoadSaveAttribute(Tx4oleLib.Lo adSaveAttributeConstants.txDocWidth);
(where objControl is defined as TXTextControl objControl)
wreinke
February 22, 2006, 18:05:10
Not sure if this will help you all but it did for me when my program kept getting this error.
All I did was set the ViewMode to 2 and the PageWidth to 12240 and the PageHeight to 15840 before loading the document.
Then if you want to retain the original page width and height you do the following code after loading the document. Assume objTX is the text control object. This is all in VB.NET format.
With objTX
If .LoadSaveAttribute(0) > 0 Then .PageWidth = .LoadSaveAttribute(0) 'txDocWidth
If .LoadSaveAttribute(1) > 0 Then .PageHeight = .LoadSaveAttribute(1) 'txDocHeight
If .LoadSaveAttribute(2) > 0 Then .PageMarginL = .LoadSaveAttribute(2) 'txDocLeftMargin
If .LoadSaveAttribute(3) > 0 Then .PageMarginT = .LoadSaveAttribute(3) 'txDocTopMargin
If .LoadSaveAttribute(4) > 0 Then .PageMarginR = .LoadSaveAttribute(4) 'txDocRightMargin
If .LoadSaveAttribute(5) > 0 Then .PageMarginB = .LoadSaveAttribute(5) 'txDocBottomMargin
End With