I am using oledb to create excel sheets.
I use create table to create a excel sheet. This creates a new sheet, as well as add the column names in first row of the sheet.
I want to add a title before this first row how can I do that ?开发者_开发技巧
- Once the sheet is created - with create table.
- Insert the data.
- Close connection.
- now open connection with HDR=no in extended properties.
now execute an update query
Update F1='new value' where F1='old value'
in above because of the HDR=no, the column names are available as data row, executing update allowed changing row. Here F1 equals first column and so on.
精彩评论