var backColor = XLColor.FromArgb(255, 255, 246);
wb.Worksheet(worksheetNum).ColumnsUsed().CellsUsed().Style.Fill.SetBackgroundColor(backColor);
This skips empty cells. Is there a way to make the background only for the cells within the table, but including empty cells?
↧
New Comment on "Style Worksheet"
↧
Created Unassigned: .save() method aborting with ArgumentNullException [9327]
This app has been working fine for many weeks, updating the same file, but something has apparently confusing ClosedXML. I've tried both versions 0.69.2 and 0.71.2.
System.ArgumentNullException was unhandled
HResult=-2147467261
Message=Value cannot be null.
Parameter name: source
Source=System.Core
ParamName=source
StackTrace:
at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value, IEqualityComparer`1 comparer)
at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value)
at ClosedXML.Excel.XLHyperlink.get_InternalAddress()
at ClosedXML.Excel.XLWorkbook.GenerateWorksheetPartContent(WorksheetPart worksheetPart, XLWorksheet xlWorksheet, SaveContext context)
at ClosedXML.Excel.XLWorkbook.CreateParts(SpreadsheetDocument document)
at ClosedXML.Excel.XLWorkbook.CreatePackage(String filePath)
at ClosedXML.Excel.XLWorkbook.Save()
System.ArgumentNullException was unhandled
HResult=-2147467261
Message=Value cannot be null.
Parameter name: source
Source=System.Core
ParamName=source
StackTrace:
at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value, IEqualityComparer`1 comparer)
at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value)
at ClosedXML.Excel.XLHyperlink.get_InternalAddress()
at ClosedXML.Excel.XLWorkbook.GenerateWorksheetPartContent(WorksheetPart worksheetPart, XLWorksheet xlWorksheet, SaveContext context)
at ClosedXML.Excel.XLWorkbook.CreateParts(SpreadsheetDocument document)
at ClosedXML.Excel.XLWorkbook.CreatePackage(String filePath)
at ClosedXML.Excel.XLWorkbook.Save()
↧
↧
New Post: Cell Merge Performance
MDeLeon Hello.
Your answer is the solution to the problem I'm in trouble right now.
But ...
And I tried to download version 0.71.2 for. Net Framework3.5, but they may not be able to put a boolean argument to range.Merge.
I'm developing in Visual Studio 2008.
Would you please tell me the solution if you do not mind?
Thank you
Excuse my English.
Your answer is the solution to the problem I'm in trouble right now.
But ...
And I tried to download version 0.71.2 for. Net Framework3.5, but they may not be able to put a boolean argument to range.Merge.
I'm developing in Visual Studio 2008.
Would you please tell me the solution if you do not mind?
Thank you
Excuse my English.
↧
Commented Unassigned: .save() method aborting with ArgumentNullException [9327]
This app has been working fine for many weeks, updating the same file, but something has apparently confusing ClosedXML. I've tried both versions 0.69.2 and 0.71.2.
System.ArgumentNullException was unhandled
HResult=-2147467261
Message=Value cannot be null.
Parameter name: source
Source=System.Core
ParamName=source
StackTrace:
at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value, IEqualityComparer`1 comparer)
at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value)
at ClosedXML.Excel.XLHyperlink.get_InternalAddress()
at ClosedXML.Excel.XLWorkbook.GenerateWorksheetPartContent(WorksheetPart worksheetPart, XLWorksheet xlWorksheet, SaveContext context)
at ClosedXML.Excel.XLWorkbook.CreateParts(SpreadsheetDocument document)
at ClosedXML.Excel.XLWorkbook.CreatePackage(String filePath)
at ClosedXML.Excel.XLWorkbook.Save()
Comments: I need a way to reproduce it. Please write the minimum code necessary to reproduce the error.
System.ArgumentNullException was unhandled
HResult=-2147467261
Message=Value cannot be null.
Parameter name: source
Source=System.Core
ParamName=source
StackTrace:
at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value, IEqualityComparer`1 comparer)
at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value)
at ClosedXML.Excel.XLHyperlink.get_InternalAddress()
at ClosedXML.Excel.XLWorkbook.GenerateWorksheetPartContent(WorksheetPart worksheetPart, XLWorksheet xlWorksheet, SaveContext context)
at ClosedXML.Excel.XLWorkbook.CreateParts(SpreadsheetDocument document)
at ClosedXML.Excel.XLWorkbook.CreatePackage(String filePath)
at ClosedXML.Excel.XLWorkbook.Save()
Comments: I need a way to reproduce it. Please write the minimum code necessary to reproduce the error.
↧
New Post: DocumentFormat.OpenXml.dll 2.5
Hi, I very need to use ClosedXML with .NET 4.5 and OpenXML 2.5 by NuGet. Can you do that?
It should help I think. http://docs.nuget.org/docs/reference/nuspec-reference
It should help I think. http://docs.nuget.org/docs/reference/nuspec-reference
<dependencies>
<group targetFramework="net35">
<dependency id="DocumentFormat.OpenXml" version="[1.0]" />
</group>
<group targetFramework="net40">
<dependency id="DocumentFormat.OpenXml" version="2.5" />
</group>
</dependencies>
↧
↧
New Post: Background fill for empty cells within the table
var backColor = XLColor.FromArgb(255, 255, 246);
wb.Worksheet(worksheetNum).ColumnsUsed().CellsUsed().Style.Fill.SetBackgroundColor(backColor);
This skips empty cells. Is there a way to make the background only for the cells within the table, but including empty cells?
wb.Worksheet(worksheetNum).ColumnsUsed().CellsUsed().Style.Fill.SetBackgroundColor(backColor);
This skips empty cells. Is there a way to make the background only for the cells within the table, but including empty cells?
↧
New Post: Background fill for empty cells within the table
It's doing exactly what you're telling it to do: from the workbook give me the worksheet, then the columns used (have values), of those give me the cells that are being used (have values) then set the background color.
There are many ways to accomplish it but I'd probably do:
worksheet.RangeUsed().Style.Fill.BackgroundColor = XLColor.FromArgb(1);
You can also do:
cell.Style...
range.Style...
table.Style...
worksheet.Style...
row.Style...
column.Style...
There are many ways to accomplish it but I'd probably do:
worksheet.RangeUsed().Style.Fill.BackgroundColor = XLColor.FromArgb(1);
You can also do:
cell.Style...
range.Style...
table.Style...
worksheet.Style...
row.Style...
column.Style...
↧
New Post: Background fill for empty cells within the table
Ah! I didn't see the rage used function! Perfect, thanks!
↧
Source code checked in, #727714e86416cbd4764cce35f5f35cd03f6fa057
Fix range.Merge(Boolean) for .Net 3.5
↧
↧
New Post: Cell Merge Performance
You're right takeo. I fix it so download the latest source code (until I make the next release).
Thanks
Thanks
↧
Source code checked in, #fff145159fbc83461253fd455fee3bf4591245ba
Bump version
↧
Created Release: ClosedXML 0.72.0 (Jun 04, 2014)
727714e86416
Fix range.Merge(Boolean) for .Net 3.5
eb1ed478e50e
Make public range.Merge(Boolean checkIntersects)
6284cf3c3991
More performance improvements when saving.
Fix range.Merge(Boolean) for .Net 3.5
eb1ed478e50e
Make public range.Merge(Boolean checkIntersects)
6284cf3c3991
More performance improvements when saving.
↧
Source code checked in, #b9ef53a6654fa88c7a922db517494027d5c97ae3
Merge branch 'master' of https://git01.codeplex.com/forks/vbjay/closedxml into vbjay/ClosedXML
↧
↧
New Post: DocumentFormat.OpenXml.dll 2.5
Finally someone made my life easier. I'll change the package.
↧
Source code checked in, #70426e13c415394f1064ea5012c6b5603419c96d
ClosedXML for .Net 4.0 now uses Open XML SDK 2.5
↧
New Post: DocumentFormat.OpenXml.dll 2.5
Sorry I never created a NuGet package I just know it could be done.
Sent from my iPhone
Sent from my iPhone
↧
Source code checked in, #e869dab1dc0dc4f4b537568c3f266ac738c3ea38
Another bump
↧
↧
Created Release: ClosedXML 0.72.3 (Jun 04, 2014)
70426e13c415
ClosedXML for .Net 4.0 now uses Open XML SDK 2.5
b9ef53a6654f
Merge branch 'master' of https://git01.codeplex.com/forks/vbjay/closedxml
727714e86416
Fix range.Merge(Boolean) for .Net 3.5
eb1ed478e50e
Make public range.Merge(Boolean checkIntersects)
6284cf3c3991
More performance improvements when saving.
ClosedXML for .Net 4.0 now uses Open XML SDK 2.5
b9ef53a6654f
Merge branch 'master' of https://git01.codeplex.com/forks/vbjay/closedxml
727714e86416
Fix range.Merge(Boolean) for .Net 3.5
eb1ed478e50e
Make public range.Merge(Boolean checkIntersects)
6284cf3c3991
More performance improvements when saving.
↧
Released: ClosedXML 0.72.3 (Jun 04, 2014)
70426e13c415
ClosedXML for .Net 4.0 now uses Open XML SDK 2.5
b9ef53a6654f
Merge branch 'master' of https://git01.codeplex.com/forks/vbjay/closedxml
727714e86416
Fix range.Merge(Boolean) for .Net 3.5
eb1ed478e50e
Make public range.Merge(Boolean checkIntersects)
6284cf3c3991
More performance improvements when saving.
ClosedXML for .Net 4.0 now uses Open XML SDK 2.5
b9ef53a6654f
Merge branch 'master' of https://git01.codeplex.com/forks/vbjay/closedxml
727714e86416
Fix range.Merge(Boolean) for .Net 3.5
eb1ed478e50e
Make public range.Merge(Boolean checkIntersects)
6284cf3c3991
More performance improvements when saving.
↧
Updated Release: ClosedXML 0.72.3 (Jun 04, 2014)
70426e13c415
ClosedXML for .Net 4.0 now uses Open XML SDK 2.5
b9ef53a6654f
Merge branch 'master' of https://git01.codeplex.com/forks/vbjay/closedxml
727714e86416
Fix range.Merge(Boolean) for .Net 3.5
eb1ed478e50e
Make public range.Merge(Boolean checkIntersects)
6284cf3c3991
More performance improvements when saving.
ClosedXML for .Net 4.0 now uses Open XML SDK 2.5
b9ef53a6654f
Merge branch 'master' of https://git01.codeplex.com/forks/vbjay/closedxml
727714e86416
Fix range.Merge(Boolean) for .Net 3.5
eb1ed478e50e
Make public range.Merge(Boolean checkIntersects)
6284cf3c3991
More performance improvements when saving.
↧