Get page size from report viewer

2 posts, 0 answers
  1. Drobyshev_Meidel
    Drobyshev_Meidel avatar
    1 posts
    Member since:
    Oct 2018

    Posted 26 Oct 2018 Link to this post

    Hi. I try to select report engine for my application and play with Telerik reporting. Almost all clear and working as expected.
    One question. In what way I can get selected page size, orientation etc in reportViewer?
    After call ShowPageSetupDialog for example...
  2. Silviya
    Silviya avatar
    422 posts

    Posted 30 Oct 2018 Link to this post

    Hello Drobyshev_Meidel,

    Thanks for your interest in our product.
    In order to get report's PageSettings and/or modify from the client side is through report parameters. In case the value of some report property is bound to a report parameter value, changing the value of report parameter from the client side can change the value of the report property.
    For example to bind Report.PageSettings.Landscape property to a report parameter, add a binding into Report.Bindings collection -

    Report parameters can be changed form the client side using parameters area of the report viewer. Report parameter can also be hidden (will not appear in the viewer's parameters area) and you can pass the value to this parameter using reportSource.parameters option of the viewer:
           serviceUrl: "/api/reports",
           reportSource: {                     
               report: "SampleReport.trdp",
               parameters: { Landscape: true }

    Don't hesitate to ask if you have any questions.

    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top