forked from JanKallman/EPPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from TheXDS/master
Merge commits from TheXDS/EPPlus
- Loading branch information
Showing
17 changed files
with
979 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/******************************************************************************* | ||
* Implemented following briddums advise ( https://stackoverflow.com/users/260473/briddums ), | ||
* as himself explained in https://stackoverflow.com/questions/11858109/using-epplus-excel-how-to-ignore-excel-error-checking-or-remove-green-tag-on-t/14483234#14483234 | ||
* The best way to address this issue is adding a whorksheet property that allows to ignore the warnings in a specified range. | ||
*******************************************************************************/ | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Xml; | ||
|
||
namespace OfficeOpenXml | ||
{ | ||
public class ExcelIgnoredError : XmlHelper | ||
{ | ||
private ExcelWorksheet _worksheet; | ||
|
||
/// <summary> | ||
/// Constructor | ||
/// </summary> | ||
internal ExcelIgnoredError(XmlNamespaceManager ns, XmlNode node, ExcelWorksheet xlWorkSheet) : | ||
base(ns, node) | ||
{ | ||
_worksheet = xlWorkSheet; | ||
} | ||
|
||
|
||
public bool NumberStoredAsText | ||
{ | ||
get | ||
{ | ||
return GetXmlNodeBool("@numberStoredAsText"); | ||
} | ||
set | ||
{ | ||
SetXmlNodeBool("@numberStoredAsText", value); | ||
} | ||
} | ||
|
||
|
||
public bool TwoDigitTextYear | ||
{ | ||
get | ||
{ | ||
return GetXmlNodeBool("@twoDigitTextYear"); | ||
} | ||
set | ||
{ | ||
SetXmlNodeBool("@twoDigitTextYear", value); | ||
} | ||
} | ||
|
||
|
||
public string Range | ||
{ | ||
get | ||
{ | ||
return GetXmlNodeString("@sqref"); | ||
} | ||
set | ||
{ | ||
SetXmlNodeString("@sqref", value); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.