Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Generate Word document
#2
Solved: 10 Years, 9 Months, 3 Weeks ago
Hi,
U can use word application refering to below code

Code:
Dim oWord
Set oWord = CreateObject("Word.Application")
oWord.Documents.Add
oWord.Selection.TypeText "Hello World!!! This document is generated by QTP."
oWord.ActiveDocument.SaveAs "c:\test.doc"
oWord.Quit
Set oWord = Nothing

oWord.Documents.Open “C:\test.doc”


Regards,
Sankalp
Reply


Messages In This Thread
Generate Word document - by phabloxar - 08-27-2012, 11:27 PM
RE: Generate Word document - by sshukla12 - 08-28-2012, 10:33 AM
RE: Generate Word document - by phabloxar - 08-28-2012, 06:18 PM
RE: Generate Word document - by phabloxar - 08-29-2012, 07:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Header and Footer in word doc anupam4j 0 2,423 10-10-2014, 01:26 PM
Last Post: anupam4j
  How to save the .csv document in runtime JBA 1 1,938 01-06-2014, 10:31 AM
Last Post: supputuri
  How to verify that links within a PDF document are working AHu 0 2,385 08-24-2012, 04:41 AM
Last Post: AHu
  how to convert qtp reports into word document or excel sheet rashmsrit 4 5,843 12-15-2010, 10:04 AM
Last Post: rashmsrit

Forum Jump:


Users browsing this thread: 1 Guest(s)