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;

Comments

  • SamuraySamuray Administrator
    edited 8:19AM
    procedure PrintPreparedReport(PageNumbers: String; Copies: Integer;
    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);

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.