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

Answers were Sorted based on User's Feedback



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

Answer / pavi

DataTable.Export("Path of the sheet")
or DataTable.ExportSheet("Path of the sheet",Index of the
runtime datatable u want to export")

Is This Answer Correct ?    1 Yes 1 No

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

Answer / zia ur rehman

DataTable.Export "....xls file name..."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Hello everybody, can we maintain the state of page in QTP? 1. suppose i opened a notepad text file i entered some text and changed the font type and font size and saved that file. 2. Now next time when i will open a new notepad file it is showing me that font type and size which i changed in my previous step. 3. Here i want that QTP should capture the default setting i.e. it should maintain the state of the page. Thanks in advance, Gaytri

0 Answers  


is qtp 9.2 supported for firefox browser3.0?bcoz when i tried to create scripts with the application run on firefox browser 3.0 then qtp 9.2 didn't ct=reate the scripts?

2 Answers  


write script for finding number of broken links in web page? kindly please answer my question.

3 Answers   Manhattan, Oracle, Virtusa,


What is test harness?

2 Answers  


I am testing a website TheLancet in qtp 9.2 and running a script but its not working.Tell me if m doing anything wrong in the script. If Browser("TheLancet.com - Home Page").Page("TheLancet.com - Home Page").Link("Clinical").exists then msgbox "object exist" Else msgbox"object doesnt exist"

2 Answers   Rolta,






What is the difference between Functions and Action ?

1 Answers  


If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?

0 Answers  


What is the use of low level recording? How does it useful?

1 Answers  


What are the general steps involved in the data driven framework?

0 Answers  


how we connect 1. qtp9.2 to the quality center9.0? 2. Load runner8.0 to the quality center9.0

0 Answers  


what are the principles of good testing scripts for automation?

1 Answers  


How to test the login page in different ways in automation testing and i need code?

0 Answers   Cognizant,


Categories