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 1:04AM
    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

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.