开发者

Problem With Export Button in Report Viewer 2010 Localization

I localized Report Viewr 2010 using Implement this Interfaces: IReportViewerMessages,IReportViewerMessages2, IReportViewerMessages3

every thing is ok and my desire labels appears in report viewer.开发者_运维百科but when I open Export list there is no item in it.

Problem With Export Button in Report Viewer 2010 Localization

what is my fault and how I can fix this?

thanks


well clearly you have not localized every single string and you should still add some missing localization.

You can fix this by checking if you should have been implementing another interface except those 3 you have already used, if you also have the neutral resource file you can compare it with your interfaces implementation and see if there is any missing key/string.


this is possible by implement IReportViewerMessages2 and GetLocalizedNameForRenderingExtension method :

public string GetLocalizedNameForRenderingExtension(string format)
{
    switch (format.ToLower())
    {
        case "xml":
            return "your xml label";
        case "csv":
            return "your csv label";
        case "pdf":
            return "your pdf label";
        case "mhtml":
            return "your mhtml label";
        case "excel":
            return "your excel label";
        case "image":
            return "your image label";
        case "word":
            return "your word label";
    } 
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