Hello,
I have an issue with the name of the generated files when exporting a report to PDF or XLS from the report viewer. When a report contains a "special character" (for example "ä") in its name the character in question is not rendered correctly when clicking on the "Export" link. Instead I have a question mark wrapped in a black losange.
I understand this issue is related to URL encoding but I'm not sure how to handle it. Here's my scenario with more details:
Environment information:
- Silverlight 4.0
- IIS 7.0
- IE 8.0
- Telerik Reporting 2012Q1
In our Silverlight 4 application, a user wants to create a report. At first, he is on a page (a FloatableWindow) on the application and clicks on a button. This button sends the user to the ASPX page handling the report generation. The click on the button actually calls HtmlPage.Window.Navigate with the URI of the ASPX page in question and a bunch of parameters we use to generate the appropriate report. Among these parameters, one corresponds to the name the report will be given (also used as the file name which the report will be generated to). When debugging, in the ASPX page, I can see that the name of the report is correctly encoded (ie. the character "ä" is present and displayed correctly in the report name). The report is generated correctly in the report viewer but when clicking on the "Export" link (to PDF or XLS, same behavior), the name of the file does not hold this character anymore but instead the question mark with the black losange. Below are some code extracts that may help on our process.
Code-behind of the ASPX page holding the ReportViewer:
The above code correctly assigns the report name and document name correctly encoded. Clicking on Export does not use the correct encoding. If I right-click on "Export" and select "Open in new tab", the URL in the URL box of IE looks fine but the title of the page (in the tab and in the browser) uses the wrong encoding. FYI, spaces are correctly rendered and do not use %20, not even in the URL. Is there any way to fix this and tell the "Export" link/button what encoding to use for the file name?
Thanks for your help.
I have an issue with the name of the generated files when exporting a report to PDF or XLS from the report viewer. When a report contains a "special character" (for example "ä") in its name the character in question is not rendered correctly when clicking on the "Export" link. Instead I have a question mark wrapped in a black losange.
I understand this issue is related to URL encoding but I'm not sure how to handle it. Here's my scenario with more details:
Environment information:
- Silverlight 4.0
- IIS 7.0
- IE 8.0
- Telerik Reporting 2012Q1
In our Silverlight 4 application, a user wants to create a report. At first, he is on a page (a FloatableWindow) on the application and clicks on a button. This button sends the user to the ASPX page handling the report generation. The click on the button actually calls HtmlPage.Window.Navigate with the URI of the ASPX page in question and a bunch of parameters we use to generate the appropriate report. Among these parameters, one corresponds to the name the report will be given (also used as the file name which the report will be generated to). When debugging, in the ASPX page, I can see that the name of the report is correctly encoded (ie. the character "ä" is present and displayed correctly in the report name). The report is generated correctly in the report viewer but when clicking on the "Export" link (to PDF or XLS, same behavior), the name of the file does not hold this character anymore but instead the question mark with the black losange. Below are some code extracts that may help on our process.
Code-behind of the ASPX page holding the ReportViewer:
public
class
ReportManagementPage : Page
{
protected
void
Page_Load(
object
sender, EventArgs e)
{
Report report =
new
MyReport();
report.Name = Request.QueryString[
"reportName"
];
report.DocumentName = Request.QueryString[
"reportName"
];
reportViewer.Report = report;
}
}
The above code correctly assigns the report name and document name correctly encoded. Clicking on Export does not use the correct encoding. If I right-click on "Export" and select "Open in new tab", the URL in the URL box of IE looks fine but the title of the page (in the tab and in the browser) uses the wrong encoding. FYI, spaces are correctly rendered and do not use %20, not even in the URL. Is there any way to fix this and tell the "Export" link/button what encoding to use for the file name?
Thanks for your help.