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

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 5:39AM
    yes you can this is a bit of a kludge but works
    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 ;)
  • edited 5:39AM
    gordk wrote:
    yes you can this is a bit of a kludge but works
    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 ;)
    thx for your reply !!

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.