Unregistered
October 31, 2002, 20:21:09
If I try to set LoadSaveAttribute(txDocHeight) to 0 or -1, I get an error:
Run-time error '380':
Invalid property value.
I am using Visual Basic 6.0 SP5 on Windows 2000 SP3.
-Tom
This message was originally posted by Thomas S. Trias in the old TX Text Control Support Forum.
Meik Dankleff
November 1, 2002, 18:08:25
Why do you want to set the document height to 0 or -1 anyway?
This message was originally posted by Meik Dankleff in the old TX Text Control Support Forum.
Unregistered
November 1, 2002, 20:04:53
According to the documentation, setting LoadSaveAttribute(txDocHeight) to -1 will disable saving the height within the document. I use this to try to preserve relative size information in HTML.
Also, I have code that sets LoadSaveAttribute(txDocHeight) = PageHeight; I know this is redundant if LoadSaveAttribute(txDocHeight) is "not set" (whatever that meams - does it mean set to 0?), but it does mean something if LoadSaveAttribute(txDocHeight) <> PageHeight, which is possible in places in my code where I load documents and use a default page height stored in LoadSaveAttribute(txDocHeight). If PageHeight = 0, setting LoadSaveAttribute(txDocHeight) to PageHeight errors.
BTW, setting LoadSaveAttribute(txDocWidth) works as documented.
-Tom
This message was originally posted by Thomas S. Trias in the old TX Text Control Support Forum.