Error: Printing in progress

I get the error: Printing in progress, after calling PrintPreparedReport. (The report is prepared).

The error will not occur every time, but very often.

Could anybody tell me why this error occurs and how I can solve it.

Comments

  • edited 6:50PM
    The problem is solved. The problem was not fast report but it was my own fault.

    On the form I use a timer that every X seconds the state of printer retrieves and set on the form.

    So because fast-report uses during printing Application.Processmessages, the timer will be handled during printing and then proparly delphi wants to open 2 times the same printer and will give this error.

    So before the print command to fast-report, I disbale the timer and when the printing is ready, I restart the timer.

    So problem is solved ;)

Leave a Comment