Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Reports hangs when no data.

edited April 2007 in General
After we upgraded the RB version to 10.06 with Delphi 7, reports which do
not have any data are just hanging. Its stops at the point where we call
"PrintTODevices"
Our setting is as follows :
MyppReport.NoDataBehaviors := [ndBlankReport, ndMessageOnPage];

Please let me know if anything else needs to be changed.

Thanks,
Vikram

PS : Sorry for the repost.
--

Comments

  • edited April 2007
    Hi Vikram,

    This is not a known issue. In my testing with a no-data report and the same
    settings you have below, I was able to see the non-data aware components as
    well as the message on the report. Below is the code I used...

    procedure TForm1.Button1Click(Sender: TObject);
    var
    lPDFDevice: TppPDFDevice;
    begin
    lPDFDevice := TppPDFDevice.Create(nil);
    lPDFDevice.Publisher := ppReport1.Publisher;
    lPDFDevice.FileName := ppReport1.TextFileName;

    ppReport1.PrintToDevices;
    end;

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2007
    Actually, we tracked it down to something in our code. But we don't know how
    it worked with the previous versions of RB.
    Works fine now.

    Thanks!!
    Vikram

This discussion has been closed.