No video

How to export data from DataGridView to Excel in VB.NET

  Рет қаралды 90,882

Tech Choco

Tech Choco

Күн бұрын

Export your Data from DataGridView to Excel using VB.NET.
For codes and more details please visit
techchoco.com/h...

Пікірлер: 51
@sahar-srairi
@sahar-srairi 10 жыл бұрын
Thank you so much for the code ^^
@filipinasmabatid2813
@filipinasmabatid2813 9 жыл бұрын
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in .exe How to fix the error. Thanks
@JoseDarioCorrea
@JoseDarioCorrea 8 жыл бұрын
Excellent! This was what I was looking for but do not want to create a new book, I want to export the data to a book that already exists, as I do?
@dusktaker02
@dusktaker02 8 жыл бұрын
Not a clear tutorial Broken Link may i please have the complete sets of code?
@lavishrich
@lavishrich 10 жыл бұрын
worked fine for me!
@rustypalelr
@rustypalelr 6 жыл бұрын
How about if I'm going to add 2 or more sheet? What would be the code
@gemlucenio
@gemlucenio 10 жыл бұрын
hi, i would like to ask some favor, when i export, i want the data to transfer to a specific rows and columns with the same functions as this.. can you help me sir? it would be great if you can help me...
@zachkrizan7818
@zachkrizan7818 11 жыл бұрын
Error here: "xlWorkSheet.Cells(i + 2, j + 1) = Fitch_AllDataGridView1(j, i).Value.ToString()" Null REference not set to an instance of an object Object reference not set to an instance of an object
@geoffe1987
@geoffe1987 6 жыл бұрын
i have problems with these code's can you help me with a different code?
@edsonmaleiane2618
@edsonmaleiane2618 7 жыл бұрын
Hello... Please i want to print all datagridview values but without a database in VB.Net...
@Liviualexutavlad
@Liviualexutavlad 10 жыл бұрын
I had the same error... All you need to do is delete the ".ToString" command. Besides that the work should work
@divyakattamuri8269
@divyakattamuri8269 5 жыл бұрын
Thank you soo much
@prasadshete2639
@prasadshete2639 5 жыл бұрын
Thanks .... But it can works if I search data and export
@johney1985
@johney1985 5 жыл бұрын
Superb.. Code please...
@joseolivo3475
@joseolivo3475 7 жыл бұрын
Hola buenas Necesito exportar de un Datagriview a Word cuando yo escribe. Me. Explico no lo que biene de la Base de Datos si no cuando escriba del datagriwiEW En visual Basic.net
@SOLDACCOUNT001
@SOLDACCOUNT001 9 жыл бұрын
deLeting on excel via datagrids?? how??
@michelecostantino2961
@michelecostantino2961 10 жыл бұрын
I have not "microsoft.office.interop.excel" in the list, how can I add it?
@HassanAlamiMchichi
@HassanAlamiMchichi 9 жыл бұрын
i think you should install excel
@SuperGamezDownloader
@SuperGamezDownloader 10 жыл бұрын
guys who have error please add Microsoft.Office.Interop.Excel to your project reference
@alihusseinalissa25
@alihusseinalissa25 10 жыл бұрын
How?? I am beginner :)
@alanondo1067
@alanondo1067 10 жыл бұрын
released object??
@TheGuursade
@TheGuursade 7 жыл бұрын
Hello sir i'm using lisview instead of gridview can you please help code thanks
@garyoptica
@garyoptica 7 жыл бұрын
I would avoid using point and click containers and learn to do this using code. You simply don't get the flexibility you need as a coder when you set complex tasks up using drag and drop as you inherit a loss of programming control.
@HarshadPatelshrikalikaminerals
@HarshadPatelshrikalikaminerals 8 жыл бұрын
get full code file. drive.google.com/open?id=0ByscXiijGlAuSXExZmJaTUdhc1E
@rizalullutfi7175
@rizalullutfi7175 6 жыл бұрын
can send to my email sir ? because the link is doesn't work thanks
@Darkyinkia
@Darkyinkia 10 жыл бұрын
Please invest in a microphone :3
@andyajhisramadhan6453
@andyajhisramadhan6453 10 жыл бұрын
How to fix error "xlWorkSheet.Cells(i + 2, j + 1) = DataGridView1(j, i).Value.ToString()" it's doesn't work.
@SamirRezai
@SamirRezai 10 жыл бұрын
This will fix it. xlWorkSheet.Cells(i + 2, j + 1) = DataGridView1(j, i).Value
@sahar-srairi
@sahar-srairi 10 жыл бұрын
Samir Rezai Thank you :)
@invicibyul599
@invicibyul599 8 жыл бұрын
+Samir Rezai hi i use that code but still having error? what should i do?
@parthlogistic374
@parthlogistic374 6 жыл бұрын
its not working For k As Integer = 1 To dgv_gstn.Columns.Count xlworksheet.Cells(1, k) = dgv_gstn.Columns(k - 1).HeaderText xlworksheet.Cells(i + 1, j + 1) = dgv_gstn(j, i).Value.ToString() next he through error object not set what can i do plz help me
@vipulgehlot9304
@vipulgehlot9304 5 жыл бұрын
data can not enter in excel file
@JosueLopezXIX
@JosueLopezXIX 10 жыл бұрын
Can you please provide the script code?
@MetinTuncer
@MetinTuncer 10 жыл бұрын
problem Missing.Value dosent work.. I useing Excel 2013 ..
@poptrt
@poptrt 4 жыл бұрын
Does not work
@markalix1060
@markalix1060 6 жыл бұрын
Great work...but many errors
@fzorig
@fzorig 6 жыл бұрын
source>?
@lebronimad9941
@lebronimad9941 8 жыл бұрын
Sir please please please ..........i need your code
@amzch3d
@amzch3d 9 жыл бұрын
this is a broken Link
@martinsantos4348
@martinsantos4348 8 жыл бұрын
pls renew the site.
@SongbyKOK
@SongbyKOK 6 жыл бұрын
Code OK but process Long time
@arijit786
@arijit786 11 жыл бұрын
Not clear
@user-gc6sd3gw2v
@user-gc6sd3gw2v 8 жыл бұрын
i have code
@dusktaker02
@dusktaker02 8 жыл бұрын
+จิรศักดิ์ ราวพิมาย may i please have the complete code?
@Thebluewilli
@Thebluewilli 7 жыл бұрын
syntax error.... thx for nothing....
Prank vs Prank #shorts
00:28
Mr DegrEE
Рет қаралды 10 МЛН
Or is Harriet Quinn good? #cosplay#joker #Harriet Quinn
00:20
佐助与鸣人
Рет қаралды 4,6 МЛН
Underwater Challenge 😱
00:37
Topper Guild
Рет қаралды 31 МЛН
Zombie Boy Saved My Life 💚
00:29
Alan Chikin Chow
Рет қаралды 26 МЛН
How to Import Excel into DataGridView Visual Basic
18:23
WareData
Рет қаралды 45 М.
Export DataGridView To Excel In c# Windows Application Step By Step
12:17
Introducing Python in Excel
19:01
Leila Gharani
Рет қаралды 1,5 МЛН
How to export Datagridview to Excel in VB.net
15:46
Lady CODER
Рет қаралды 1 М.
Prank vs Prank #shorts
00:28
Mr DegrEE
Рет қаралды 10 МЛН