Create an Excel Sheet from C# using DataSet

0

Create an Excel Sheet from C# using DataSet (2)

Index

Introduction

 

In the previous article we discussed how to install the package/plugin for generating excel sheet, in this article we will discuss how to generate an Excel sheet from a dataset which is received from MsSql query.

Assuming that you have created your table and dataset is prepared. Here is what the data in table looks like

Create an Excel Sheet from C# using DataSetand here is the output

Create an Excel Sheet from C# using DataSet1

The code is given as below

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv badge