PrintToDevices and OnGetAutoSearchValues
Hello,
I am using PrintToDevices to generate report output
in a background process (no user interaction).
Unfortunatly PrintToDevices doesn't call the OnGetAutoSearchValues
event, which
we need.
How can I achieve this behaviour? I figured out something like
the following code:
aDevice := TcpArchiveDevice.Create(NIL);
aDevice.Publisher := aReport.Publisher;
aDevice.PageSetting := psAll;
aDevice.Active := True;
aReport.SendEventNotify(aReport, ciReportBeforeAutoSearchDialogCreate,
NIL);
aReport.SendEventNotify(aReport, ciReportGetAutoSearchValues, NIL);
aReport.PrintToDevices;
I want to know if this is OK or if there is a better solution.
Thanks
Frank Neuhaus
CPA SoftwareConsult GmbH
I am using PrintToDevices to generate report output
in a background process (no user interaction).
Unfortunatly PrintToDevices doesn't call the OnGetAutoSearchValues
event, which
we need.
How can I achieve this behaviour? I figured out something like
the following code:
aDevice := TcpArchiveDevice.Create(NIL);
aDevice.Publisher := aReport.Publisher;
aDevice.PageSetting := psAll;
aDevice.Active := True;
aReport.SendEventNotify(aReport, ciReportBeforeAutoSearchDialogCreate,
NIL);
aReport.SendEventNotify(aReport, ciReportGetAutoSearchValues, NIL);
aReport.PrintToDevices;
I want to know if this is OK or if there is a better solution.
Thanks
Frank Neuhaus
CPA SoftwareConsult GmbH
This discussion has been closed.
Comments
This looks like it should work without problem.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com