how to modify prepared report
Hi there !
I would like to know if there is a possibility to change the report before printing. I have to assign a certain number to a report but only if i can be sure that it's going to be printed. so it is not possible to assign the number before i show the preview. there has to be a follow up after pushing the print button ...
regards,
stefan
I would like to know if there is a possibility to change the report before printing. I have to assign a certain number to a report but only if i can be sure that it's going to be printed. so it is not possible to assign the number before i show the preview. there has to be a follow up after pushing the print button ...
regards,
stefan
Comments
use 2 report components, set one to use custom preview form, this will be the one you use to prepare and preview the report
write code for the print button of the custom preview, to set a variable value in delphi when clicked,and to close preview window rather than printing.
then when control is returned to delphi load report into second report object,
pass a value into report,prepare and print using printpreparedreport or printpreparedreportdlg.
regards