PDF EXPORT OPTIONS NOT FOUND IN GRID

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

    Posted 25 Oct 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
                       .AllPages()
                       .AvoidLinks()
                       .PaperSize("A4")
                       .Scale(0.8)  -->
                        .Margin("2cm", "1cm", "1cm", "1cm")
                       .Landscape()
                       .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
    22 posts
    Member since:
    Oct 2016

    Posted 25 Oct 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. Kendo UI is VS 2017 Ready
  4. Vessy
    Admin
    Vessy avatar
    1389 posts

    Posted 26 Oct 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.

    Regards,
    Vessy
    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