closedxml Questions

3

Excel Worksheet contains 60K records. Needs to be read and store into DataTable. Currently reading row by row. Is there any other better way using ClosedXml. DataTable dt = new DataTable(); var wb ...
Algie asked 5/8, 2017 at 14:23

2

Solved

I'm using ClosedXML to generate a report. The data supplied to Excel is from a database which is stored to a DataTable object. The table is displayed fine in the Excel sheet - however, it has a def...
Eliaeliades asked 17/12, 2015 at 15:23

3

Solved

I'm hoping someone can help me with ClosedXML as I'm new to Excel exporting and from what I've seen of ClosedXML the documentation is fairly limited in certain areas. At the moment I'm putting dat...
Rosemari asked 20/8, 2015 at 8:2

2

Solved

I have multiple datatables with data and I would like to add those in single sheet with space. I am using ClosedXML to develop export excel utility.
Felix asked 2/9, 2017 at 9:32

7

Solved

All How can I download a file so the user sees that it is downloading (like with a stream?) I am currently using ClosedXML, but if I use the SaveAs method, I have to give a hard-coded URL, and if...
Outroar asked 10/3, 2014 at 9:17

3

Solved

I just got started with ClosedXML. When I create a new workbook with the code below, it automatically applies "Blue, Table Style Light 9" to each worksheet. I don't want any style on the worksheets...
Iniquitous asked 7/7, 2017 at 18:39

3

This is how to merge cell using ClosedXML based on the documentation. worksheet.Range("B2:D3").Row(1).Merge(); My problem is my column count is dynamic, I can't set column letter value to merge ...
Cobnut asked 23/9, 2016 at 1:44

3

With ClosedXML I am trying to add data to an existing Excel Sheet In an Existing Table. The easy thing to do is to add a table to an excel sheet below is a quick example of how to do that. What I d...
Nymph asked 11/8, 2015 at 17:37

1

I'm trying to color an entire row based on a cell selection(value).I want to change the color of the row just for the used range in my worksheet but not for unused cells. Here's the code I have ri...
Mohamedmohammad asked 23/3, 2018 at 14:28

2

Solved

I would like to read the contents of an Excel worksheet into a C# DataTable. The Excel worksheet could have a variable numbers of columns and rows. The first row in the Excel worksheet will always ...
Admonitory asked 12/2, 2018 at 22:17

3

I am able to add in an image to an excel spreadsheet by using OpenXML. However for the rest of the program I use ClosedXML to add data. I can add data at a specific cell using the column and row in...
Cobaltite asked 6/9, 2013 at 15:23

1

Solved

I generate an Excel file with ClosedXML and I want to know how can I do a Carriage Return Within a Cell?
Retaretable asked 7/9, 2018 at 14:33

1

I'm having an issue when I try to change the format of an entire column. My issue is that I don't get the XLCellValues operand. I am able to choose XLDataType.Text but that does not work. This is ...
Respire asked 1/3, 2018 at 15:50

1

Solved

I am trying to achieve the following in an Excel VSTO add-in: Copying/applying cell formatting from the original version of an Excel file. Reason: while processing Excel files, we occasionally ne...
Attraction asked 29/1, 2018 at 11:40

1

I have implemented Excel template download in my project. I used ClosedXML. I have two excel sheets Sheet1: In this sheet, I have a column called Type in which I can create Dropdown List and it is ...
Decreasing asked 22/9, 2015 at 5:11

1

When I add a worksheet via a DataTable, I would expect the date formats to follow the locale/culture of the application but it appears to take that from the computer. string culture = "en-GB"; var...
Apollinaire asked 31/10, 2017 at 19:30

4

Solved

Is it possible to save a worksheet of a workbook as CSV via ClosedXML? For example: var workbook = new XLWorkbook(fileName); IXLWorksheet worksheet; workbook.Worksheets.TryGetWorksheet(sheetName,...
Appal asked 24/11, 2014 at 10:42

1

Solved

I want to be able to find if a particular string exists in a range using ClosedXML, however, I cannot find any find command in the documentation. Currently I loop through 1000s of rows to find if t...
Devastating asked 9/5, 2017 at 19:33

2

I have created WebAPI which returns an excel file using closedxml nuget. Basically it converts my DataTable to excel. I'm referring couple of links below, How to return a file (FileContentResult)...
Eventuate asked 17/12, 2016 at 16:36

1

Solved

Using latest Closed XML (0.76) on Net 4.5.1 Created a Worksheet with a table by: DataTable Table = ... var DataWorkSheet = Workbook.Worksheets.Any(x => x.Name == "Data") ? Workbook .Works...
Hedonic asked 24/8, 2015 at 13:9

2

Solved

I am trying to export some data to an excel sheet S1 whose data would be shown as Pivoted views in the next two sheets S2 and S3. I am able to create a single pivot and it works perfect. But when I...
Pretorius asked 15/7, 2015 at 13:51

1

Solved

How to use different colors of texts in the same Excel cell using ClosedXML? worksheet.Cell(1,1).Value.Character[StartIndex, NoOfChar].Font.Color....?? ClosedXML doesn't have something like above...
Bradfordbradlee asked 21/9, 2016 at 12:16

5

Solved

There are several textboxes in an excel file as ActiveX objects and I want to reach them from codebehind. I am using ClosedXML for other fields, but I am open for other suggestions.
Turkish asked 6/9, 2016 at 14:3

1

Solved

I am using PowerShell 3 and ClosedXML to write file information into an excel worksheet. In one of the cells I need to set the background color to a light blue (cornflower blue or 219, 229, 249 in ...
Cheston asked 4/7, 2016 at 1:49

1

I am using closedXML to generate a XML file(in arabic) and i need this file to be in right to left layout how can it do this in closedXML. XLWorkbook wb = new XLWorkbook(); var ws = wb.Worksheets....
Touraco asked 28/6, 2016 at 6:21

© 2022 - 2024 — McMap. All rights reserved.