c# - Error 0x800A03EC when creating an excel data sheet -


iam trying create excel file info within datagridview db. following error exception hresult: 0x800a03ec" (system.runtime.interopservices.comexception)... error seems in line **

the code within button click

        microsoft.office.interop.excel.application excel1 = new microsoft.office.interop.excel.application { };          workbook work1 = excel1.workbooks.add(xlsheettype.xlworksheet);         worksheet ws1 = (worksheet)excel1.activesheet;          excel1.visible = true;          ws1.cells[1,1] = "id";         ws1.cells[1,2]= "name";          ** ws1.cells[1,1]= datagridview1[1,1];         ws1.cells[1, 2] = datagridview1[1,2]; 

there references available, example see:

these few at.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -