Grid PDF Export with strange characters in Azure

6 posts, 0 answers
  1. Iago
    Iago avatar
    13 posts
    Member since:
    Sep 2016

    Posted 20 Apr 2018 Link to this post

    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.

  2. Attila Antal
    Admin
    Attila Antal avatar
    204 posts

    Posted 23 Apr 2018 Link to this post

    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.
  3. Iago
    Iago avatar
    13 posts
    Member since:
    Sep 2016

    Posted 26 Apr 2018 in reply to Attila Antal Link to this post

    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,

     

  4. Eyup
    Admin
    Eyup avatar
    3647 posts

    Posted 01 May 2018 Link to this post

    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.
  5. Pradip
    Pradip avatar
    1 posts
    Member since:
    Mar 2013

    Posted 21 Jan in reply to Iago Link to this post

    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 

     

     

  6. Eyup
    Admin
    Eyup avatar
    3647 posts

    Posted 23 Jan Link to this post

    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.
Back to Top