VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

This code exports datatable to excel

Robert Banks  (1 Submission)   Files/File Controls/Input/Output   VB.NET   Unknown Difficulty   Wed 11th October 2006   Mon 8th February 2021

This code exports datatable to excel

API Declarations


Dim obook As Excel.Workbook = oExcel.Workbooks.Add 'Add Workbook to excel
Dim oSheet As Excel.Worksheet = obook.Worksheets(1) 'Declare Excel Worksheet

Dim dataArray(ds_main.Tables(Export_Table).rows.count - 1, ds_main.Tables(Export_Table).columns.Count - 1) As Object ' Declare Array object with size (row count by column count)
Dim r As Integer
Dim c As Integer
Dim column_count As Integer
Dim ROW_COUNT As Integer
Dim excel_count As Integer
Dim sheet_count As Integer

Rate This code exports datatable to excel (1(1 Vote))
This code exports datatable to excel.bas

This code exports datatable to excel Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters