PDF Export configuration not working

3 posts, 0 answers
  1. Matias
    Matias  avatar
    26 posts
    Member since:
    Mar 2016

    Posted 30 Nov 2016 Link to this post

    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. Misho
    Admin
    Misho avatar
    241 posts

    Posted 01 Dec 2016 Link to this post

    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.
  3. Matias
    Matias  avatar
    26 posts
    Member since:
    Mar 2016

    Posted 01 Dec 2016 in reply to Misho Link to this post

    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.

Back to Top