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

Error when exporting grid to PDF

Thread ID:

Created:

Updated:

Platform:

Replies:

144584 May 13,2019 12:57 PM UTC May 15,2019 07:05 AM UTC Angular - EJ 2 3
loading
Tags: Grid
Isaias Chalvatzoglou
Asked On May 13, 2019 12:58 PM UTC

Good Afternoon.
When I'm exporting the grid to PDF and my grid having footer aggregates, in the exporting PDF aggregates are not showing.


Another problem is that after exporting to PDF, in the rendered grid and the last two footers totals are showing multiple times.


Thank you.

Attachment: testej2_b18224e.7z

Hariharan J V [Syncfusion]
Replied On May 14, 2019 11:55 AM UTC

Hi Isaias, 
  
Thanks for contacting Syncfusion support. 
  
We have validated the reported problem and we found the angular Ng-template have some technical limitation while compiling Ng-template so we suggest you to render the aggregates in type script way to overcome the reported problem.  
  
Please refer the following code example and modified sample for more information. 
 
  <ejs-grid #grid [dataSource]='data' [allowPdfExport]='true' [aggregates]='aggregates'[toolbar]='toolbar' (toolbarClick)='toolbarClick($event)' 
            [allowResizing]="true" [allowGrouping]="true" [groupSettings]="groupOptions"> 
    <e-columns> 
      . . . . 
      <e-column field='Freight' headerText='Freight' type='number' width='120' format='C2'  [enableGroupByFormat]='true'></e-column> 
    </e-columns> 
  </ejs-grid> 
 
  
this.aggregates =  [{ 
      columns: [{ 
          type: 'Sum', 
          field: 'Freight', 
          format: 'C2', 
          groupFooterTemplate: '<b><font color="blue">Tot:${Sum}</font></b>' 
      }] 
    }, 
    { 
        columns: [{ 
            type: 'Sum', 
            field: 'Freight', 
            format: 'C2', 
            footerTemplate: '<b><font color="blue">Gen.Tot:${Sum}</font></b>' 
        }] 
    }]; 
  } 
  
 
  
  
Regards, 
Hariharan 


Isaias Chalvatzoglou
Replied On May 14, 2019 12:53 PM UTC

Hi Hariharan,

Problem solved

Thank you

Hariharan J V [Syncfusion]
Replied On May 15, 2019 07:05 AM UTC

Hi Isaias,

Thanks for your update.

We are happy to hear that your requirement has been resolved.

Regards,
Hariharan


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