Exception EPrinter

BJLBJL Brussels, Belgium
The report appears Ok with ShowPreparedReport.
But, when pressing the Print button on the preview window, I get a message
"Exception class EPrinter ?«Printing on?» Process stopped.
"Printing on" is my translation of the French message "Impression en cours". The English message may be a little different.
It looks like the method try to create the printer object when it exists already.
I never had this with other reports.
I have tried to set RebuildPrinter to true in the frReport propreties, with no success.
Any help would be welcomed.

BJL

Comments

  • BJLBJL Brussels, Belgium
    edited 2:17AM
    I have solved the problem adding a printer Abort like this (in C++Builder6)

    frReport1->PrepareReport();
    if (Printer()->Printing)
    Printer()->Abort();
    frReport1->ShowPreparedReport();

    BJL

Leave a Comment