Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Exporting datatable
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi Ankur,

I am working on an automation project. Here I am trying to export data from datatable to an excel sheet.
I am able to export the complete datatable.
But my requirement is... During run time I need to export every 100 rows into an excel sheet and continue the execution.
Also the next 100 rows should be appended to the already exported excel sheet (not to overwrite the already exported content)
Is it possible? If so how?

Also in the automation project I am working on, the login session gets expired after few hours (not sure abt the inactivity period)
Please suggest how can I handle this?

Thanks in advance,
Sivapratha
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Siva -
Yes it is possible to write and append the already edited content both during runtime as well editing an existing sheet. You can either read excel as a Database and use the recordset object to write and then use the movenext to move to the next row or you can use the primitive excel API to interact with excel and write the data in the loop.

Please open a new thread for your second question.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Exporting QTP runtime datatable to SQL server during SweetyChowdhury 1 3,251 05-10-2013, 03:41 AM
Last Post: sria123
  Exporting the runtime value to the local datatable. blavanya 8 8,121 07-18-2008, 07:18 PM
Last Post: bc993aaa

Forum Jump:


Users browsing this thread: 1 Guest(s)