How to send crystal report by mail

SOLVED

We have a report file that is generats a PDF and we need to send it by mail once it was generated.

Documentation says that we can use "REPORT" entry point to do that.

After some tests, we see that "REPORT" subroutine is called before the report file is generated not after. Are we missing something?

Is there any event / entry point triggered after the file was really generated?

Thanks

Parents Reply
  • 0 in reply to Israel Braunfeld

    1) Already did that, unfortunately 15 seconds is not enough for some of our PDF

    2) Already did that, unfortunately the file is there quickly (if you check existence), but it is still writing, so if you send it it will be incomplete. You can also imagine to check the file size, but this is variable, so not really a solution

    The only way we found for now is : run a batch that generates PDFs and then, one or few hours later run a batch that sends files. But this has other inconvenients as you need to keep track of file names and oher information

    It woud be much easier and reliable if a specific event would be triggerd when the file completes.

Children