Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting Row & Column data from MS-Word document QTP+
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi,

I have a input test data in MS-Word document as Row/Column format.

I would like to fetch that data from Script, store it in veriable and want to use it in Test.

Script:
Code:
Set objWord = CreateObject("Word.Application")
Set word_doc = objWord.documents.Open("C:\1_word.doc")

' i can get the parameter count by
Code:
para_count = word_doc.Paragraphs.count
msgbox para_count

Query:
But how do i get the Row and Column data separately (like for Excel sheet, we can easily fetch that by "ColumnName" & 'SheetID')

--> Can it be possible to fetch Row/Column data for MS-Word document like Excel document?

--> Please guide and if possible pls give the code.

Thanks in advance
Shrinivas
Reply


Messages In This Thread
Getting Row & Column data from MS-Word document QTP+ - by shriqtp - 08-04-2009, 03:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Check the word and get no. of times that word in the webpage Sandeep.san229 0 1,449 10-31-2018, 06:42 PM
Last Post: Sandeep.san229
  pageDown in word.application wannel 0 1,762 11-25-2016, 10:06 PM
Last Post: wannel
  Searching for and selecting row in Datawindow zsl0009 0 2,810 08-04-2015, 01:02 AM
Last Post: zsl0009
  QTP is not identifying table with column names property but its identifing with index Anuradha B 1 3,004 02-12-2015, 04:00 PM
Last Post: Kirill
  Automating Word Docs bart02 0 2,792 07-18-2014, 03:25 AM
Last Post: bart02

Forum Jump:


Users browsing this thread: 1 Guest(s)