04-20-2016 12:24 AM - edited 04-20-2016 12:25 AM
I would like to generate a report in WORD using Report generation tool kit.
Whenever a text is added to the report, program should make a part of text in subscript. The problem I am facing is to set the cursor position to the current text location.
Any suggestions?
Solved! Go to Solution.
04-20-2016 05:18 AM
Hello!
I think this is what you wanted (see attachement).
Firstly, you need to set position for each for loop, so after adding the table, your cursor index need to increase by the number of characters added. That's why I included Append Report Text - to get the cursor position at the end.
Indexing starts with 0, so you need to set them 3 and 7.
Hope you get what I mean
04-20-2016 07:02 AM
Thank you for the solution.
I made few changes. Please find the attached files.
04-20-2016 07:14 AM
What are the attached files for? Is it what you're expecting to be?
04-20-2016 07:32 AM
If so, try this version.
Within an array in word_Subscript.vi you define the ranges for each element from array of string. Therefore for your application it should go 1,2,4,7, and the second row also 1,2,4,7.
04-20-2016 01:21 PM
@AdamTrojak wrote:If so, try this version.
Within an array in word_Subscript.vi you define the ranges for each element from array of string. Therefore for your application it should go 1,2,4,7, and the second row also 1,2,4,7.
You need to offset with the value of the current position. In your code you are just resetting to subscript the characters you have subscripted (if this english?) at the first iteration. Here's how to do it.
Ben64
04-20-2016 01:43 PM