Automatically printing multiple reports
Hi
I have a dbgrid which has a checkbox to select or deselect (multiple) rows. If the row is selected then the report should print automatically and a specified number of copies. I can't get it to print the reports.
WHAT SHOULD THE LINE IN CAPS BE PLEASE?
while not table1.eof do
begin
if table1print.value = true then
begin
if table1copies.value <> 0 then
begin
frreport1.preparereport;
frreport1.defaultcopies := table1copies.value;
frreport1.doublepass := true;
FRREPORT1.PrintPreparedReport ???????????;
end;
end;
table1a.next;
end;
end;
I have a dbgrid which has a checkbox to select or deselect (multiple) rows. If the row is selected then the report should print automatically and a specified number of copies. I can't get it to print the reports.
WHAT SHOULD THE LINE IN CAPS BE PLEASE?
while not table1.eof do
begin
if table1print.value = true then
begin
if table1copies.value <> 0 then
begin
frreport1.preparereport;
frreport1.defaultcopies := table1copies.value;
frreport1.doublepass := true;
FRREPORT1.PrintPreparedReport ???????????;
end;
end;
table1a.next;
end;
end;
Comments
Collate: Boolean; PrintPages: TfrPrintPages);
PageNumbers: clear for all pages, 1-3 for pages from 1 to 3 etc.
Copies: number of copies
Collate: true if collate
PrintPages: frAll - all pages, frOdd - odd pages, frEven - even pages
example:
frReport1.PrintPreparedReport('', 1, true, frAll);