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

I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.

0 Answers  


what is difference between analog and low level recording

2 Answers   Intel,


How do I get the QTP scripts result in xml format by using vb script function?

0 Answers  


When QTP object wait time is 10 seconds, and in test script wait time is 5 seconds and in function library wait time is 2 seconds how much time does the wait occur? or which is given priority.

0 Answers  


how you have used object libraries? plzzzzz do answer

1 Answers  


what do you call the window testdirector-testlab?

1 Answers  


can we test an windows application using qtp

1 Answers  


When u r running a script , if u get a popup window that describing that u have received a mail to your outlook application. so to avoid the interference of the popup window , which recovery scenario(popup,object state,application hang,system crash) would u use ?

4 Answers   Accenture,


What is error handled other than recovery scenario manager?

2 Answers  


Is there any MS Access addin in QTP?

7 Answers  


How Qtp will identifies object during run time

6 Answers   CSS Corp, Yahoo,


How to Display last item of a Combobox by using QTP?

10 Answers  


Categories