Set New Page property on GroupHeader in FastReport #2

Can someone help me how to set new page on or off on pagebreak condition? It is not turning on or off when I execute the code.

Thanks 

procedure TFrmRptMnuFastR.frxReport_budactBeforePrint(
  Sender: TfrxReportComponent);
var memo : tfrxGroupHeader;
    component : TfrxComponent;
begin

    case CmBxSortBy.ItemIndex of
      0 : begin
             component := frxreport_es_k_9.FindObject('GroupHeader1');
             memo := component as TfrxGroupheader;
             memo.Condition := 'frxDBDataset_budact."PLINE"';
             if pagebreak then
                 memo.StartNewPage := true
             else
                memo.StartNewPage := false;
         end;
      1 : begin
             component := frxreport_es_k_9.FindObject('GroupHeader1');
             memo := component as TfrxGroupheader;
             memo.Condition := 'frxDBDataset_budact."PLINE"';
             if pagebreak then
                 memo.StartNewPage := true
             else
                memo.StartNewPage := false;
          end;
    end;  // case (CmBxSortBy.ItemIndex)

end;
0
Minh
5/25/2015 4:58:54 AM
embarcadero.delphi.reporting 487 articles. 0 followers. Follow

1 Replies
841 Views

Similar Articles

[PageSpeed] 11

Hi,

You can set this property one time only - before group printing. So if 
group is printing now there are will not any results of changing this 
property.

You should change it before "onBeforePrint" of GroupHeader because on 
moment of "onBeforePrint" it is  already initialised.

25.05.2015 7:58, Minh Ho wrote:
> Can someone help me how to set new page on or off on pagebreak condition? It is not turning on or off when I execute the code.
>
> Thanks
>
> procedure TFrmRptMnuFastR.frxReport_budactBeforePrint(
>    Sender: TfrxReportComponent);
> var memo : tfrxGroupHeader;
>      component : TfrxComponent;
> begin
>
>      case CmBxSortBy.ItemIndex of
>        0 : begin
>               component := frxreport_es_k_9.FindObject('GroupHeader1');
>               memo := component as TfrxGroupheader;
>               memo.Condition := 'frxDBDataset_budact."PLINE"';
>               if pagebreak then
>                   memo.StartNewPage := true
>               else
>                  memo.StartNewPage := false;
>           end;
>        1 : begin
>               component := frxreport_es_k_9.FindObject('GroupHeader1');
>               memo := component as TfrxGroupheader;
>               memo.Condition := 'frxDBDataset_budact."PLINE"';
>               if pagebreak then
>                   memo.StartNewPage := true
>               else
>                  memo.StartNewPage := false;
>            end;
>      end;  // case (CmBxSortBy.ItemIndex)
>
> end;
>

-- 
Best regards,
  Michael Philippenko  mailto:michael@fast-report.com
  Fast Reports - reporting must be Fast!
  http://www.fast-report.com
0
Michael
5/26/2015 12:08:11 PM
Reply:

Similar Artilces:

Set New Page property on GroupHeader in FastReport
Can someone help me how to set new page on or off on pagebreak condition? It is not turning on or off when I execute the code. Thanks procedure TFrmRptMnuFastR.frxReport_budactBeforePrint( Sender: TfrxReportComponent); var memo : tfrxGroupHeader; component : TfrxComponent; begin case CmBxSortBy.ItemIndex of 0 : begin component := frxreport_es_k_9.FindObject('GroupHeader1'); memo := component as TfrxGroupheader; memo.Condition := 'frxDBDataset_budact."PLINE"'; if pagebreak then ...

superreview granted: [Bug 435079] Migrate Composer's New Page Settings prefs to the new prefpane : [Attachment 328536] Take 2, use browser pref observers etc
neil@parkwaycc.co.uk <neil@httl.net> has granted Stefan <stefanh@inbox.com>'s request for superreview: Bug 435079: Migrate Composer's New Page Settings prefs to the new prefpane https://bugzilla.mozilla.org/show_bug.cgi?id=435079 Attachment 328536: Take 2, use browser pref observers etc https://bugzilla.mozilla.org/attachment.cgi?id=328536&action=edit ------- Additional Comments from neil@parkwaycc.co.uk <neil@httl.net> Did one of the versions update the editor preview if you updated the browser colours even in non-instant-apply mode, or have I been dr...

superreview requested: [Bug 435079] Migrate Composer's New Page Settings prefs to the new prefpane : [Attachment 328536] Take 2, use browser pref observers etc
Stefan <stefanh@inbox.com> has asked neil@parkwaycc.co.uk <neil@httl.net> for superreview: Bug 435079: Migrate Composer's New Page Settings prefs to the new prefpane https://bugzilla.mozilla.org/show_bug.cgi?id=435079 Attachment 328536: Take 2, use browser pref observers etc https://bugzilla.mozilla.org/attachment.cgi?id=328536&action=edit ------- Additional Comments from Stefan <stefanh@inbox.com> Some changes: - Now using browser pref observers in order to make the ui respond to about:config changes in browser colors - function names now starts wit...

ANN: Delphi HTML Reports preview
Very simple to use - buid complex reports in 10 minutes. All you need to know - SQL, HTML, CSS. Use all power of HTML4 and CSS3 in any part of report. Features: Barcodes Multiline headers Groups Cross-tabs (any level) Transformations (cross-tab with range) Pictures (+from database) Master/Detail (any level) Supports all databases and db-libraries (writing adapter for any db-acess library takes only 5 minutes) Standalone reports - no need for delphi forms/datasets. 100% native Delhi code. All Delphi versions - from Delphi 6 to XE6 (VCL). 32/64 bit. Supports Unicode for...

any property to set to allow a subreport to always start on a new page???
Hi, can somebody help me out in this.i would like few subreports of my main report to start on a new page.Is there any property that can be set on subreports or do we need to write code for this so that it always starts on a new page...if so let me know about it plz. Thanks, saira You can put every subreport on new section and mention for it start with new page. (you can also write formula for this condition) hi, i have been doing the same thing ..i mean keeping the subreports under a new section ....but i dont find the property of starting it with a new page....i have onl...

Print a 2 page report on both sides of a page
Hi, Management has come up with a 2 page report that they want to print on both sides of a single piece of paper. They are going to buy a printer that will automatically cycle to the second side. All of the data will be on the front page and statements of rights and obligations ( all text, no database involvement) will be on the second page. I presume I'll need 2 dataobjects, the second with a piece of dummy information that will be hidden. Does any one have an idea as to how to implement this printing methodology. We're using PowerBuilder 7.0 and MSSQL Sever 2000 Th...

How to set properties from content pages to master pages
My naviagation controls are created on the master page with home button image set to visible=false. On all of my pages except the default.aspx page I want to set it to visible=true. When I try to script this on the masterpage I'm not sure how to keep my string in scope. I thought I could just set a string imagebutton1on and set this to on. On the child page I was trying public partial class Resume : System.Web.UI.Page { string Imagebuttonone; protected void Page_Load(object sender, EventArgs e) { Imagebuttonone = "on"; } } On the master page I was trying some lo...

sum page transferred to new page #2
Hi everyone i have a multiple sheets each one has in the footer the sum of the page, i want to ask if there is a way to transfer the page sum to another sheet , please advice the appropriate way if possible thanks in advance Could you clarify what you mean by "Sheets"? I'm not familiar with the term in the Infomaker context. Or i meant by sheets that i have a volume of database that generates more than one sheet when presented, (when makeing the form u put the titles under the header while the database under the detail so it keeps on generating sheets until ...

New to Master Pages, unsure about what to set as Start Page
This is my first experience with Master Pages and I must say that I really like the concept of it.  I have run into one small problem though, and I'm not sure if I am just going about it all wrong conceptually, or just missing something.  So far, I have a .Master page, it has a few <div> tags and 2 contentPlaceHolders.  One is a header cph and the other is a body cph.  I have two Web Content Forms that are associated with the Master page, one is a header form and the other is a body form.  The cph tags are matched correctly between the master and children ...

Master Page
I am using a master page for a website (Vs 2008) . I am facing two problems - 1. In the Login page, I am hiding the logout hyperlink. After the user logs in successfully , I'm setting the visibility of the logout hyperlink to true. But then, when I navigate to another page, the logout button disappears -  forcing me to redo setting the visibility in every page. 2. I have a similar problem with an Image in the page too. When I change the image in the content page after login, it reverts back to the existing image in the master page ( this I guess is because the master page loads...

