Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error While Exporting Excel
#1
Solved: 11 Years, 4 Months ago
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
Solved: 11 Years, 4 Months ago
Any solution for the above issue? I am still facing this problem?

Any help would be appreciated?

Regards,
Ankesh
Reply
#3
Solved: 11 Years, 4 Months ago
have you tried exporting the datatable manually from run time datatable? Could you please attach a copy of the exported datatable.
Reply
#4
Solved: 11 Years, 4 Months ago
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
Solved: 11 Years, 4 Months ago
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
Solved: 11 Years, 4 Months ago
Hi Ankesh,
Check if this helps

http://testing-qtp-me.blogspot.com/2010/...-when.html

Regards,
Ravi
Reply
#7
Solved: 11 Years, 4 Months ago
Thanks Parminder and Ravi for ur support.

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

Regards,
Ankesh
Reply
#8
Solved: 11 Years, 4 Months ago
Hi Ravi,

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

Regards,
Ankesh
Reply
#9
Solved: 11 Years, 4 Months ago
And the credit goes to jonty......thank you Jonty, the author of the blog

http://testing-qtp-me.blogspot.com/2010/...-when.html
Reply


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

Forum Jump:


Users browsing this thread: 9 Guest(s)