Reports hangs when no data.
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.
--
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.
--
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
it worked with the previous versions of RB.
Works fine now.
Thanks!!
Vikram