Skip to main content

AccessTr.neT


DataGridView dan Excele Veri Gönderme

DataGridView dan Excele Veri Gönderme

#2
        For i As Integer = 0 To DataGridView1.Rows.Count - 1
           For j As Integer = 0 To DataGridView1.Columns.Count - 1
               If j = 3 Then GoTo 100 'Bu satırı ekleyin...
               Try
                   Dim myRange As Microsoft.Office.Interop.Excel.Range = DirectCast(sheet1.Cells(StartRow + i, StartCol + j), Microsoft.Office.Interop.Excel.Range)
                   myRange.Value2 = If(DataGridView1(j, i).Value Is Nothing, "", DataGridView1(j, i).Value)
               Catch
               End Try
100:'Bu satırı ekleyin...
           Next
       Next
Please return your positive or negative ...
Cevapla

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da

Bu Konudaki Yorumlar
Cvp: DataGridView dan Excele Veri Gönderme - Yazar: POWER - 31/08/2016, 11:47
Task