`
Par2: Conditional Print Preview in Clarion templates 2000-01-21 -- Maarten Veenstra Hmm... It's a bit more difficult in C5-legacy since there *is* an embed before the preview statement but not after: ! Start of "After Opening Report" ! [Priority 5000] ! End of "After Opening Report" report{Prop:Preview} = PrintPreviewImage OF Event:Timer LOOP RecordsPerCycle TIMES ! Start of "Before Lookups" ! [Priority 5000] ! End of "Before Lookups" So, I suggest that you enter OMIT('!_UseCondPrev_') in the "After Opening Report" - embed and in the "Before Lookups" - embed you put: --- Embed-Code starts here ! ----> !_UseCondPrev_ IF MyCondition report{Prop:Preview} = PrintPreviewImage END OF Event:Timer LOOP RecordsPerCycle TIMES --- Embed-Code stops here ! ----< As you see I've copied a part of the template code because it is OMITted out this way. Printed November 23, 2024, 2:18 am This article has been viewed/printed 35311 times. |