How to export data present in Datatable to an ".xls"

file?

Answer Posted / chinna

Hello,

Export data into Excel Sheet we will follow 2 methods.

1. Datatable.Export("Path of the sheet")
2. Datatable.Exportsheet "Path of the sheet",Source sheet id

Is This Answer Correct ?    2 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you check a web application for broken links using qtp?

767


what is description object?

1802


Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?

1884


How can you handle exceptions in qtp?

752


Hi Guys, I want to place all of my values which i am getting it from a loop in to a global shee. For that i had written the script like this For i = 1 to ECOs-1 ECO = List(i).GetROProperty("innertext") DataTable.AddSheet("ECOList") DataTable.GetSheet("ECOList").AddParameter "ECOList",ECO AbortECO = DataTable.GetSheet("ECOList").GetParameter ("ECOList").Value msgbox AbortECO DataTable.GetSheet("ECOList").SetNextRow Using the above script, whenever the loop iterates it is creating new column "ECOLIST" in the sheet called "ECOLIST". It means, the values are displaying in the column wise even though i added the script " DataTable.GetSheet("ECOList").SetNextRow" . The cursor is not moving to the next line. Anybody help me out how to pass the values from script to the excel(Global/Local) sheet. Pls let me know @ nbabu11@gmail.com if you are not clear about the question.

1641


Explain the views in the QTP GUI?

783


any body can you help me what is the script to automate an comand promt

2196


Call to copy of an action and call to existing action… i know the diff but in real project how to use..? i want live scenario.pls help me..

1500


You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?

1561


what is error and fault in terms of software quality?

1663


How to use actions in qtp ?

764


How do you send email with attachment from outlook using qtp ?

756


What are the types of object repositories? Which one is you using?

856


when u script reveiwing in which area u more concentrates?

1638


what is the difference btn risks & Therads in the Test plan documentation?

1847