How dump database table to excel sheet?

后端 未结 4 579
一整个雨季
一整个雨季 2020-12-21 20:16

I am getting data from my database and I want to have that data as a table in excel file. So, I have written the following :

    Dim sheetToPopulate As Excel         


        
4条回答
  •  自闭症患者
    2020-12-21 20:46

    The simplest solution is if you write a csv file. In the csv the columns are separated with comma (;) and the excel can read this file.

    The best way is the OLE Automation but for this you have to install an excel to the pc where your program runs. Here is a sample: OLE Automation

提交回复
热议问题