Click here to Skip to main content
15,913,584 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Im trying to generate excel file from dataset. If any one has a solution using XML to excel can post a solution.
Posted
Comments
[no name] 20-Sep-12 7:50am    
No one is going to just give you a ready made solution for this. Go and try to do it yourself and ask questions if you have real problems.

1 solution

 
Share this answer
 
Comments
vision2fly 20-Sep-12 7:57am    
@Malli_S i have tried this code but "using Microsoft.Office.Interop.Excel.Application is not supported. So im not able to create application object. I have added proper dll file..
skydger 20-Sep-12 15:22pm    
Did you installed a PIA (Primary Interop Assemblies)?
http://msdn.microsoft.com/en-us/library/aax7sdch.aspx
Also you can try OpenXML from MS:
http://msdn.microsoft.com/en-us/library/office/bb448854.aspx
Malli_S 20-Sep-12 8:07am    
Why it is not supported? :( Did u install the MS Office properly?

BTW you can try this as well... http://www.codeproject.com/Articles/8500/Reading-and-Writing-Excel-using-OLEDB
vision2fly 20-Sep-12 8:17am    
@Malli_S yes dude, MS Office is properly installed in my machine.. but still im not able to create excel.application object...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900