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 3:54PM
    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

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.