Показать сообщение отдельно
Старый 18.04.2003, 12:46   #6  
Alex_V is offline
Alex_V
Участник
 
159 / 10 (1) +
Регистрация: 19.02.2003
у самой первой таблицы Целое (CopyCycle) в триггере OnPostDataItem прописан код:
IF NOT CurrReport.PREVIEW THEN
PrintingCounter.RUN(Header);

в этом все и дело.

A typical situation where you would not want to perform some processing in preview mode is this:

In an application, a count of how many times a document has been printed is stored in the database. This number has to be updated from inside the report that is used to print the document.

TO AVOID UPDAITING THE NUMBER WHEN THE REPORT IS RUN IN PREVIEW MODE, USE A CONSTRUCT(аналогична нашему примеру) LIKE THE ONE ABOVE WHEN ADDING THE CODE THAT UPDATES THE COUNT.