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

Grid PDF Export with strange characters in Azure

5 Answers 224 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Iago
Top achievements
Rank 1
Iago asked on 20 Apr 2018, 12:50 PM

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

Sort by
0
Attila Antal
Telerik team
answered on 23 Apr 2018, 12:28 PM
Hi Iago,

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
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Iago
Top achievements
Rank 1
answered on 26 Apr 2018, 02:26 PM

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,

 

0
Eyup
Telerik team
answered on 01 May 2018, 01:00 PM
Hello Iago,

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
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Pradip
Top achievements
Rank 1
answered on 21 Jan 2019, 06:01 AM

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 

 

 

0
Eyup
Telerik team
answered on 24 Jan 2019, 05:40 AM
Hi Pradip,

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
Copy Code
<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
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Iago
Top achievements
Rank 1
Answers by
Attila Antal
Telerik team
Iago
Top achievements
Rank 1
Eyup
Telerik team
Pradip
Top achievements
Rank 1
Share this question
or