Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to open html file and update values in particular cell of a table in QTP?
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Open the file in the edit mode by using '8'. then u can add the lines to it.
try the below sample code:

Code:
Set objFS = CreateObject("Scripting.FileSystemObject")
Set objReport = objFS.OpenTextFile("file name with path", 8, True)
            objReport.Write "<TR COLS=5><TD BGCOLOR=#EEEEEE WIDTH=25%><FONT FACE=VERDANA SIZE=2>" & "Your Lines" & "</FONT></TD></TR>"

Thanks.
Harish
Reply


Messages In This Thread
RE: How to open html file and update values in particular cell of a table in QTP? - by harishshenoy - 10-11-2012, 02:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  OpenNewTab stopped working on IE after unknown windows update M851533 0 1,111 07-19-2018, 08:36 AM
Last Post: M851533
  unable to open file-new functionlibrary sirim 2 1,909 03-03-2017, 12:22 PM
Last Post: vinod123
  How import final calculated values by cell formula from Excel not the formula itself. qtped 1 4,854 01-17-2017, 04:05 PM
Last Post: sagar.raythatha
  Customized HTML reports in QTP azeem 11 49,492 12-31-2016, 02:57 PM
Last Post: chevronneraji
  [UFT] Get text into DIV through HTML tag robertosalemi 2 5,533 03-29-2016, 09:43 PM
Last Post: robertosalemi

Forum Jump:


Users browsing this thread: 2 Guest(s)