|
|||||||
| TX Text Control .NET Server Please use this forum for TX Text Control .NET Server support only. If you need support for a different product, please use the appropriate forum. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Completely Load ServerTextControl
I am testing the use of the ServerTextControl - no license yet, just the trial version. I have it in a windows form to load file data but I always get this error when I call the Load method.
"The TXTextControl object must have been completely loaded to use this method." Here is my code... Code:
byte[] data = null;
using (TXTextControl.ServerTextControl server = new TXTextControl.ServerTextControl())
{
server.Load(sFileName, TXTextControl.StreamType.RichTextFormat);
server.Save(out data, TXTextControl.BinaryStreamType.InternalUnicodeFormat);
}
Thanks, Mike |
|
#2
|
||||
|
||||
|
Re: Completely Load ServerTextControl
Hi Mike,
When do you exactly call the piece of code?
__________________
Regards, Gunnar Giffey, TX Text Control [Forum Administrator] |
|
#3
|
|||
|
|||
|
Re: Completely Load ServerTextControl
I have attached a sample app that shows the problem. Start the app and click "Open" to try loading a document.
Thanks, Mike |
|
#4
|
||||
|
||||
|
Re: Completely Load ServerTextControl
It looks like you simply forgot the Create() method:
Code:
server.Create();
__________________
Björn Meyer, TX Text Control |
|
#5
|
|||
|
|||
|
Re: Completely Load ServerTextControl
Thanks! That fixed it.
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The TxTextControl object must have been completely loaded to use this method | Alan | TX Text Control .NET | 6 | June 14, 2010 20:19:51 |
| Selection load slower with HeaderFooters | softpromark | TX Text Control .NET | 4 | February 13, 2009 19:12:57 |
| Page margins for sections lost during Load | softpromark | TX Text Control .NET | 11 | October 14, 2008 18:30:44 |
| Load method load time issue | bhormannBest | TX Text Control .NET | 0 | October 31, 2003 15:03:29 |
| Load method | Unregistered | TX Text Control ActiveX | 5 | January 14, 2003 15:53:50 |