Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88030

'DocumentFormat.OpenXml.Spreadsheet.WorksheetExtensionList' from assembly 'DocumentFormat.OpenXml

$
0
0

i have a got the this error

'DocumentFormat.OpenXml.Spreadsheet.WorksheetExtensionList' from assembly 'DocumentFormat.OpenXml, Version=2.5.4728.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

i have used this code in below

private void button1_Click(object sender, EventArgs e)
    {
        XLWorkbook workbook = new XLWorkbook();
        IXLWorksheet worksheet = workbook.Worksheets.Add("Sample Sheet");
        worksheet.Cell("A1").Value = "Hello World!";
        string folderPath = "C:\\User\\test\\Desktop\\";
        if (!Directory.Exists(folderPath))
        {
            Directory.CreateDirectory(folderPath);
        }
        workbook.SaveAs(folderPath + "sanjay.xlsx");

    }

i have simple create the test project and i am using the ClosedXml and simple project will run then button click then open excel file just simple any body help me

Advance thank you
Mr.Malakiya


Viewing all articles
Browse latest Browse all 88030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>