Printer Setup Dialog classname

I would like to show the printer setup dialogform when the user clicks a button (same dialogform as FR shows when you enable the "ShowDialog" property in the PrintOptions of frxReport).

Does anybody know the classname of this form?

Tks

Comments

  • gpigpi
    edited 11:39AM
    SavePrintOptions := TfrxPrintOptions.Create;
      SavePrintOptions.Assign(Report.PrintOptions);
      DuplexMode := Report.PrintOptions.Duplex;
      Report.SelectPrinter;
    
      if Report.PrintOptions.ShowDialog then
        with TfrxPrintDialog.Create(Application) do
        begin
          AReport := Report;
          ADuplexMode := DuplexMode;
          ShowModal;
          if ModalResult = mrOk then
          begin
            DuplexMode := ADuplexMode;
            Report.PrintOptions.Duplex := DuplexMode;
            Free;
          end
          else
          begin
            Free;
            FCopyNo := 0;
            Result := False;
            SavePrintOptions.Free;
            Exit;
          end;
        end;
    
  • edited July 2015
    it works!

    thank you very much!

Leave a Comment