Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
need to read data from microsoft word based forms
#4
Solved: 12 Years, 10 Months, 2 Weeks ago
Hi vinay,

Try this script its for read the data from word.....................


Code:
set a=CreateObject("Word.Application")

set b=a.Documents.Open("c:\read2.doc")

p_count=b.Paragraphs.Count

msgbox p_count

for c=1 to p_count

str_range=b.Paragraphs(c).Range.Start

end_range=b.Paragraphs(c).Range.End

Set s_range=b.Range(str_range,end_range)

x_str=s_range.Text

if len(x_str)=1 then

msgbox "false"

else

msgbox x_str

end if

next

a.Quit

set a=nothing

set b=nothing
Reply


Messages In This Thread
RE: need to read data from microsoft word based forms - by balakrish - 07-21-2009, 03:39 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT Fails to Open Microsoft Word teekay99 0 1,008 10-24-2019, 07:37 PM
Last Post: teekay99
  UFT 14.0 is unable to Identify Oracle forms. krr 0 3,837 06-12-2017, 06:24 PM
Last Post: krr
  UFT 12 hangs on a line (.NET forms) sara- 0 2,804 10-22-2014, 03:51 PM
Last Post: sara-
  Header and Footer in word doc anupam4j 0 2,736 10-10-2014, 01:26 PM
Last Post: anupam4j
  Does QTP/UFT support "Microsoft.Windows.Control" (one type of wpf control)? abhishikth12221 2 4,567 01-22-2014, 06:24 PM
Last Post: abhishikth12221

Forum Jump:


Users browsing this thread: 1 Guest(s)