Bug in frxPrinter.pas - setting Bin
Hi, there is a small bug, file frxPrinter.pas, procedure TfrxPrinter.SetPrintParams, line 766/767... Names "FBin" and "ABin" are swapped.
And there sould be simpler way just to set Bin, not by calling that procedure with many parameters.
And there sould be simpler way just to set Bin, not by calling that procedure with many parameters.
Comments
It was 4.6.current (not official). I think that I had same problem with 3.x too (in my old company) - so I don't except changes in frxPrinter.pas at all.
FastReports 4.7.5 - there is not any simple runtime way to set printer bin.
unit frxPrinter.pas, procedure TfrxPrinter.SetPrintParams
Corrent should be (in my opinion):
AND - please class TfrxCustomPrinter - property Bin: Integer - make it writable. It is really boring to getting and setting another 6 parameters that SetPrintParams needs to just set Bin.
I need to set bin runtime. It is nice that if I set bin in FRXDesigner then stored value is loaded and used correctly - but I really don't want copy each report with different printer Bin.
Yes, I know - this is ugly, but it is only working way to set Bin runtime in FastReports.
this code seems to be broken with the latest FR (tested with 4.13 as well as 4.14). In 4.10 everything is working fine.
Currently we are not sure, but it seems the native function doesn not work too.
frxPrinters.Printer.SetPrintParams
Can anyone confirm this?
We have a code like this:
FrxReport1.PrepareReport;
frxReport1.Print; //copie 1
TfrxHackedPrinter(frxPrinters.Printer).Bin:=bin;
frxReport1.Print; //copie 2 on another bin
Daniel.
There are only minor Changes in unit frxPrinter; Most of them are inside Compiler-conditions
procedure TfrxPrinter.SetPrintParams(APaperSize: Integer;
has some changes:
New:
Old:
In the new case, ABin is never assigned If ABin is initialized with sth <> DMBIN_AUTO
We will check out the reason.
Thanks for the hint.