Hi,
I'm performing a Grid export in pdf in my app deployed in Azure. Whilst in local environment export file results as expected, in Azure file does not have any correct character. Only kind of squared characters are displayed.
I've tried setting a Pdf-DefaultFontFamily="Arial" and without any specific setting regarding the font, but same square characters in both cases.
Would you have any idea what I'm doing wrong?
Thanks in advance.
5 Answers, 1 is accepted
Is the issue for all characters or only several of them? There are several special characters that needs to be handled as described in the PDF Export article. You might as well check out the ClientExportManager - Export Special Characters and Exporting Special Characters articles.
It would be very helpful if you could Isolating a problem in a sample project and send it to us so that we can debug locally.
I look forward to hearing from you.
Kind regards,
Attila Antal
Progress Telerik
Hi,
Thanks for your answer.The issue happens for all characters, that is to say, all are exported as square symbols.
Document to be exported is left-to-right, no special characters on it. I'm afraid I had no time so far to prepare an example. I let you know just in case you have an idea in the meantime.
Best regards,
Please take your time to prepare a sample and send it back to us if the issue remains.
You can also check the printing functionality provided by RadGrid:
https://demos.telerik.com/aspnet-ajax/grid/examples/functionality/printing/defaultcs.aspx
In addition, you can check the note about fonts in this live sample:
https://demos.telerik.com/kendo-ui/grid/pdf-export
Regards,
Eyup
Progress Telerik
I am also facing the same issue (export to PDF) in azure environment whereas working fine in on premise environment.
Could you please help me How you get resolved this Issue?
Regards,
Pradip Shinde
pradip.shinde@us.mcd.com
Generally, exporting is not supported with AJAX and you need to disable it for the exporting operation:
https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/how-to/Exporting/export-from-ajaxified-grid
Here are some steps you can try in order to troubleshoot and resolve this issue:
1. Ensure that the application works without AJAX. You've already mentioned that there are no errors without AJAX:
http://https//www.telerik.com/support/kb/aspnet-ajax/ajaxmanager/details/get-more-descriptive-errors-by-disabling-ajax
2. Remove RadCompression from your web.config in case it is enabled:
http://www.telerik.com/help/aspnet-ajax/compression.html
3. Also, the CDN if present:
http://docs.telerik.com/devtools/aspnet-ajax/controls/scriptmanager/cdn-support/overview
<
add
key
=
"Telerik.ScriptManager.TelerikCdn"
value
=
"Disabled"
/>
4. Try adding these references to the script manager if they are not there already:
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
>
<
Scripts
>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.Core.js"
/>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQuery.js"
/>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQueryInclude.js"
/>
</
Scripts
>
</
telerik:RadScriptManager
>
5. Also, you can try disabling the following property:
<
telerik:RadScriptManager
...
EnableScriptCombine
=
"false"
>
6. The MS AJAX framework has some issues with CSS comments. You can check your page for any CSS rules that are commented out, for instance /* text */.
I hope this will prove helpful.
Regards,
Eyup
Progress Telerik