Find text with regular expression and selected texts

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

3 Replies

KD Kesavan D Syncfusion Team 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.

 

Regards,

Kesavan



RS Ricerca Sviluppo February 25, 2013 09:32 AM UTC

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



AK Ananda Kumar V Syncfusion Team 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.

Regards,
Ananda Kumar


Loader.
Up arrow icon