Go Back   TX Text Control Community > TX Text Control Discussion and Support Forums > TX Text Control .NET Server

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.

Reply
 
Thread Tools Display Modes
  #1  
Old February 9, 2010
mlmanfredi mlmanfredi is offline
Registered User
 
Join Date: May 2009
Posts: 60
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);
}
What needs to be done to completely load ServerTextControl?

Thanks,
Mike
Reply With Quote
  #2  
Old February 10, 2010
Gunnar Giffey's Avatar
Gunnar Giffey Gunnar Giffey is offline
TX Support Engineer
TX Text Control
 
Join Date: Sep 2004
Location: Bremen, Germany
Posts: 3,999
Re: Completely Load ServerTextControl

Hi Mike,
When do you exactly call the piece of code?
__________________
Regards,
Gunnar Giffey, TX Text Control
[Forum Administrator]
Reply With Quote
  #3  
Old February 11, 2010
mlmanfredi mlmanfredi is offline
Registered User
 
Join Date: May 2009
Posts: 60
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
Attached Files
File Type: zip ServerSample.zip (15.0 KB, 20 views)
Reply With Quote
  #4  
Old February 12, 2010
Björn Meyer's Avatar
Björn Meyer Björn Meyer is offline
Product Manager
TX Text Control
 
Join Date: Jan 1999
Location: Bremen, Germany
Posts: 2,406
Re: Completely Load ServerTextControl

It looks like you simply forgot the Create() method:

Code:
server.Create();
This method must be called before any other property or method.
__________________
Björn Meyer, TX Text Control
Reply With Quote
  #5  
Old February 12, 2010
mlmanfredi mlmanfredi is offline
Registered User
 
Join Date: May 2009
Posts: 60
Re: Completely Load ServerTextControl

Thanks! That fixed it.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


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


All times are GMT +1. The time now is 06:20:48.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 1991 - 2010 The Imaging Source Europe GmbH