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 10, 2010
ThomasM ThomasM is offline
Registered User
 
Join Date: Jan 2010
Posts: 13
new TXTextControl.DocumentServer.Fields.MergeField(App licationfield) may cause error

I've a piece of code that's evaluated when a textfield of type "MERGEFIELD" is clicked.

Sometimes after loading and saving documents containing those mergefields an error is raised

"startIndex cannot be larger than length of string.
Parameter name: startIndex"

Problem should be the next code block:

Code:
SelectedMergeField = new TXTextControl.DocumentServer.Fields.MergeField(SelectedApplicationfield);
Does anyone know what's causing this error?

Currently I use the .rtf format for saving the mergetemplate.



Is it possible that this has something to do with the mergefield.textbefore and textafter property? I've a feeling that weird things are happening with these properties. Sometimes strings like " /b " or other appear in them.
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
Style properties - Bug? Unregistered TX Text Control ActiveX 11 November 7, 2006 13:05:42
CUT,Copy,Paste code for editing object paldebu78 TX Text Control ActiveX 1 October 25, 2005 13:27:37
Cut, Copy, Paste, Edit, Open OLE Object paldebu78 TX Text Control ActiveX 3 October 21, 2005 06:27:03
Unexpected Text Control error. (1-e00) bsardinha TX Text Control ActiveX 7 August 18, 2004 16:17:34


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


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