Unfortunately, I think there's no way it would have to post the entire program for that. It turns out that I am developing a program that reads DBF files exported by another program and from these DBFs I view various reports.
The access component Tdbf called DadosEsp. The component is called LazReport RelEsp. I have a button on the form that prints the form. Basically after specifying the required data such as: Name of the report, and others use the following code:
DadosEsp.PrepareReport RelEsp.PrintPreparedReport then if ('1 ', 1);
I've tried changing the value ('1 ', 1) for other values but it keeps printing only the first page, even putting eg ('100', 1).
Absolutely no way to solve this, but until now could not. Thanks to all who respond.