Problems with report structure and PageNumber

4 posts, 0 answers
  1. Carlos
    Carlos avatar
    6 posts
    Member since:
    Jul 2013

    Posted 22 Dec 2016 Link to this post

    Hello,

    I have a report with the following structure:

    PageHeader --> with logo and company data only on the first page.

    GroupHeaderSection1 --> With data of the person is displayed on all pages if the user indicates it, this is the binding property

    GroupHeaderSection2 --> Description of the fields for the page break.

    GroupHeaderSection3--> Not visible only to group and have the sum of the group in the GroupFooterSection

    GroupHeaderSection4 --> Table with the column literals you get from another DataSource independent of the report, Visible on all pages.

    Detail --> General data of the reports

    GroupFooterSection 1 --> not visible

    GroupFooterSection 2 --> not visible

    GroupFooterSection 3 --> Summation of a detail field

    GroupFooterSection 4 --> not visible

    ReportFooterSection --> con totales del informe y 3 tablas informativas

    PageFooterSection --> PageNumber

     

    Problem:
    I need to get the summation of the previous page and the sum of the same page and that this data appears between the GroupHeaderSection4 and the detail and at the end of the detail between  the GroupFooterSection 3 and  ReportFooterSection.

     

    Test done and failed

    1) I found this function that does it but it paints it in the PageHeader, not where I need it

    https://translate.googleusercontent.com/translate_c?depth=1&hl=es&prev=search&rurl=translate.google.es&sl=en&u=http://www.telerik.com/forums/carryover-page-sum-on-top-of-next-page&usg=ALkJrhi6igkyBztdcmZgrlchAOhYR032wg#PnmtDie720udwCPEjMPADA

    2) With the function of 1 put the data in header but not visible and another textbox in a group with the value of the textbox

    2) With the function of 1 Update a report parameter with the value of the PageNumber.

    3) Create a group grouping by pageNumber

    4) Put all groups in the PageHeader and display binding, but I reserve space although the fields are not visible. And the page break does not paint me where I want

    5) Try to access from the viewer to the data to save me for each line of the report your page number and return it to launch

    How can I develop what I need by maintaining the structure of the report?

    Thank you

     

  2. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 23 Dec 2016 Link to this post

    Hello Carlos,

    In general, getting totals of the previous page is not supported. The forum thread you linked is a custom solution.

    The report is processed and rendered in the selected format, and then it is paged - Report life cycle.
    Page numbers and count, and information per page are available only at the paging stage (in PageHeader and PageFooter sections), where you can use the PageCount, PageNumber global objects and the PageExec data function, and the custom function from Carryover, page sum on top of next page.
    If you use the function from Carryover, page sum on top of next page, possible reason for not seeing the information in the page sections is an error in the processing, or the TextBox item grows in height and it is clipped when it goes beyond the height of the page section. You will have to debug the execution of the custom function to check that.

    In case displaying the information in page sections does not fit your requirements, test modifying the data in such manner that the required value is available via field.

    Regards,
    Stef
    Telerik by Progress
    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
  3. Carlos
    Carlos avatar
    6 posts
    Member since:
    Jul 2013

    Posted 27 Dec 2016 Link to this post

    Hello:

    1. It is not possible to have the CanShrink property on the PageHeader so it does not save space for me.

    2.  It is not possible to have the PageNumber in another section other than PageHeader or PageFooter.(Crystal Report does it, why don't you? )

    3. I can't make a subreport with PageHeader and PageFooter and show these sections.

    If I don't find a solution for this, I can't use the Telerik Reporting tool. Do you have another tool to generate this kind of documents?

    Thank you

  4. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 27 Dec 2016 Link to this post

    Hello Carlos,

    Page sections shrinking is a feature approved for development, but not yet available. Still page specific objects like PageNumber and PageCount will be available and evaluated on the paging stage, limiting their usage in page sections. Also Page sections of sub reports are not rendered in the main report, as the SubReport item's content is considered content of the main report.

    For more details, please check Rendering: Page Header and Footer sections.


    For a desktop application (WinForms or WPF), you can test using Telerik Document Processing Libraries to produce documents in various formats, or check the corresponding Telerik controls' Export Support e.g. for UI for WPF.
    For Web applications, check the ClientExportManager and corresponding Kendo UI libraries for exporting HTML to image/PDF/SVG at the client.

    Regards,
    Stef
    Telerik by Progress
    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