Visual Basic .Net | Export DataGridView to Excel and Import Excel to DataGridView with VB .NET

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ก.พ. 2019
  • Visual Basic .Net | Export DataGridView to Excel and Import Excel to DataGridView with VB .NET . In this project video I use Visual Studio 2015 and Microsoft Office 2007.
    ***********************************************
    Thanks for watching & don't forget to like, comment and Subscribe...
    ***********************************************
    ***********************************************
    Download source code here : drive.google.com/open?id=15pM...
    ***********************************************
    For other video tutorials on this channel, please see this playlist:
    - Basic4Android (B4A) Tutorials : • Basic4Android (B4A) | ...
    - Electronics Tutorials : • 3 LED Flip Flop
    - Arduino Tutorials : • Arduino | Scrolling Te...
    - Great Cow Basic Tutorials : • Great Cow BASIC with A...
    - Bascom Avr Tutorials : • Bascom Avr | How to Se...
    - VB .NET Tutorials : • Visual Basic .NET | ...
    ***********************************************
    Reference :
    www.codeproject.com/Questions...
    • How to export data fro...
    stackoverflow.com/questions/2...
    ***********************************************
    Download Visual Studio : www.visualstudio.com/
    ***********************************************
    Music Background :
    Song: Envici - November (Original Instrument)
    Music provided by Twin Pillars Records: • Video
    Artists: Envici
    Download: goo.gl/aDiQhU
    Lights by Sappheiros / sappheirosmusic
    Creative Commons - Attribution 3.0 Unported - CC BY 3.0
    creativecommons.org/licenses/...
    Music promoted by Audio Library • Lights - Sappheiros (N...
    Song: Ikson - Do It (Vlog No Copyright Music)
    Music promoted by Vlog No Copyright Music.
    Video Link: • Video
    ***********************************************
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 73

  • @tommcmeekin1
    @tommcmeekin1 4 ปีที่แล้ว

    Thanks, worked great and faster than anything else I've tried with around 50,000 rows :)

    • @utehstr
      @utehstr  4 ปีที่แล้ว

      You're welcome :-)

  • @VictorSouza-cn5nr
    @VictorSouza-cn5nr 3 ปีที่แล้ว

    Thanks bro, worked fine! For the ones having problem saving the file, replace in the code the lines with document format and sheet name to your PC's language respective, my PC uses Portuguese language so I replaced "Excel Document (*.xlsx)|*.xlsx" to "Pasta de Trabalho do Excel (*.xlsx)|*.xlsx" and "sheet1" to "Planilha1". Thank you Uteh Str.

    • @utehstr
      @utehstr  3 ปีที่แล้ว

      You're welcome 🙂

  • @goodrive4757
    @goodrive4757 4 ปีที่แล้ว

    NICE gan sungguh bermanfaat

    • @utehstr
      @utehstr  4 ปีที่แล้ว

      Terima kasih :-)

  • @user-mu9pv4fo4o
    @user-mu9pv4fo4o 3 ปีที่แล้ว

    thanks very useful

  • @omahgedek4448
    @omahgedek4448 3 ปีที่แล้ว

    Thanks bro..

  • @govindaraji2348
    @govindaraji2348 6 หลายเดือนก่อน

    Thank you lot brother you are saved my college life ❤❤❤

    • @utehstr
      @utehstr  5 หลายเดือนก่อน

      You're welcome🙂

    • @jheizandalis952
      @jheizandalis952 3 หลายเดือนก่อน

      can you make an example for importing single excel file with multiple sheets inside. with searchbar. thanks

  • @edsonmauricioplatayugra3424
    @edsonmauricioplatayugra3424 2 ปีที่แล้ว +3

    I am using vb-2015 with excel 2016 ... when exporting and importing I get a message box Failed to save !!! help me please .. thanks

  • @masyanto3658
    @masyanto3658 4 ปีที่แล้ว

    thanks sir, is good tutorial, i want request backup restore database mysql with vbnet

  • @isaackennethjoseph8924
    @isaackennethjoseph8924 4 ปีที่แล้ว

    Can you please help me? I use the source code that you provide, but when I run the program, error msg says
    " Unable to cast COM object of type
    'Microsoft.Office.Interop.Excel.Application'. to interface type 'Microsoft.Office.Interop.Excel._Application'. This operation failed because of the QueryInterface call on the COM component for the interface with IID '{000208D5-0000-0000-C000-000000000046}' Failed due to the following error: Error loading type library/DLL.(Exemption From HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).

  • @borithy559
    @borithy559 3 ปีที่แล้ว

    very good thank u

    • @utehstr
      @utehstr  3 ปีที่แล้ว

      You're welcome :-)

  • @ivango1182
    @ivango1182 4 ปีที่แล้ว

    Hey why when i click export, sometimes it says failed to save and sometime it saved but inside the excel file does not have any data pls help

  • @winsilopes456
    @winsilopes456 4 ปีที่แล้ว

    thank's very good tuto

    • @utehstr
      @utehstr  4 ปีที่แล้ว

      You are welcome :-)

  • @ashercrush8953
    @ashercrush8953 2 ปีที่แล้ว

    hi sir can help if i want export an image ex: qrcode from vb net picturebox to excel how did i do that

  • @bayuichigo9847
    @bayuichigo9847 3 ปีที่แล้ว

    Trimakasih Banng

    • @utehstr
      @utehstr  3 ปีที่แล้ว

      Sama-sama :-)

  • @RyankuNS
    @RyankuNS 4 ปีที่แล้ว

    Bro klo misal gue punya texboxt gtu yg di isi field2 data, kemudian gw export ke excel gtu bs ga? Bikin tutorial nya dong :3

  • @vinray8781
    @vinray8781 3 ปีที่แล้ว

    Pls help why only first row is exported to excel

  • @meftehferes4994
    @meftehferes4994 4 ปีที่แล้ว

    Please helpppp. program is succesfully buged but i got an error message when i try to export to excell "failed to save !!!"where is the problem please

  • @annisasrianggraini116
    @annisasrianggraini116 10 หลายเดือนก่อน

    Maaf sebelum nya, ini data yang di import gak bisa ya di update ke database?? Terimakasih sebelum nya kak

  • @AsupanInternet
    @AsupanInternet 4 ปีที่แล้ว

    Awesome :)

    • @utehstr
      @utehstr  4 ปีที่แล้ว +1

      Thank you :-)

  • @kimmergal8330
    @kimmergal8330 4 ปีที่แล้ว

    I got an error saying "object reference not set to instance of an object. "

  • @GAMINGWITHINTELHD2000
    @GAMINGWITHINTELHD2000 5 ปีที่แล้ว +1

    ​ @Uteh Str The File IS Working Fine Thank U

    • @utehstr
      @utehstr  5 ปีที่แล้ว

      You are welcome :-)

  • @Jalan_Bareng_Bocil
    @Jalan_Bareng_Bocil 5 ปีที่แล้ว

    Bang request dong untuk membantu pembuatan TA bang .
    untuk gridview nampilin on off dari digital input di arduino misal menggunakan push button terus di simpan di excel.
    saya cari di video abang kebanyakan analog bang
    Kalo berkenan buatin tutorialnya bang

    • @utehstr
      @utehstr  5 ปีที่แล้ว

      Kalau ada waktu luang akan saya buat, tapi mungkin tidak dalam waktu dekat ini :-)
      Terima Kasih

    • @Jalan_Bareng_Bocil
      @Jalan_Bareng_Bocil 5 ปีที่แล้ว

      Siap bang di tunggu ya bang makasih 🙏

  • @jericotelan6020
    @jericotelan6020 4 ปีที่แล้ว

    System.InvalidOperationException: 'The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine

    • @utehstr
      @utehstr  4 ปีที่แล้ว

      Look here : www.vbforums.com/showthread.php?857031-The-Microsoft-ACE-OLEDB-12-0-provider-is-not-registered-on-the-local-machine

  • @GAMINGWITHINTELHD2000
    @GAMINGWITHINTELHD2000 5 ปีที่แล้ว +1

    When i Tun The Program It is saying Microsoft.Ace.oledb 12.0 is not registered in you local machine How to fix Microsoft.Ace.oledb 12.0 is not registered in you local machine

    • @utehstr
      @utehstr  5 ปีที่แล้ว

      I've never experienced anything like that, this link might help:
      www.mikesdotnetting.com/article/280/solved-the-microsoft-ace-oledb-12-0-provider-is-not-registered-on-the-local-machine
      www.layer2solutions.com/support/business-data-list-connector-faqs/how-to-access-office-2010-data-from-sharepoint

  • @baynabaykabayka2481
    @baynabaykabayka2481 5 ปีที่แล้ว

    When I click export and save the file with my datagridview it get stucked in please wait It didn't save at all

    • @utehstr
      @utehstr  5 ปีที่แล้ว

      The process of saving long or not stored at all ?

  • @user-ck3zn2ms3j
    @user-ck3zn2ms3j 4 หลายเดือนก่อน

    knp di aku ga ada referensi ms excell nya ya

  • @muhammadfattah775
    @muhammadfattah775 4 ปีที่แล้ว

    bang, kalau import excel dengan cara begini, gimana cara filter data dgv-nya menggunakan textboxt bang?

    • @utehstr
      @utehstr  4 ปีที่แล้ว

      Maksudnya ? Maaf saya tidak mengerti maksud kamu.

  • @ragamotomotif1770
    @ragamotomotif1770 ปีที่แล้ว

    bisa kah anda membantu saya bagaiman acara agar proses penyimpanan nya bisa lebih cepat atau responsif

    • @utehstr
      @utehstr  ปีที่แล้ว

      coba kode pada link ini : www.codeproject.com/Questions/841359/Faster-way-to-export-data-from-datagridview-to-exc , lihat kode pada "Solution 2", saya sudah coba dan menurut saya lebih cepat dari pada yang ada pada video.

  • @zaqiarmanovandi2919
    @zaqiarmanovandi2919 4 ปีที่แล้ว

    bang saya pakai vb 2010 dan Ms Excel 2016. Dan error bang karena tidak ada library. dan saat mencari refference di vb untuk MS excel object library, gak ada bang. mohon pencerahannya

    • @utehstr
      @utehstr  4 ปีที่แล้ว

      Lihat disini : www.vbforums.com/showthread.php?777615-Work-with-excel-objects-Missing-Microsoft-Excel-12-0-Object-Library

    • @MuhammadAmin-el3vr
      @MuhammadAmin-el3vr 4 ปีที่แล้ว

      Numpang tanya, kalau data di datagridview itu di tampilkan ke textbox, kemudian menggunakan button next dan previous untuk melanjutkan ke data selanjutnya gimana mas

  • @thewalkers1116
    @thewalkers1116 3 ปีที่แล้ว

    kasih tau fungsi dari setiap item nya dong bang

  • @sergoa.8849
    @sergoa.8849 ปีที่แล้ว

    6:01

  • @vanphinuce
    @vanphinuce 4 ปีที่แล้ว

    Excuse me, What is the background music in the video ?

    • @utehstr
      @utehstr  4 ปีที่แล้ว +1

      Look at the video description

    • @vanphinuce
      @vanphinuce 4 ปีที่แล้ว

      @@utehstr Thank you

  • @laszlototh4417
    @laszlototh4417 ปีที่แล้ว

    Hi!
    Can you help?
    I get this error message when importing:
    System.InvalidOperationException: 'The provider 'Microsoft.ACE.OLEDB.12.0' is not registered on the local machine.'
    Anyway, nice job!

  • @rezhapramudiaadhiti1579
    @rezhapramudiaadhiti1579 4 ปีที่แล้ว

    kalo export 2 datagridview sekaligus bisa ga?

    • @utehstr
      @utehstr  4 ปีที่แล้ว

      Saya belum pernah coba kalau pakai 2 dgv, jadi saya belum tau bisa atau tidak. Mungkin kamu boleh mencobanya :-)

    • @randaelguenouni7509
      @randaelguenouni7509 2 ปีที่แล้ว

      Please did you find the solution ?

  • @VinodbhaiPatel-uo1rl
    @VinodbhaiPatel-uo1rl 23 วันที่ผ่านมา

    Move jaisa music nahi chalega

  • @itpusatasoka2432
    @itpusatasoka2432 2 ปีที่แล้ว

    Bang Kalau Export Ribuan Kok lama banget ya Hampir 10 menit, Ada cara yg lebih cepat bang ?, Terimakasih

    • @utehstr
      @utehstr  2 ปีที่แล้ว

      coba kode pada link ini : www.codeproject.com/Questions/841359/Faster-way-to-export-data-from-datagridview-to-exc , lihat kode pada "Solution 2", saya sudah coba dan menurut saya lebih cepat dari pada yang ada pada video.

    • @itpusatasoka2432
      @itpusatasoka2432 2 ปีที่แล้ว

      @@utehstr Okee Thanks

  • @HS-gb4wx
    @HS-gb4wx 3 ปีที่แล้ว

    Hi Sir, thanks before for the tutorial, but the source code can not be downloaded, can you help, thanks

    • @utehstr
      @utehstr  3 ปีที่แล้ว

      I've checked it and the file can be downloaded.

  • @sergoa.8849
    @sergoa.8849 ปีที่แล้ว

    12:20 текст проги

  • @shinepdf2713
    @shinepdf2713 5 ปีที่แล้ว

    Download file is damage, please check and upload again

    • @utehstr
      @utehstr  5 ปีที่แล้ว

      I checked it, the file is fine and can be downloaded.
      For information, I save this file in the file format ".rar", Google Drive does not provide a preview of the file format ".rar", so you must download it first to see the file. Make sure you have the software to open the file format ".rar", for example software like winRAR.

    • @Gadzooks-fx9ng
      @Gadzooks-fx9ng 5 ปีที่แล้ว

      @@utehstr same issue here, unsolved

    • @utehstr
      @utehstr  5 ปีที่แล้ว

      @@Gadzooks-fx9ng I have checked it many times and the file can be downloaded. I do not know whether this is blocked in some regions or countries. I have tried searching for it on Google, try reading this : support.google.com/a/answer/2992016?hl=en

  • @user-ut9vi7fu8v
    @user-ut9vi7fu8v 3 ปีที่แล้ว

    new meta to?\

  • @CuongBui-hf8kj
    @CuongBui-hf8kj 4 ปีที่แล้ว

    very very slowly