Print Copies, different Bins, with&without Background

dschuchdschuch Dresden,Germany
edited 7:34PM in FastReport 4.0
Hy,

1) is there a way, to print copies on different bins?
2) is there a way, to hide an image/logo, if we print multiple copies?

Our Customer wants to print an invoice 3 times, once with background, one without. So they use a printer with different bins. Bin 1 has a Preprinted paper with there customer logo, bin 2 without.

we found this post that has a bit the same topic:
http://www.fast-report.com/en/forum/index....mp;hl=copy+name

---

currently we solve this with a onw printform and a hacked class:
TfrxHackedPrinter = class(TObject)
  private
    FBin: Integer;
  public
    property Bin: Integer read FBin write FBin;
  end;

and the following code:
If PrtDlg.bin_copie_2.Checked then begin
   TfrxHackedPrinter(frxPrinters.Printer).Bin:=bin;
   TfrxPreview(frxReport1.Preview).Print;//Drucken aus Vorschau
end;

But perhaps there is a build in way to do this.

As a plus we need to Hide the Logo (the element has the name "logo" inside fastreport), on copie 2.

Comments

  • edited 7:34PM
    dschuch wrote: »
    Hy,

    1) is there a way, to print copies on different bins?
    2) is there a way, to hide an image/logo, if we print multiple copies?

    Our Customer wants to print an invoice 3 times, once with background, one without. So they use a printer with different bins. Bin 1 has a Preprinted paper with there customer logo, bin 2 without.

    we found this post that has a bit the same topic:
    http://www.fast-report.com/en/forum/index....mp;hl=copy+name

    ---

    currently we solve this with a onw printform and a hacked class:
    TfrxHackedPrinter = class(TObject)
      private
        FBin: Integer;
      public
        property Bin: Integer read FBin write FBin;
      end;
    

    and the following code:
    If PrtDlg.bin_copie_2.Checked then begin
       TfrxHackedPrinter(frxPrinters.Printer).Bin:=bin;
       TfrxPreview(frxReport1.Preview).Print;//Drucken aus Vorschau
    end;
    

    But perhaps there is a build in way to do this.

    As a plus we need to Hide the Logo (the element has the name "logo" inside fastreport), on copie 2.

    Use several printers connected to the same port with different settings is the easy way [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> In the beforeprint you can set the visible property to enable/disable the logo print TfrxMemoView(frxReport.FindObject('Logo')).Visible := False;[/img]
  • dschuchdschuch Dresden,Germany
    edited 7:34PM
    Andreetje wrote: »
    Use several printers connected to the same port with different settings is the easy way [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> In the beforeprint you can set the visible property to enable/disable the logo print TfrxMemoView(frxReport.FindObject('Logo')).Visible := False;[/img]


    hy, thats not working, because the event is called only once. so this is possible for the first copie, not for the second, nor?

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.