This is a migrated thread and some comments may be shown as answers.

Excel Worksheet name error

1 Answer 54 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 24 Apr 2013, 05:06 PM
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.

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);
        }
    }

1 Answer, 1 is accepted

Sort by
0
Elian
Telerik team
answered on 29 Apr 2013, 11:38 AM
Hello Steven,

Thank you for notifying us on this issue. We already have the issue logged and it will be fixed for a subsequent release.
As a token of our gratitude, we have updated your account with some Telerik points. 
 

Regards,
Elian
the Telerik team

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

Tags
General Discussions
Asked by
Steven
Top achievements
Rank 1
Answers by
Elian
Telerik team
Share this question
or