How to count number of printing

I have problem in how to count number of printing in a document, for example, If a user only preview, the printing does not count, but if a user push the Print button, it will count one, and if a user push the Print button again, it will count two, so on a report will show how many a document have been printed, Thank for helping me[:(]

hi, you can use in every report the command: OnPostDataItem() IF NOT CurrReport.PREVIEW THEN VerkDruckZähler.RUN(Verkaufskopf); It’s the german version of navision 2.60; ‘VerkDruckZähler’ is the codeunit 313; Thomas