Page break is displaying in middle of page

Posted by: suman.sardar on 26 September 2018, 9:16 pm EST

    • Post Options:
    • Link

    Posted 26 September 2018, 9:16 pm EST - Updated 30 September 2022, 8:58 am EST

    Hi,

    I am facing two issue in my report, which I am not able to resolve and not getting any help from existing KBs.

    Issue - 1

    Tab is showing at the start of each line.

    Issue - 2

    Page break is displaying in the middle of the page. Detail records not finished to display, but in the mid of the page suddenly page break is coming.

    I have attached a screenshot with both the issues.

    Any help appreciated.

  • Posted 26 September 2018, 9:54 pm EST

    Hello Suman,

    Could you please explain in detail

    1: When you get these error.

    2: Which report type are you using(Section/Page/RDL)

    3: Exact version of AR that you are using

    Also, If possible could please share the report with us so that I can replicate the issue at my end.

    Thanks,

  • Posted 27 September 2018, 4:48 pm EST

    Hi Mohit, Thanks for you reply.

    Active Report 9 version we are using

    We are using Active Report in our web application. ActiveReports.SectionReport is the report type.

    File is a C# file. How can I share the file?

    It is not giving any runtime error. REport is generating. But instead of continuous detail data in between it is inserting page break as I mentioned in the screenshot.

    Ideally detail data should continue till the next group it is approaching. In group footer we are programatically inserting page break like below

    groupFooterEntity.NewPage = NewPage.After;

    But for detail section, we are not inserting any page break.

    When the report generating, AR inserting unwanted page break inside detail.


    The report output is coming as .rtf.

    When opening the report with Microsoft Word and enabling “Show Paragraph and other hidden mark feature”, then it is marking → (tab) before each detail line. Which I marked in Blue line.

    Hope I am able to make you clear the issue I am facing.

    Thanks.

  • Posted 27 September 2018, 5:38 pm EST

    Hello Suman,

    Is it possible to share the stripped down application with me so that I can replicate the issue at my end and provide you the appropriate solution?

    Thanks,

    Mohit

  • Posted 2 October 2018, 5:29 pm EST

    Hi Mohit,

    Finally I am able to resolve the page break issue by set the NewPage property to BeforeAndAfter in the Detail section.

    Now another problem is still remain - one blank character before every line.

    I have set Left property to 0 for each and every field. But still one space adding at start.

    It is adding one space for GroupHeaders, Details every record.

    Any help appreciated.

    Thanks,

    Suman

  • Posted 3 October 2018, 10:39 pm EST

    Hello,

    You need to set the “Left Margin” of the report to “0 cm” to have the desired output.

    Thanks

  • Posted 10 October 2018, 3:23 pm EST

    Hi Mohit,

    I have set the Left Margin to 0 at detail and also from code. But still it is showing. Also there is a

    ------------------Page Break ------------

    is showing in each and every page end.

    I have attached sample code here.

    Create a folder in C:\Test and run. Open the report in MS-Word and “on” ShowHide Paragraph marks and Other hidden symbol option.

    Any help appreciated.

    Thanks,

    Suman

    TestReport.zip

  • Posted 10 October 2018, 5:26 pm EST

    Hello,

    Please set “EnableShapes” property of “RTFExport” to true to have the desired result like below:.

    
    GrapeCity.ActiveReports.Export.Word.Section.RtfExport rtfExport = new GrapeCity.ActiveReports.Export.Word.Section.RtfExport();
                rtfExport.EnableShapes = true;
                rtfExport.Export(rpt.Document, fileName);          
    
    

    is showing in each and every page end.

    I am unable to reproduce the issue at my end. Please refer to the attached rtf file.

    Thanks,

    TestActiveReport.zip

  • Posted 10 October 2018, 11:40 pm EST

    Hi Mohit,

    Thanks for your reply. Really appreciate your help.

    Now space issue resolved. But Page Break is coming in the beginning of the each page.

    In the attached zip file, ReportPageBreak_After_1.gif and ReportPageBreak_After_2 .gif is screen shot from your report and ReportPageBreak_Before_1.GIF and ReportPageBreak_Before_2.GIF which we were getting before your suggested change.

    So there are still that Page Break (before) / Section Break (after set EnableShapes = true) are coming in the report.

    Hope you get the issue.

    Thanks,

    Suman Sardar

    PageBreakIssue.zip

  • Posted 11 October 2018, 9:36 pm EST

    Hello Suman,

    I am able to replicate the issue at our end. However, this bug will be fixed the in the latest version i.e AR12. AR9 had been declared as a legacy product a long time ago and it is out of development mode hence, there is no fixing of bugs in AR9.

    However, I have escalated the issue to our development team and will inform you once I got any reply from them.

    Thanks

  • Posted 12 October 2018, 5:21 am EST

    Hi Mohit,

    Thanks for your reply. Will talk with our client regarding the same.

    One observation for the first character blank issue –

    After set the rtfExport.EnableShapes = true, a control like rectangle started displaying. After review with Client, they do not want to display rectangular sh

    ape after selecting the text (please see the attachment).

    Please give us some solution for that too.

    Thanks,

    Suman Sardar

  • Posted 12 October 2018, 5:22 am EST - Updated 30 September 2022, 8:58 am EST

    I missed the attachment. Here it go.

  • Posted 15 October 2018, 3:49 am EST

    Hello Suman,

    I have escalated both the issue to our development team(Id 265715) and will revert you once i get any reply from them.

    Thanks,

  • Posted 15 October 2018, 9:57 pm EST

    Hello Suman,

    one blank character before every line.

    It is the limitation of the RTF Export. Also, there is no plan in future to get rid of this limitation.

    Section Page break

    It is the behavior of MS Word to add “Section Page Break” tips. We cannot do anything in this.

    Sorry for the inconvenience caused to you.

    Thanks,

Need extra support?

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

Learn More

Forum Channels