error: list index out of bound (-1)

hi

i try to use pdf export. i put the component on my form. it also contain a button to make an export to pdf. i use this procedure

procedure TfRepInvoice.btnExportClick(Sender: TObject);
begin
frxReport1.Export(frxPDFExport1);
end;

when i hit the button why it's raise error: list index out of bound (-1)? and try to find it. finnaly i found it. the report must be view first so that i can export with hit the button. i want to ask how to export without viewing the report fisrt just hit the button and it will not show thar error again? please give advise.

thank's

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 2:18AM
    call prepare report first.
    read the programmers manual on working with the report component
    ;)

Leave a Comment