user449504
user449504

Reputation: 1

print label multiple times based on value

for example if label count is 3 in database, the label should be printed 3 times in the report.

Upvotes: 0

Views: 1206

Answers (2)

Ondoy Piodsk'y
Ondoy Piodsk'y

Reputation: 17

i think you must not use label . use Row , Datagridrow to show ur data in crystal report .

    For Each dr As DataGridViewRow In Me.dgvDefaultItem.Rows
    dt.Rows.Add(dr.Cells("count").Value)

Next

Upvotes: 0

Beth
Beth

Reputation: 9607

Don't try to do this in Crystal, do it on the back end (or an intermediate back end if you can't modify the one you have).

Explode each row with its label count into the number of rows you want in a temp table, or something, then build the report off that datasource.

Upvotes: 2

Related Questions