This is a migrated thread and some comments may be shown as answers.

Grid PDF Export Fails with MVC Bundling

3 Answers 96 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 26 Jan 2016, 03:26 PM

Hi there,

I believe I have found a bug with the PDF export on the grid in Q2 2015 and onwards. I have reproduced this bug using the VS2015 PDF Export demo  supplied with the Kendo install.

In order to replicate this bug, please enable bundling optimizations in the BundleConfig class:

 

BundleTable.EnableOptimizations = true;

 

Grid export to PDF will no longer work - it will fail with an error about the font:

"Cannot load font from http://localhost/Content/kendo/fonts/DejaVu/DejaVuSans-Bold.ttf?v=1.1"

It would seem that the path is working from the kendo folder and excluding the version number? The actual path to the font file should be:

"http://localhost/Content/kendo/2015.2.624/fonts/DejaVu/DejaVuSans-Bold.ttf"

The export works without issue when optimizations are disabled.

Regards,

 

Paul McKay

 

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 28 Jan 2016, 01:42 PM
Hello Paul,

I would recommend that you replace the minified js files with their non-minified version when using the bundle optimization.
I hope this helps.

Regards,
Daniel
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Paul
Top achievements
Rank 1
answered on 04 Feb 2016, 03:47 PM

Hi there,

I'm afraid this doesn't really help - regardless of whether it solves the problem or not, this isn't the way that your MVC wrappers install into the project - they always install the minified version of the scripts.

In order to use bundling properly, do I really have to manually replace every single one of these files with the non-minified version?

 

Thanks,

Paul

0
Daniel
Telerik team
answered on 08 Feb 2016, 01:47 PM
Hello Paul,

I understand your concern. Could you please try to add the standard, non-minified scripts and styles to the corresponding folders and see if the problem is resolved this way. The bundling framework should be able to select the proper version.
Bundling and minification

Regards,
Daniel
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Paul
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Paul
Top achievements
Rank 1
Share this question
or