Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
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 November 21, 2024, 7:24 am This article has been viewed 35308 times.
|
|