🍉 Meet Flexmonster Pivot Table & Charts 2.9.Check out all hot features!
Get Free Trial

Report headline alignment

Thomas Mortensen asked on November 15, 2019

Is it possible to left-align the headline set using grid.title and chart.title? We can do it via CSS but this does not affect Excel and PDF export. We are doing it because of the export, so the CSS option does not work for us.

1 answer

Vera Didenko Vera Didenko Flexmonster November 18, 2019

Hello, Thomas,
Thank you for your question.
For such cases, we kindly suggest the following approach:
1) For export to PDF:
Setting the desired title via the header property.
The title text can be passed to the header property as an HTML element with inline CSS.
This allows the text to be styled as desired.
2) For export to Excel:
Setting the desired title via the customFields (for Excel export) property.
By specifying the customFields parameter in the report object, you can add custom data (for example, the grid title), to the exported Excel table.
We have prepared a JSFiddle example for illustration: https://jsfiddle.net/flexmonster/21cm6twy/
Please let us know if such an approach would work for you.
Best Regards,

Please login or Register to Submit Answer