3 posts, 0 answers
  1. Juan
    Juan avatar
    24 posts
    Member since:
    Oct 2016

    Posted 25 Oct 2016 Link to this post

    I'm trying to export to PDF records of a grid.

    I`m folowing the example of this demo http://demos.telerik.com/kendo-ui/grid/pdf-export

    And i'm having an issue with this part:

    .Pdf(pdf => pdf
                       .Scale(0.8)  -->
                        .Margin("2cm", "1cm", "1cm", "1cm")
                       .RepeatHeaders() -->
                      .TemplateId("page-template") -->
                       .FileName("Kendo UI Grid Export.pdf")
                       .ProxyURL(Url.Action("Pdf_Export_Save", "Grid")))


    The compiler of visual studio show me an error of reference for the options (Scale, RepeatHeaders and TemplateId).

    I hope someone can help me with this. Please.

  2. Juan
    Juan avatar
    24 posts
    Member since:
    Oct 2016

    Posted 25 Oct 2016 in reply to Juan Link to this post

    This is the message that shows me:

    CS1061: 'Kendo.Mvc.UI.Fluent.PDFSettingsBuilder' does not contain a definition of 'templateId' and no extension method 'templateId' accepting a first argument of type 'Kendo.Mvc.UI.Fluent.PDFSettingsBuilder' found ( Is there a using directive or an assembly reference missing?)
  3. Vessy
    Vessy avatar
    1929 posts

    Posted 26 Oct 2016 Link to this post

    Hi Juan,

    Can you verify that you are using the latest 2016.3.914 version of the controls like stated in he ticket info? I have tested the code from the demo in a separate project but no errors were thrown at my end.

    I am attaching my test project to this reply - are you experiencing the same error with it? I used the resource from version 20156.3.914.

    Telerik by Progress
    Build rich, delightful, *native* Angular 2 apps with Kendo UI for Angular 2. Try it out today! Kendo UI for Angular 2 (currently in beta) is a jQuery-free toolset, written in TypeScript, designed from the ground up to offer true, native Angular 2 components.
Back to Top