` Conditional Print Preview in Clarion templates (Maarten Veenstra ) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

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.


Today is April 26, 2024, 8:51 pm
This article has been viewed 35110 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: