blank pages

edited 4:49AM 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 4:49AM
    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 4:49AM
    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 4:49AM
    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 4:49AM
    And comment your code
    procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
    begin
       //AdoQuery2.Close;
       //AdoQuery2.Open;       
    end;
    
  • edited 4:49AM
    It doesn't help.
    Any other suggestions ?
  • gpigpi
    edited 4:49AM
    No other suggestions
    See a small sample in attach - all works OK
  • edited 4:49AM
    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