Reputation: 461
So I have attached a picture of my app below. What I have is a Winforms C# app where the user can generate a barcode. He enters the parameters on the left, clicks Generate, and the Crystal Report is shown on the right with the barcode in a 4x12 format. I created the report template manually, i.e added Blob fields on the report in the positions I wanted through trial and error, and when the user clicks generate, it simply passes the image to the report.
I plan on adding a facility where the user can choose which slots on the report to actually generate an image, because perhaps he doesn't want to print 48 barcodes at a time. So maybe a checkboxes or something where the user will determine at runtime how the report will generate.
So my question is, what is the best way to do this? I was thinking of passing a list of the desired slots to the report as a parameter, and hiding or suppressing the fields depending on the list, but I don't know how to do this. My Crystal reports knowledge isn't the greatest. I only found ways to suppress data in cases of duplicate data, but I have a somewhat unique case where there isn't much info out there.
Upvotes: 1
Views: 5122
Reputation: 190
to suppress an item using some condition I do it as follow:
an example of mine: (?official is a parameter I sent)
IF {?Official} = true THEN
true
ELSE
false
Upvotes: 4