SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jun 2006
    Location
    hyderabad
    Posts
    31
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Get the Text from MS_Word

    In My Application we have one control same as MS_Word Text Control.We are not getting to read data from MS_Word. Is anybody tried , reading data from MS_Word.It is identifying as GUI Object, but by using Text property not displaying the data of MS_word.

    Thanks in advance
    yani

  2. #2
    Member
    Join Date
    Jul 2003
    Location
    Germany
    Posts
    458
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Get the Text from MS_Word

    did you try the .CaptureText method?

  3. #3
    Member
    Join Date
    Jun 2006
    Location
    hyderabad
    Posts
    31
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Get the Text from MS_Word

    ".capturetext" is displaying the Total Text in document.If Doc. has 1 table, I want data from particular table cell only. Inthis case not getting required data.
    yani

  4. #4
    Member
    Join Date
    Jul 2003
    Location
    Germany
    Posts
    458
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Get the Text from MS_Word

    Take a look a word's VBA scripting language, you can access all information in word docs by vba, just include the "Microsoft Word Object Library" as a reference to the TP script (see menu tools~references) and of course you need to some something about Word VBA Macro programming, there are quite a few books available on this topic.

  5. #5
    Member
    Join Date
    Jun 2006
    Location
    hyderabad
    Posts
    31
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Get the Text from MS_Word

    Thanks Q.A.Tom for yours response,
    after adding the appropriate text control reference. then identying the text control it showing
    "ActiveX("Name=txtDocument ClassName=TXTextControl")". after that if we set the object for activex control it is displaying an error "Cant Create object for Activex control". how can i create object for this activex control.
    I try using set method even iam not succed.if any one know plz let me know.

    Thanks in advance
    yani

  6. #6
    Member
    Join Date
    Jul 2003
    Location
    Germany
    Posts
    458
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Get the Text from MS_Word

    The sample code below shows how to use the word spell check in TestPartner. Copy this code to a new script and then select menu Tools~References and check the library "Microsoft Word Object Library". Instead of calling WordApp.CheckSpelling you can do everything that is possible with Microsoft Word VBA.

    <font class="small">Code:</font><hr /><pre>
    Sub Main()

    Dim WordApp As New Word.Application

    UserCheck "Spellcheck", WordApp.CheckSpelling("test text")

    End Sub
    </pre><hr />

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 09:12 PM.

Copyright BetaSoft Inc.