Print without print
The subject seems crazy, but it's exactly what I want to do.
I have a Report that is used only to calculate the height I'll use in
the footer of other Report.
I'm setting the values using the SpaceUsed properties of the components,
I get the values in the OnAfterGenerate of the HeaderBand of this
"useless" Report, but using this aproach it's Preview Form is shown and
the user need to close it...
Is there any way of generate a report without show preview form and
without send it to other device?
Regards.
Mauro.
I have a Report that is used only to calculate the height I'll use in
the footer of other Report.
I'm setting the values using the SpaceUsed properties of the components,
I get the values in the OnAfterGenerate of the HeaderBand of this
"useless" Report, but using this aproach it's Preview Form is shown and
the user need to close it...
Is there any way of generate a report without show preview form and
without send it to other device?
Regards.
Mauro.
This discussion has been closed.
Comments
Yes, this is possible by connecting a generic TppDevice to your report then
calling PrintToDevices.
var
lDevice: TppDevice;
begin
lDevice := TppDevice.Create(nil);
lDevice.Publisher := ppReport1.Publisher;
ppReport1.PrintToDevices;
end;
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com