We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Field List names and PDF export

Hi, Is there a way to change the names of the data entries in the FieldList and do you plan to support Non-English alphabets for the PDF Export, because when you try to export returns the following exception: Error: ArgumentOutOfRangeException:index, The character is not supported by the font.


2 Replies

SR Sabaridass Ramamoorthy Syncfusion Team April 9, 2019 12:15 PM UTC

Hi Kaloyan, 
 
Thanks for contacting Syncfusion Support. 
 
Please find the response below. 
 
Query 
Comments 
1. 
Is there a way to change the names of the data entries in the FieldList 
You can change field name in the FieldList by using enginePopulated event. Please refer the below code snippet. 
 
Code Snippet: 
 
enginePopulated: function() { 
    Object.keys( 
      this.$refs.pivotview.ej2Instances.engineModule.fieldList 
    ).forEach((key, index) => { 
      if (key === "Quarter") { 
        this.$refs.pivotview.ej2Instances.engineModule.fieldList[ 
          key 
        ].caption = "Qtr"; 
      } 
    }); 
  } 
 
 
Note: If you configured field in the data source, you need to use caption property. 
2. 
do you plan to support Non-English alphabets for the PDF Export, because when you try to export returns the following exception: Error: ArgumentOutOfRangeException:index, The character is not supported by the font. 
Currently we are validating this problem. We will update further details on 11th April, 2019. 
 
Please let us know if any concerns. 
 
Regards, 
Sabaridass R 



MM Manikandan Murugesan Syncfusion Team April 12, 2019 02:59 PM UTC

Hi Kaloyan, 
 
You can export Non-English alphabets to pdf by using custom font. Please refer the following code snippet. 
 
Code Snippet: 
 
var pdfExportProperties = { 
    theme: { 
        header: {font:  new PdfTrueTypeFont(base64_Alger, 10) }, 
        caption: { font: new PdfTrueTypeFont(base64_Alger, 10) }, 
        record: { font: new PdfTrueTypeFont(base64_Alger, 10) } 
    } 
}; 
pivotGridObj.pdfExport(pdfExportProperties); 
 
 
Please let us know if you need further assistance on this. 
 
Regards, 
Manikandan. 


Loader.
Live Chat Icon For mobile
Up arrow icon