Applies to: ABC and legacy report procedures; the thread names no Clarion version (posted in 2008).
Problem
A small procedure asks the user for the number of copies, stores it in a global variable, and then sets PRINTER{PROPPRINT:Copies} = Glo:Copies. That works. But every other report that does not use this procedure now also prints that many copies: the last value set stays in force. The poster wanted to set PRINTER{PROPPRINT:Copies} = 1 again before leaving the report procedure and asked which embed to use.
Solution
- In an ABC report procedure, put the reset in
ThisWindow.Kill. For a legacy report, put it in the ProcedureReturn routine. - In the ABC report procedure the poster could not find an embed with that name, only several Kill embeds. Turn on the Legacy Embed button in the embed tree and the embeds get plainer names, so the right one is easier to see.
- The poster then found the place by reading the generated source and said he would use it there. He also said the
%ProcessManagerMethodCodeSectionKill embed seemed to work.
Caveats
- The thread does not say which embed finally went into the poster's report, only that both seemed to work.
- Resetting at the end leaves the old value in force if the procedure is left by a path that skips that code.
- The setting is a property of the printer, so it carries across procedures until something changes it.
Today (2026)
Likely unchanged: the property keeps its last value, and resetting it when the report ends is a plain fix. Not re-tested.
Sources: Earl C. (Mar 2008, the question), Lee W., Dan S., Paul H. (Mar 2008) in softvelocity.clarion.reports.