Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error While Exporting Excel
#1
I am getting attached excel error in the script when I export the QTP datatable to excel using - DataTable.Export statement.



Attached Files Image(s)
   
Reply
#2
Any solution for the above issue? I am still facing this problem?

Any help would be appreciated?

Regards,
Ankesh
Reply
#3
have you tried exporting the datatable manually from run time datatable? Could you please attach a copy of the exported datatable.
Reply
#4
Hi Parminder,

Thanks for looking into this.

I tried exporting the run-time datatable, but i couldnt as i got the error "A general error occured while exporting the sheet."


I am attaching the error screenshot.


Attached Files Image(s)
   
Reply
#5
Hi Ankesh,

So now we can say that there is nothing wrong with the script. I only see two possibilities of the error:

1) There might be something wrong with the data that you are trying to export
2) The version of excel and the QTP might not be compatible(did you verify the export with some sample data to excel, if that is working fine then it should not be the case)

Regards,
Parminder
Reply
#6
Reply
#7
Thanks Parminder and Ravi for ur support.

I will have a look at it and will update u the status.

Regards,
Ankesh
Reply
#8
Hi Ravi,

The solution provided in the Link worked for me. Big Grin
Thanks a lot for helping me out.

Regards,
Ankesh
Reply
#9
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Error while saving an already opened Excel TurtleRock 1 3,916 08-28-2014, 06:35 PM
Last Post: dplank
  Exporting List of ltems from Weblist to Excel shayk1985 1 3,197 05-22-2013, 06:55 AM
Last Post: basanth27
  Getting ODBC error while executing the sql query in excel(DB) Shkumari 5 6,049 05-10-2013, 06:15 PM
Last Post: Shkumari
  QTP not exporting to excel vwk2 3 3,351 01-07-2013, 09:57 AM
Last Post: Ankesh
  Error:-Creation of excel sheet shwetha_m 1 3,308 02-01-2012, 08:42 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)