how to call request form when click print button

hanthant Member Posts: 115
Dear all,

I have a report that have some parameters need to be filled when printed into hardcopy. But before printing, user need to review all information first (without parameter information) to make sure the information correct. I get stuck on trigger print action to call the request form. Whenerver I quit the preview report, the request form appear and require input information. Do you have any idea about this? Pls. advise.

Thanks,

Ha

Comments

  • ufukufuk Member Posts: 514
    Why do you want the report work this way? User can enter the required info then click the print button. I didn't understand the reason.
    Ufuk Asci
    Pargesoft
  • hanthant Member Posts: 115
    Hi,

    The information is non-financial information such as name of prepared person or pre-defined number that printed in the hardcopy. This information will be updated into the database after printed.

    Thanks,

    Ha
  • ufukufuk Member Posts: 514
    You can call the report and the form to enter information in a codeunit. In the report add a function (IsPreview) which returns the PREVIEW property.
    Rprt.RUNMODAL;
    IF NOT Rprt.IsPreview THEN BEGIN
      COMMIT;
      FORM.RUNMODAL(1);
    END;
    

    Is that appropriate for your requirement?
    Ufuk Asci
    Pargesoft
Sign In or Register to comment.