Results 1 to 5 of 5

Thread: QTP script for word document

  1. #1
    Junior Member
    Join Date
    May 2008
    Answers
    1

    QTP script for word document

    Need help to read a word document from some location through QTP script and verify some fields in it.


  2. #2
    Expert Member
    Join Date
    Jan 2007
    Answers
    211

    Re: QTP script for word document

    Please refer the Manual of Microsoft word there are API's available for controls available in Microsft word..

    You can use VBscript to instantiate the word Document and perform validations on the controls.

    Regards,
    Nawab


  3. #3
    Junior Member
    Join Date
    Jul 2008
    Answers
    1

    Re: QTP script for word document

    can some one give me clear idea


  4. #4
    Expert Member
    Join Date
    Apr 2008
    Answers
    1,859

    Re: QTP script for word document

    Hai venu,

    Quote Originally Posted by venu4up View Post
    can some one give me clear idea
    Will you please let me know what clear idea do you need.Will try to help you out

    Thanks
    Deepa


  5. #5

    Re: QTP script for word document

    Create a new (empty) Word Document and save it to c:\testdoc.doc

    Set objWord = CreateObject(”Word.Application”)
    ‘note: if you don’t want word popping up and displaying as this is built– set this next line to False
    objWord.Visible = True
    Set objDoc = objWord.Documents.Add()
    ’save the Word Document
    objDoc.SaveAs(”C:\testdoc.doc”)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact