Crystal Reports - Check for specific record in grouped detail records and suppress image in Group Header if present -
using crystal reports bundled visual studio.net 2003 in old .net 1.1 app
i have invoice report detail records showing each item on invoice. report uses 1 dataset , grouping detail records rather sub report.
anyway in main part of invoice have image needs visible if detail record id "pnp2" present.
so imagine in format editor of image ole object, can write code against suppress method - think somehow need loop detail records check each value maybe there better way...
can help?
wing
this should work, assuming image in group-header section.
create formula:
// {@is_pnp2} if not(isnull({table.id})) , {table.id}="pnp2" 1 else 0
add following image's conditional-suppression logic:
sum({@is_pnp2},{table.grouped_field})>0
Comments
Post a Comment