Fastreport change page.bin NOT work

edited 1:05PM in FastReport 4.0
Hello!

I have a report with 2 page. I MUST print 1st page to bin 1 (paper tray 1), 2nd page to bin 2 (paper tray 2).
Printer: Kyocrea FS4200DN KX. connected to my computer thru USB port.

I writre my program in Delphi 7, using FastReport 4.12.
Code:

TfrxReportPage(frxReportCsekk.Pages[1]).Bin := Prg.Talca_1; // Prg.Talca_1 = 14
TfrxReportPage(frxReportCsekk.Pages[1]).BinOtherPages := Prg.Talca_1;
TfrxReportPage(frxReportCsekk.Pages[2]).Bin := Prg.Talca_2; // Prg.Talca_1 = 3
TfrxReportPage(frxReportCsekk.Pages[2]).BinOtherPages := Prg.Talca_2;
frxReportCsekk.PrepareReport(j=1);

I run my exe in my laptop (win7 32 bit) and it work fine from my computer! Program change paper tray as i need.
I copy my exe into target computer (win7 32 bit), run, but NOT change paper tray! (Printer connected thru USB)

frxReport.StoreInDFM = False, and i load report from file, before i make print.

Any suggestion, please?

Can tell me everyone, what prerequerement to use FastReport?

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 1:05PM
    "I copy my exe into target computer (win7 32 bit), run, but NOT change paper tray! (Printer connected thru USB)"
    Have you set the reqired permissions for win 7 for the program?
  • edited 1:05PM
    gordk wrote: »
    "I copy my exe into target computer (win7 32 bit), run, but NOT change paper tray! (Printer connected thru USB)"
    Have you set the reqired permissions for win 7 for the program?

    Yes!

    All rights OK!
  • gordkgordk St.Catherines On. Canada.
    edited 1:05PM
    when things work ok on one system and not on another you must look for differences between systems.
    was report designed for default printer or specific printer.
    is the other system using same make/model of printer, check printer driver also, are they same version
  • edited 1:05PM
    gordk wrote: »
    when things work ok on one system and not on another you must look for differences between systems.
    was report designed for default printer or specific printer.
    is the other system using same make/model of printer, check printer driver also, are they same version

    Thanks, gordk, for tipps!

    I found, what is the problem!
    As i say before, my *.fr3 i load before i make my print work.
    I have Page1 and Page2 in my report.
    I set up in Page1 -> Tray1=14, Tray2=3 and after save it. I got this line:
    <TfrxReportPage Name="Page1" Tag="1" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="0" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="5" RightMargin="5" TopMargin="5" BottomMargin="5" ColumnWidth="0" ColumnPositions.Text="" Bin="14" BinOtherPages="3" TitleBeforeHeader="False" HGuides.Text="" VGuides.Text="">

    Bin="14" BinOtherPages="3" MUST BE present in *.fr3 file and NOW ALL WORK FINE!
    If not Bin="14" BinOtherPages="3" present in *.fr3, the code, that change Printer Tray, DO NOT WORK!

    THATS ALL!

    Again, many thanks for answers!

    P.S.
    A do not understand, why work on my laptop, when NO Bin=... in *.fr3...
    Now ALL OK, both on my laptop, and both on target pc!

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.