Header Footer Issue

Posted by: p.feenstra on 24 December 2021, 1:06 am EST

  • Posted 24 December 2021, 1:06 am EST - Updated 30 September 2022, 6:16 am EST

    Hi,

    Using Reports 15 / SectionReport / PageSize A3 Landscape / Keep together - first detail.

    Look at the middle page image. (copied 3 side by side)

    The lines are in the right place, but the text has been pushed down.

    This document consists of 40 pages.

    The more empty space on a page, the more it gets pushed down.

    In some reports we also see this behaviour in the header text.

    Did I miss something or is this a bug?

    Regards Piet

  • Posted 24 December 2021, 6:53 pm EST

    Hello ,

    yes, it can be a bug. please attach the sample for tests.

    Thanks,

    Sergey Romanov.

  • Posted 4 January 2022, 10:12 pm EST

    Hi Sergey,

    Sending a sample will be difficult in this particular case.

    How i did it:

    • Using FrameWork 4.8
    • for the group header use GroupKeepTogether FirstDetail RepeatStyle OnPage
    • for details KeepTogether = true
    • the lines and the text in the footers are drawn (at the same time) by code after ReportEnd
    • the same method is used for the headers

    The strangest thing is that the lines are in the correct positions but the text is not.

    It should be easy for you to replicate.

    Regards Piet

  • Posted 10 February 2022, 2:33 pm EST

    Hi Piet,

    I was trying to replicate your issue on my end however I was unable to do so. The text is being printed on the same height on every page. I have attached the sample along with for your reference. Could you please modify the sample attached such that it replicates this behavior and send it back to us for further investigation?

    SectionReportSamplev15.zip

  • Posted 15 February 2022, 3:08 am EST

    Hi Akshay,

    I can’t get your sample to work.

    All the references where wrong.

    After I changed that it still won’t run.

    It seems you did use a viewer of a more recent date. (I’m using 15.2.3.)

    Regards Piet

  • Posted 15 February 2022, 8:49 pm EST

    Hi Piet,

    I have attached another sample with ActiveReports 15.2.3 references. The text is being printed at the same position in this sample as well for me. Let me know if you are observing any different behavior on your end. You can also modify the sample such that it reproduces your issue and send it back to us for further investigation.

    SectionReportSample.zip

  • Posted 11 March 2022, 4:03 am EST

    Hi Akshay,

    Didn’t have time to test your sample yet.

    But version 15.3 is now available.

    Where can I download 15.3? (The link is for v16)

    Regards Piet

  • Posted 13 March 2022, 3:38 pm EST

    Hi Piet,

    Here’s the link to download ActiveReports 15.3 from the following link:

    https://cdn.grapecity.com/ActiveReports/ar15/ActiveReports-v15.3.1.msi

    You can always download all the previous versions of ActiveReports from the following page of our website:

    https://www.grapecity.com/controls/activereports/download-version-history

  • Posted 13 March 2022, 9:14 pm EST - Updated 30 September 2022, 6:16 am EST

    Hi Akshay,

    I thought I had the wrong setup because this one gives a strange error message.

    The previous one (15_v2.0.1) was an exe. Is this a different product?

    Because we are just before an update of our products, I do not dare to remove an existing installation.

    Regards Piet

  • Posted 14 March 2022, 4:29 pm EST

    Hi Piet,

    The link I have shared with you is for ActiveReports 15 v3.1 offline installer. The previous one you were using must be the web install which is why you are seeing this error message. To resolve this issue please uninstall ActiveReports first and then reinstall using the new setup.

    >> Because we are just before an update of our products, I do not dare to remove an existing installation.

    It should not cause any issues in you application however, if you later want to switch back to ActiveReports 15 v2.0.1 you can always reinstall it using the web installer you have or download ActiveReports v15.2.0.5 web installer from the following page:

    https://www.grapecity.com/controls/activereports/download-version-history

  • Posted 16 March 2022, 12:39 am EST

    Hi Akshay,

    Tested the latest (15.3.1) version.

    But sadly the problem still exists. And because we already have complaining customers about this, it seems that we are now the proud owner of this problem.

    I researched it a bit further and I come to the conclusion that it can be attributed to the PageHeader and the PageFooter.

    It goes wrong as soon as there is less text on a page than is possible. While all the details seem to be in the right place, the header and also the footer are then stretched. (lines not)

    Since we don’t plan to make major updates to AR anytime soon, do you have some advise for creating a workaround? (Where and when to draw text?)

    Or should we just get used to the fact that not everything can be perfect? Although we will never get used to complaning customers :wink:

    Regards Piet

  • Posted 16 March 2022, 9:52 pm EST

    Hi Piet,

    Apologies for the inconvenience.

    Unfortunately, We are unable to replicate the issue on our end. Please share the report files with us and the code you are using to draw the text in the footer. Drawing text on the page after report end should be printed at the sample location irrespective of the sections. Also, as a workaround you can try to draw the footer after calling report.Run() and then view the report document. Please refer to the following lines of code:

    rpt.Run();

    DrawFooter();//Method for drawing the footer

    viewer1.LoadDocument(rpt.Document);

    >>Tested the latest (15.3.1) version.

    Were you able to replicate the issue in the sample attached in the previous replies as well?

    >> Or should we just get used to the fact that not everything can be perfect? Although we will never get used to complaning customers :wink:

    Again, We apologies for the problem caused. Please note we are unable to reproduce the issue on our end which is why we are having some difficulties in resolving this.

    Regards,

    Akshay

  • Posted 17 March 2022, 1:07 am EST

    Hi Akshay,

    Your suggestion did not work but I finally found the bug in AR.

    I’ve added a label without text (invisible did not work) in the PageFooter and the stretching is gone.

    Maybe you can pass that on to the developers. (a PageFooter should be able to be empty)

    Regards Piet

  • Posted 20 March 2022, 6:00 pm EST

    Hi Piet,

    I am glad you were able to resolve the issue. And thanks for sharing the workaround with us.

    Maybe you can pass that on to the developers.

    The dev team would need a sample where the issue can be reproduced in order to fix it.

  • Posted 28 March 2022, 4:46 pm EST

    Hi Armis,

    Please let us know what version of ActiveReports are you using? And provide us with a sample application replicating this behavior so we can investigate further on this or you can modify the sample attached such that it reproduces the issue and send it back to us.

    Also a workaround has been provided by Piet in the above reply, let us know if that fixes the issue in your case as well.

    Workaround:

    I’ve added a label without text (invisible did not work) in the PageFooter and the stretching is gone.

    Regards,

    Akshay

    file-b9f6c426-6138-4d11-81b4-bc2f85c499fb.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels