Today i have a software which downloads xml data from the web and exports it to a MS Access DB in appropriate tables.
In MS Access DB i have created a query using the tables to make columns and rows as i want it to look like in Excel.
When i right-click on my new query table, and chose Export to Excel, i'm able to create an Excel file from that query.
Basically what i want to do is extend my software so that i can export the query to Excel programmatically with C#.
How can i do this?
---------------------------
other side things related i also would like to solve.
I'm getting green triangles above the numbers on left side, check the image postimg.org/image/t6tvfw2cz how can i remove from c#.
Is it possible to format the table look and design with c# code?
Is it poosible to add filters to the headers with c# code? – Mana 15 hours ago
Something like this should do it:
You would call it like this:
Be sure to add these using statements:
Another solution is to create a CSV file which can be opened in Excel or other applications. See this function which returns a StringBuilder. This can then be saved as a file and opened via code as such:-
The CSV creation