I'm getting errors when opening an exported report from the report book.
Telerik.Reporting.OpenXmlRendering.Spreadsheet.Workbook.TrimName
This appears to only trim one instance of an invalid character.
"Report Name 04/24/3013" <= This consists of multiple forward slashes, but only one is removed.
Telerik.Reporting.OpenXmlRendering.Spreadsheet.Workbook.TrimName
This appears to only trim one instance of an invalid character.
"Report Name 04/24/3013" <= This consists of multiple forward slashes, but only one is removed.
if
(!
string
.IsNullOrEmpty(name))
{
string
str =
":\\/?*[]"
;
for
(
int
i = 0; i < str.Length; i++)
{
char
chr = str[i];
int
num = name.IndexOf(chr);
if
(num >= 0)
{
name = name.Remove(num, 1);
}
}
if
(name.Length > 31)
{
name = name.Remove(31);
}
}