support.activereports.net

Started by webadmin@datadynamics.com at 09-03-2003 12:00 AM. Topic has 0 replies.

Print Search
Sort Posts:    
   09-03-2003, 12:00 AM
webadmin@datadynamics.com is not online. Last active: 12/13/2005 3:53:57 AM webadmin@datadynamics.com

Not Ranked
Joined on 12-12-2005
Posts 0
Re: page break via script
Originally Posted By: Trent Snow - DD<ActiveReports.Support@DataDynamics.com>

Hello Darin--

Try doing something like this:

public void Detail_Format()
{
if
(((DataDynamics.ActiveReports.TextBox)rpt.Sections["Detail"].Controls["TextB
ox1"]).Text == "PageBreak")
{
((DataDynamics.ActiveReports.Detail)rpt.Sections["Detail"]).NewPage =
DataDynamics.ActiveReports.NewPage.Before;
}

else
{
((DataDynamics.ActiveReports.Detail)rpt.Sections["Detail"]).NewPage =
DataDynamics.ActiveReports.NewPage.None;
}
}

"Darin" wrote in message
news:0TqqSrAcDHA.1908@dynaweb.datadynamics.com...
> I have a dataset that prints in the detail section of a report. One field
in
> that dataset is a bit for newpage. If that bit is non-negative, I want to
> force a page break in AR BEFORE that particular detail line is printed.
>
> How do I do that via script?
>
> --
> Darin Horton
>
>



   Report 
GrapeCity » Forum Archives » support.activer... » Re: page break via script

Privacy Policy | Copyright © 1997-2012 — GrapeCity, inc.
All trademarks mentioned are the property of their respective owners.