Mircosoft Word - Unable to highlight word content as TextObject
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mircosoft Word - Unable to highlight word content as TextObject
Hi Team,
We are using some Microsoft Word Add-in in our project, As per functionality, we need to check the Color of text and need to check whether the word file contains any hyperlink etc.,
We are unable to identify the any TextObject, it will be useful if the word content identify as a text object.
We activated MSAA as well as TextRecognization even though we are unable to highlight.
ClassName - _WwG, _WwF
If anyone have any solution, please let us know, it will be very helpful 🙂
Thanks in advance,
Kamal
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This earlier thread may be of some help:
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Marsha,
I agree, COM Interface and OLE standards are the way to go but earlier i have mentioned that we are using word addin, we tried with com objects but we unable to retrive it, also the documents not save as doc, docx format.its a kind of folio, so we decide to do with front end UI Automation. It will be helpful if we have any possibilities via UI.
Thanks,
Kamal
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Kamal,
It is my understanding that the text you need to work with is handled completely by your plugin and is not exposed via standard Word document COM model (as suggested by Marsha).
If the above is correct, then you may try to provide TestComplete with debug information for your plugin and check if it makes it possible to access text attributes via methods and properties exposed by plugin.
If it does not, then you should talk to Development and ask them to implement this functionality.
However, I agree with Marsha that the most logical and reliable approach is to access text properties via regular Word document COM model.
/Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
