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

PDF EXPORT OPTIONS NOT FOUND IN GRID

2 Answers 163 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Juan
Top achievements
Rank 1
Juan asked on 25 Oct 2016, 02:32 PM

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 Answers, 1 is accepted

Sort by
0
Juan
Top achievements
Rank 1
answered on 25 Oct 2016, 03:01 PM

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?)
0
Vessy
Telerik team
answered on 26 Oct 2016, 11:38 AM
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.
 
Tags
Grid
Asked by
Juan
Top achievements
Rank 1
Answers by
Juan
Top achievements
Rank 1
Vessy
Telerik team
Share this question
or