Setting BinName
Delphi5, RBPro 6.03, Win98se
I am unable to set the paper tray from which to print. I have a test project
that reflects the problem.
I am developing a process that is supposed to print to preprinted forms in
one printer tray, and letter-paper in a second tray. The main part of the
report prints to the preprinted forms. The detail rows prints to the main
form if the user has selected this option & the number of detail rows are
less than a user defined value. It can be printing over a network (currently
Novell or NT) or over a standard connection. Testing for bin switching was
performed on two different HP LaserJet 4si and two different HP LaserJet
5si, each over a network connection.
If the user selects otherwise, or if the number of detail rows exceeds the
user defined number of rows, all detail rows are printed to the letter paper
in the second tray.
How I was doing this is with two subreports in the detail band of the main
report. The first is the main report form detail line (pbChild,
ParentPrinterSetup = true); the second is the same as the first, but is
built to be it's own little report (pbSection, ParentPrintBehavior = false).
My first plan was to set the PrinterName in our standard way (default in
Object Inspector, set by user from a range of accessible printers at run
time). I would set in the Object Inspector the section style subreport to
BinName = 'Lower Tray' and the Main Report was BinName = 'UpperTray'. I
would control the printing of the section style subreport with it's
visibility property.
Everything printed out of a single tray. I beleive that regardless of what
the BinName was, the printer printed the document based on the size of the
paper, possibly something preset with the printer itself. Unacceptable. I
must be able to print to whatever tray regardless of the paper size.
Next, I took the example in the tech tips and set the BinName of the
TppChildReport to 'Lower Bin'. No joy.
Next, I took advice given in other posts about the same problem, and placed
the same code in OnEndPage of the Main report. No joy.
Your site mentions that RBPro would give me control over this type of
process, so here I am. As I mentioned, I have a test project that I would be
happy to send along on your word.
Thanks in advance!
I am unable to set the paper tray from which to print. I have a test project
that reflects the problem.
I am developing a process that is supposed to print to preprinted forms in
one printer tray, and letter-paper in a second tray. The main part of the
report prints to the preprinted forms. The detail rows prints to the main
form if the user has selected this option & the number of detail rows are
less than a user defined value. It can be printing over a network (currently
Novell or NT) or over a standard connection. Testing for bin switching was
performed on two different HP LaserJet 4si and two different HP LaserJet
5si, each over a network connection.
If the user selects otherwise, or if the number of detail rows exceeds the
user defined number of rows, all detail rows are printed to the letter paper
in the second tray.
How I was doing this is with two subreports in the detail band of the main
report. The first is the main report form detail line (pbChild,
ParentPrinterSetup = true); the second is the same as the first, but is
built to be it's own little report (pbSection, ParentPrintBehavior = false).
My first plan was to set the PrinterName in our standard way (default in
Object Inspector, set by user from a range of accessible printers at run
time). I would set in the Object Inspector the section style subreport to
BinName = 'Lower Tray' and the Main Report was BinName = 'UpperTray'. I
would control the printing of the section style subreport with it's
visibility property.
Everything printed out of a single tray. I beleive that regardless of what
the BinName was, the printer printed the document based on the size of the
paper, possibly something preset with the printer itself. Unacceptable. I
must be able to print to whatever tray regardless of the paper size.
Next, I took the example in the tech tips and set the BinName of the
TppChildReport to 'Lower Bin'. No joy.
Next, I took advice given in other posts about the same problem, and placed
the same code in OnEndPage of the Main report. No joy.
Your site mentions that RBPro would give me control over this type of
process, so here I am. As I mentioned, I have a test project that I would be
happy to send along on your word.
Thanks in advance!
This discussion has been closed.