Anthony047
Technical User
Hello to everybody,
I need to draw a "line" over some text of a Word document; unfortunately using the "strike" effect of the text font is not feasible due to the presence of "subscript" characters.
After selecting the text, I tryed reading the coordinates of the text with:
ActiveWindow.GetPoint pLeft, pTop, pWidth, pHeight, Selection.Range
and then draw the line with:
ActiveDocument.Shapes.AddLine(pLeft , pTop, pLeft +pWidht, pTop).Select
Unfortunately the first instruction returns the coordinates with respect to top/left corner of the physical screen, wereas the second one requires the coordinates with respect to the document window (the window normally white in the application window).
And I am even not sure that the measurement units is the same for both the instructions..
Can you suggest me a viable path? Thank.
Anthony
I need to draw a "line" over some text of a Word document; unfortunately using the "strike" effect of the text font is not feasible due to the presence of "subscript" characters.
After selecting the text, I tryed reading the coordinates of the text with:
ActiveWindow.GetPoint pLeft, pTop, pWidth, pHeight, Selection.Range
and then draw the line with:
ActiveDocument.Shapes.AddLine(pLeft , pTop, pLeft +pWidht, pTop).Select
Unfortunately the first instruction returns the coordinates with respect to top/left corner of the physical screen, wereas the second one requires the coordinates with respect to the document window (the window normally white in the application window).
And I am even not sure that the measurement units is the same for both the instructions..
Can you suggest me a viable path? Thank.
Anthony