We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Find text with regular expression and selected texts

Thread ID:





106888 Jan 30,2013 04:27 PM UTC Feb 26,2013 09:18 AM UTC WinForms 3
Tags: DocIO
Ricerca Sviluppo
Asked On January 30, 2013 04:27 PM UTC

Good afternoon
We're evaluating DocIo in an our process that need to create .doc documents from a .doc model.
The .doc model contains fix texts and "variables"; variables have the syntax  {@Cod - Description}.

The process would use DocIo with the following steps:
1 - open the model document
2 - clone it to the final document
3 - find all variables into the model (wordDocument.FindAll (regex))
4 - substitute all variables with values
5 - and also manage variables in tables (in this case, we must clone the table row...)

We found a strange behavior with a particular .doc model: looking for a variable is inside a table (by checking its owner), we got a "fouling" of the next selected text.

Attached to this post, you'll find a .zip file that contains:
- a VB project sample, that load the model document and does the operations
- the .doc model  "TemplateMaster - Regex.doc"

Our "merging" process is done by Button2_click function; if you run it, click on button "Generate Regex" from the main dialog.

The code shows first 10 selections; then check if the 6^ item (variable) is inside a table: this operation will change the text selection of the 7^ item :-(

The "real" code will do the table check for each variable: we cut these operations just to go direct to the issue :-)

Thank you in advance for any suggestions you could give us! :-)

Best regards

sample and model_ee331153.zip

Kesavan D [Syncfusion]
Replied On February 5, 2013 11:48 AM UTC

Hi Ricerca,


Thanks for the update.


We are able to reproduce the mentioned behavior in the text selection.  We kindly request you to report this issue through our Direct-Trac support system for providing the issue related details.


Direct-Trac support link : https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents


Please let us know if you have any questions.




Ricerca Sviluppo
Replied On February 25, 2013 09:32 AM UTC

Thank you Kesavan
I've just post this issue to the Support.
Best regards!

Ananda Kumar V [Syncfusion]
Replied On February 26, 2013 09:18 AM UTC

Hi Ricerca,

Thanks for your post.

We will get back to you regarding the fix through the Direct-Trac support system.

Ananda Kumar


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon