Text and Subreport in detail section only appear at first page

Posted by: iskandar-dd on 4 August 2017, 2:56 pm EST

  • Posted 4 August 2017, 2:56 pm EST

    <font face="Arial">I placed 2 subreports ini detail section. The
    subreports populates recordset on detail_format event. I also placed a
    textbox back of the subreport.<br>
    I set the height of the textbox as same as detail.height using event.
    It works properly when the subreports show only in a single page, but
    when the subreport's data continue to the next page the textbox only
    appear in first page, in the next page it doesn't appear. Can you help
    me this?<br>
  • Replied 4 August 2017, 2:56 pm EST

    <P>Isn't it true that the height of the Detail section is unknown at the time of the Format event, you can set the Detail height at Format (and only at Format) but you cannot read it accurately until the BeforePrint event.</P>
    <P><A HREF="/Help/AR2Std/HX_Section_Height.html">http://www.datadynamics.com/Help/AR2Std/HX_Section_Height.html</A><BR><A HREF="/Help/AR2Std/HX_Section_Format.html">http://www.datadynamics.com/Help/AR2Std/HX_Section_Format.html</A><BR><A HREF="/Help/AR2Std/HX_Section_BeforePrint.html">http://www.datadynamics.com/Help/AR2Std/HX_Section_BeforePrint.html</A></P>
    <P>What is the purpose of this behind textbox? Are you trying to setup a watermark or something?</P>
  • Replied 4 August 2017, 2:56 pm EST

    I mean like this:<br>in detail section (i don't put any datacontrol
    here) i placed a textbox with it's outline. i hope if the detail
    section split in 2 pages the textbox will continue to the next page.
    but, it doesn't work. the textbox just appears at first page.<br>The
    aim is i want make a line in detail section that split in 2 pages when
    detail split too. I hope it makes clear. Thank your attention.....<br>
  • Replied 4 August 2017, 2:56 pm EST

    Can you please compress the DSR/DSX files of the reports and post them to the thread so that we can have a look at this problem.<br><br>
  • Replied 4 August 2017, 2:56 pm EST

    It is not clear what you mean by "textbox back of the subreport"? Is it behind it? In which event do you set the height of the textbox. I appreciate if you compress and post the DSR/DSX files of the report so that we could see the problem. <br>
  • Replied 4 August 2017, 2:56 pm EST

    yes, i mean i placed the textbox behind the subreport. I set the textbox at detail_beforeprint event of the main report.<br>
  • Replied 4 August 2017, 2:56 pm EST

    Iskandar,<br>Actually the problem isn't clear to me but have you tried setting the height of the textbox to be equal to the height of the Detail section in the Format event instead?<br>
  • Replied 4 August 2017, 2:56 pm EST

    I sent an example of my case (including the vbp file). I've compressed it using winrar.<br>The example is token from activereport examples and i've modified.<br>The problem is (we focus on detail section) i want the blue line continues during the subreport continues to the next page. In the example i sent it doesn't continue to next page.<br>In my case i must use the subreport.<br>
  • Replied 4 August 2017, 2:56 pm EST

    The detail section's height property will return the height on the current page alone. It will not add the detail section's height from the previous page in the BeforePrint event. There is currently no way to surround the control on two separate pages. <br>
Need extra support?

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

Learn More

Forum Channels