Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

VS 2010 export data to .xlsx if no excel is installed

$
0
0

I have VS2010 project. For now  im using standart MSDN code for excel data export(just for testing purposes):

        Dim xls As Microsoft.Office.Interop.Excel.Application        Dim xlsWorkBook As Microsoft.Office.Interop.Excel.Workbook        Dim xlsWorkSheet As Microsoft.Office.Interop.Excel.Worksheet        Dim misValue As Object = System.Reflection.Missing.Value

Using this method all is working fine.

But what i want is to be able to create Excel file and export data to it even if I don't have MSOffice Excel present on the system. 

Because the application will be run on server and output will be sent to our mail -> so I wont have Excel on the server. 

What i could do is just export data to .txt and then, after I receive it in mail, in excel use Data->Text to Collumns but I would like to do this more elegantly.

Any suggestions?



Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>