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

PDF Export configuration not working

2 Answers 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matias
Top achievements
Rank 1
Matias asked on 30 Nov 2016, 01:21 PM

I'm following this example to export my grid to PDF: http://demos.telerik.com/aspnet-mvc/grid/pdf-export

In the pdf configuration, I'd need to use both pdf.TemplateId and pdf.RepeatHeaders, but when try to use them in my grid I get the following error: "Cannot resolve symbol TemplateId", and same with RepeatHeaders. I've attached and image showing this behaviour.
I'd like to know how to use those configurations properly.

Thanks in advance

2 Answers, 1 is accepted

Sort by
0
Misho
Telerik team
answered on 01 Dec 2016, 01:50 PM
Hello Matias,

I wasn't able to replicate the issue you are experiencing on my side. However I managed to apply the demo configuration of Grid PDF export with TemplateId and RepeatHeaders to a new MVC project successfully. What I would suggest you as a starting point is to use the built in Visual Studio "Grid and Menu" project template for example and apply the PDF demo setup over it. I'm attaching a sample of this approach for your convenience.

Here is the result on my end: http://screencast.com/t/QH2XyAunSkhQ

I hope you will find this information useful.

Best Regards,
Misho
Telerik by Progress
Telerik UI for ASP.NET MVC is ready for Visual Studio 2017 RC! Learn more.
0
Matias
Top achievements
Rank 1
answered on 01 Dec 2016, 05:49 PM

Thank you Misho. The problem was the version of the Kendo.Mvc DLL file. I downloaded the latest version and that solved the issue.

Thanks again.

Tags
Grid
Asked by
Matias
Top achievements
Rank 1
Answers by
Misho
Telerik team
Matias
Top achievements
Rank 1
Share this question
or