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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Field List names and PDF export

Thread ID:

Created:

Updated:

Platform:

Replies:

143852 Apr 8,2019 08:14 AM UTC Apr 12,2019 02:59 PM UTC Vue 2
loading
Tags: PivotView
Kaloyan Stefanov
Asked On April 8, 2019 08:14 AM UTC

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.


Sabaridass Ramamoorthy [Syncfusion]
Replied On 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 


Manikandan Murugesan [Syncfusion]
Replied On 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. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon