blank pages

edited 7:00PM in FastReport 4.0
I have the MasterData band and the DetailData band.
If the DataSet is connected with DetailData band and if it doesn't return any results, FastReport ends the creation of document
even the band MasterData doesn't yet reached the end of the DataSet.

If PrintIdDetailEmpty option is 'true', then it does not stop printing, but it creates a blank pages every time when DataSet is
connected with DetailData band doesn't return any results.

But,I don't want these blank pages.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 7:00PM
    please when you want help tell us what version number and build no of fr you are using.
    you have a band property with a wrong setting in your report.
    if you can place a sample demo in the binaries news group and ill take a look at it.
  • edited 7:00PM
    i posted a sample source code to binaries news group with topic "blank pages"...
    please have a look at it.

    thank you in advance

    P.S. I'm using Delphi XE and FR 4.10.8 version
  • gpigpi
    edited 7:00PM
    Try to set MasterData1.StartNewPage to False and set ADOQuery2.Master to ADOQuery1
  • edited January 2011
    when I set ADOQuery2.Master ADOQuery1 I got an error:
    operation is not available when the object is closed.

    P.S. AdoQuery1 is open.
  • gpigpi
    edited 7:00PM
    And comment your code
    procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
    begin
       //AdoQuery2.Close;
       //AdoQuery2.Open;       
    end;
    
  • edited 7:00PM
    It doesn't help.
    Any other suggestions ?
  • gpigpi
    edited 7:00PM
    No other suggestions
    See a small sample in attach - all works OK
  • edited 7:00PM
    Your sample works fine for me, but my sample doesn't.

    You use db1.mdb file, I use SQL Query to MSSQL database.
    Maybe this is the reason ?

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.