- Home
- Forum
- Angular - EJ 2
- After updating from 17.4.41 to 19.1.69 pdfExport is not working
After updating from 17.4.41 to 19.1.69 pdfExport is not working
I'm working with these components
"@syncfusion/ej2-angular-dropdowns": "^17.4.44",
"@syncfusion/ej2-angular-grids": "^17.4.41",
"@syncfusion/ej2-angular-navigations": "^17.3.34",
"@syncfusion/ej2-angular-pivotview": "^17.4.41",
But after updating pivotview to a newer version, just to be able to show labels on top of bar charts, my grid export buttos stopped working and started to throw this error "cyclic object value", so i updated all the syncfusion libraries to a newer version which is 19.1.69 because i'm working with 11.2.13 angular version.
After the update i'm getting this error
Type 'PdfTrueTypeFont' is not assignable to type 'PdfStandardFont | PdfTrueTypeFont'.
in my function that generates the pdfExport properties, i'm creating a new PdfTrueTypeFont as in the documentation but is not working, below is the code for the pdfExportProperties.
return {
theme: {
header: {
fontName: 'Calibri', fontSize: 6, bold: true,
},
record: {
fontName: 'Calibri', fontSize: 6, bold: false
},
caption: {
fontName: 'Calibri', fontSize: 6, bold: false
}
},
header: {
fromTop: 0,
height: 80,
contents: [
{
type: 'Text',
value: "Name",
position: { x: 250, y: 0 },
style: { textBrushColor: '#000000', fontSize: 23 },
font: new PdfTrueTypeFont(base64font, 12) ,
}
]
},
fileName: "pdfdocument.pdf",
pageSize: 'Letter',
hierarchyExportMode: 'Expanded',
pageOrientation: 'Landscape',
};
Attachment: TsFontErrors_5c34b951.rar
- Delete package.lock.json file from your application.
- Remove the @syncfusion package folder from the node_modules.
- Use latest version or “*”(Installs the latest packages) for all Syncfusion components in package.json file.
- Then install the NPM packages.
- Share us the Grid code file.
- Share us the package.json file of your application.
- If possible share us a simple sample to replicate the problem or try reproducing it in the above shared sample.
Thanks, it worked, but there is an issue with grouping columns in data grid component, if my column has a blank space throws this error
ERROR DOMException: Element.querySelector: '.e-groupdroparea div[ej-mappingname=Column name]' is not a valid selector. I downgraded to
18.4.47 where everything works
- Share the complete Grid code example.
- Please share the screenshot or video demonstration of the reported issue.
- Please explain more details on the reported query” but there is an issue with grouping columns in data grid component, if my column has a blank space throws this error”.
- Do you have any null values in the grouped column?
- 3 Replies
- 3 Participants
-
EM Eduardo Moreno
- Aug 18, 2021 09:05 PM UTC
- Aug 20, 2021 04:02 PM UTC