Best way for content page to set a property on its master page?
I'm confused by all the different options.. what is the best way for content page to set a property on its master page?  For example, I have google ads displayed by the master page, but I want the content page to set a variable to indicate the google channel for the ads on that page. Hey,Each content page has a MasterPage property, which you can convert to your appropriate master page type.Brian"Trust in the Lord and do what is good; dwell in the land and live securely. Take delight in the Lord, and He will give you your heart's desires" (Psalm 37: 3-4)....

Set Label.Text property from aspx page with an object property
Hello, i would like to set a label text property with an object property. Neither this (or DateTime.Now.ToString()) is working: <asp:Label ID="temp" runat="server" Text='<%=Session("ActiveProfileId") Is Nothing%>' /> If you want to set this when the page loads, then you should do this in the page load event: <script runat="server">  void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { Label1.Text = DateTime.Now.ToLongDateString(); } }</sc...

Nested Reports
Hi All, Does anyone know how to add a pagebreak between 2 pre-defined nested reports ---------------------------------------------------------------- Introductory information ... ... ... ================================ = Nested report retrieving some date = ================================ <---- I want to insert a page break here. ================================ = List of services for the report = ================================ ---------------------------------------------------...

how could I set RssSqlDataSource url property to accept its url property from querystring of the other page?
Hi, I use RssSqlDataSource in my page. I want to know how can I set it Url property to receive its url from the other page querystring. Thanks alot. Sepid You cant get the querystring from another page.If you want to pass data between pages then you will have to either store the information in the Session, User Profile, or a database table.If you mistyped your question and you want to grab the url from the current querystring then you can do it with the following code:  // if a ID param isnt present on the querystring - redirect if (!String.IsNullOrEmp...

Web resources about - Set New Page property on GroupHeader in FastReport #2 - embarcadero.delphi.reporting

Arduino - AllRecentChanges
Main.Buy . . . June 26, 2012, at 10:15 AM by Davide Gomba ? : Reference.SoftwareSerialRead . . . May 25, 2012, at 09:48 AM by Tom Igoe ? : T ...

electro-music.com wiki - Albums / Recent Changes
Dedicated to experimental electro-acoustic and electronic music Recent Changes - Search : Contents Articles Photo Albums Pro Tips Radio Schematics ...

Building An Online Magazine App For Windows 8, Part 1: The HTML5 App
... for Windows 8 apps . Below are a few sample declarations. @media screen and (-ms-view-state: snapped) { .groupdetailpage .itemslist .win-groupheader ...

Windows Phone 8 XAML LongListSelector
... Name= "PhotoHubLLS" Margin= "13,-30,0,0" ItemsSource= "{Binding GroupedPhotos}" ItemTemplate= "{StaticResource ItemTemplate}" GroupHeaderTemplate= ...

Glowa Jordan River: Page Text Variables
If you want a GroupHeader, GroupFooter, SideBar, etc to call on page text variable in the main page, you need to include special reference information. ...

LyX wiki - Field / Groups
Go to page: AboutListPages AboutPersonalPages AboutSideBar AboutThisSite AboutUploading AccessKeys AddingMaterial AllRecentChanges AllRecentChangesOld ...

PmWiki - PITS / RecentChanges
01288 . . . June 20, 2012, at 10:45 PM by abone : 01287 . . . May 25, 2012, at 08:42 AM by Petko : Closed - replied 01176 . . . May 01, 2012, ...

AllRecentChanges - Your Sinclair: A Celebration
Main.News . . . March 01, 2014, at 09:46 PM by Chris : Fix news sort and c.s.s RSS feed url (+11) Main.LoveInAColdClimate2 . . . February 14, ...

Articles / Recent Changes
Dedicated to experimental electro-acoustic and electronic music Recent Changes - Search : Contents Articles Photo Albums Pro Tips Radio Schematics ...

electro-music.com wiki - Radio / Recent Changes
Dedicated to experimental electro-acoustic and electronic music Recent Changes - Search : Contents Articles Photo Albums Pro Tips Radio Program ...

Resources last updated: 12/15/2015 8:41:33 AM