From ad157a94ebe37d165d312db7c819041d731179cf Mon Sep 17 00:00:00 2001 From: travispotterBH Date: Wed, 17 Jan 2024 11:20:40 -0500 Subject: [PATCH 1/2] Update Nuget pacakages --- Excel_Adapter/Excel_Adapter.csproj | 18 +++++++++++++----- Excel_Adapter/packages.config | 11 ++++++----- Excel_oM/packages.config | 6 +++--- 3 files changed, 22 insertions(+), 13 deletions(-) diff --git a/Excel_Adapter/Excel_Adapter.csproj b/Excel_Adapter/Excel_Adapter.csproj index 7793263..f63920e 100644 --- a/Excel_Adapter/Excel_Adapter.csproj +++ b/Excel_Adapter/Excel_Adapter.csproj @@ -23,7 +23,7 @@ - + @@ -82,14 +82,22 @@ - - + + + - + + + + - + + + + + diff --git a/Excel_Adapter/packages.config b/Excel_Adapter/packages.config index a4c20c7..36d47dd 100644 --- a/Excel_Adapter/packages.config +++ b/Excel_Adapter/packages.config @@ -1,9 +1,10 @@  - - - + + + - - + + + \ No newline at end of file diff --git a/Excel_oM/packages.config b/Excel_oM/packages.config index 0d0618f..b15aea1 100644 --- a/Excel_oM/packages.config +++ b/Excel_oM/packages.config @@ -1,6 +1,6 @@  - - - + + + \ No newline at end of file From 502a7529ffd524684e5da5576508e881da300f20 Mon Sep 17 00:00:00 2001 From: travispotterBH Date: Wed, 17 Jan 2024 11:20:47 -0500 Subject: [PATCH 2/2] Fix compile Errors --- Excel_Adapter/Convert/FromExcel/CellContents.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Excel_Adapter/Convert/FromExcel/CellContents.cs b/Excel_Adapter/Convert/FromExcel/CellContents.cs index 4684e52..d955ebb 100644 --- a/Excel_Adapter/Convert/FromExcel/CellContents.cs +++ b/Excel_Adapter/Convert/FromExcel/CellContents.cs @@ -44,14 +44,14 @@ public static CellContents FromExcel(this IXLCell xLCell) return new CellContents() { - Comment = xLCell.HasComment ? xLCell.Comment.Text : "", + Comment = xLCell.HasComment ? xLCell.GetComment().Text : "", Value = xLCell.CellValueOrCachedValue(), Address = BH.Engine.Excel.Create.CellAddress(xLCell.Address.ToString()), DataType = xLCell.DataType.SystemType(), FormulaA1 = xLCell.FormulaA1, FormulaR1C1 = xLCell.FormulaR1C1, - HyperLink = xLCell.HasHyperlink ? xLCell.Hyperlink.ExternalAddress.ToString() : "", - RichText = xLCell.HasRichText ? xLCell.RichText.Text : "" + HyperLink = xLCell.HasHyperlink ? xLCell.GetHyperlink().ExternalAddress.ToString() : "", + RichText = xLCell.HasRichText ? xLCell.GetRichText().Text : "" }; @@ -62,10 +62,10 @@ public static CellContents FromExcel(this IXLCell xLCell) [Description("Gets the value of the cell, or cached value if the TryGetValue method fails. Raises a warning if the cached value is used, and ClosedXML beleives the cell needs to be recalculated.")] [Input("xLCell", "IXLCell to get the (cached) value from.")] [Input("value", "Value or cached value of the cell.")] - public static object CellValueOrCachedValue(this IXLCell xLCell) + public static object CellValueOrCachedValue(this IXLCell xLCell) { object value; - if (!xLCell.TryGetValue(out value)) + if (!xLCell.TryGetValue(out value)) { //If not able to just get the value, then get the cached value //If cell is flagged as needing recalculation, raise warning.