how to can directly printing whitout dialog box?

edited 11:15PM in FastReport 3.0
whitout dialog box.
how can select the printer for the d5 program?

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 11:15PM
    typically
    frxreport1.Printoptions.printer := integer;
    which is the indexvalue of printer in printerslist
  • edited 11:15PM
    Hi,

    I use this code:

    if frxReport1.PrepareReport then begin
    frxReport1.PrintOptions.ShowDialog := False;
    frxReport1.Print;
    end;


    Regards.
  • edited 11:15PM
    ok. i set this parameters, but i see the dialog box.

    DataModule1.Query1.Active:=true; <this is the data
    form1.frxReport3.LoadFromFile('dmeai.fr3'); <<this is the report file
    if Form1.frxReport3.PrepareReport then
    begin
    Form1.frxreport3.Printoptions.printer := Edit4.text; <first try strtoint(edit4.text) but not good
    form1.frxReport3.PrintOptions.ShowDialog := False;
    form1.frxReport3.Print;
    end;

    i not use any frx****.pas file from source directory? this is the problem?
  • edited 11:15PM
    up
  • edited 11:15PM
    ???

Leave a Comment