Filipe Martins
Filipe Martins

Reputation: 608

How to generate a new print job for each page - FastReports

I'm using FastReports to generate tags. I have 1600 different tags (pages) to print but if it happens any problem during the printing , I lose all my progress.

So I want to know if there is any way to generate a different print job for each page (tag), so 1600 different print jobs are submitted.

Upvotes: 0

Views: 1842

Answers (1)

Marc Guillot
Marc Guillot

Reputation: 6465

I understand that you want a different print job for every page (tags), isn't that ?.

I would remove the MasterData of your report, so the report doesn't loop automatically through every record of your dataset, just showing the active record. And then code a loop for the dataset, preparing and sending the report to the printer on each row (tag), so it would send a different print job with a single page every time.

Basically you just put your current code within a loop so it's executed once per every record, and remove the masterdata so it only shows the current record.

Upvotes: 1

Related Questions