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

Please any on explain usage of "on error resume next","On error goto 0" with sample code....Thankyou......... when a tester is asked to execute 100 scripts in a short time..(the server will be down in another 10 min)..how he has to run those scripts?

2 Answers   Datamatics,


i need the word "good morning" to be displayed by default whenver we click upon the blank test while opening the qtp. Could you please answer...

7 Answers  


I am having major problems with some DB Table Checkpoints I add to my script. I 35 web based applications recorded and each has DB Table Checkpoints insert but only 1 script isn't recognizing the DB Table Checkpoints for some reason. I've checked the DB connections and the info in the Library Functions and still only this one script out of 35 doesn't recognize the DB Table Checkpoints. Can someone please help me figure out why only this one script out of 35 that's hitting the same database is having a problem.

0 Answers  


Hi , I am facing issue QTP 10.0 with oracle ERP 11i .When QTP opens,click sub links on ERP ,FORM is not opening getting unexpected Internet explorer error message with send or don't send report.So unable to work with forms using QTP.

0 Answers  


Could we use QTP for java project(Which is develop in Netbeans and My SQL) otherwise which one is suitable?

1 Answers  






Please explain the role of Regular expression in QTP

0 Answers  


what is recovery scenario in QTP? what is the need of the recovery scenario in QTP? what are the advantages of the recovery scenarios in QTP?

3 Answers   CTS,


what is clean sweep?

0 Answers   ABB,


Hi all, In Every interview interview asking one question what type of challenges you have been faced in your project?

1 Answers  


Explain about reusable actions?

2 Answers  


What is the main differece between QTP 9.0 and 9.2

1 Answers   VeriSign,


where the check points are stored ?

3 Answers   IBM,


Categories