Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

HP LaserJet 5000, Printing on different Bins

edited January 2005 in General
D7, RB 7.04.

Hello,

One of my users prints on a HP Laserjet 5000 (Series PCL 6).
He wants to print the first page of the report on Bin 1 and the others on
Bin 2.
His PrinterDriver is configured for Bin 1 with the C4-Paperformat and Bin 2
with A4.

My Application loads the template (designed for A4), then i set the
PrinterName, the PaperName if Endless-Paper is used and the BinName. Then i
print the report. In the OnStartPage-Eventhandler i change the Bin for the
second page with the Report.Engine.Page.PrinterSetup.BinName command. This
works, but not for his HP 5000.
All pages goes to Bin 2 or if he set PaperName to C4 all pages goes to Bin
1.

This printer ignores the BinName-Command. It seems to be that the printer
has some kind of paperformat-recognition. If he configures his PrinterDriver
with no special Paperformat he gets a Message on the Printer Display which
Bin should be used.

What can i do? Is it possible to change the PaperName in the
OnStartPage-Eventhandler? I think, not. I don't want to create two
Printjobs.

PS: I installed the driver and ReportBuilder lists some Binnames with a
beginning space ("Default", " Fach 1", " Fach 2",... ) . Can this be the
reason why i can not control the bins?

J?rgen

Comments

  • edited January 2005
    Hi Jurgen,

    How are you selecting the bin name? It seems that your printer driver for
    the HP5000 is not picking up on the name you are giving it. Instead of
    setting in directly, choose the correct bin name using the
    PrinterSetup.BinNames list. For instance...

    ppReport1.PrinterSetup.BinName := ppReport1.PrinterSetup.BinNames[3];

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited January 2005
    Hi Nico,

    I think, i do so. I choose the BinName from the PrinterSetup.BinNames list.
    The Objectinspector offers the same names with a leading space.

    Do you have any other idea for me?

    What's about to change the Papername in the OnStartPage-Eventhandler?
  • edited January 2005
    Hi Jurgen,

    Changing the paper name may work for your specific printer but I'm unsure
    this will work for every printer you use this application with. Perhaps try
    removing the leading space from the bin name and see if that helps.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited January 2005
    I can't annoy the new user with additional Printtests anymore, i did it the
    last 2 weeks.

    I think, removing the leading space will not work.
    RB looks up the driver internal Bin Number by the listed BinName (Unit
    ppPrintr).
    If i delete the leading space, RB will not find the correct Bin Number for
    the Printjob and it will take the default Bin number. Is that correct?

    Perhaps you can tell the programmer of my problem?
  • edited January 2005
    Hi Jurgen,

    I am one of the software developers at Digital Metaphors, all of our support
    is handled by our engineers :).

    I have seen this problem before with the leading space but it was concluded
    that it is not a ReportBuilder issue. ReportBuilder uses the
    "DeviceCapabilities" Windows API call to retrieve the bin names from the
    printer driver. If you are getting a leading space, then this is simply the
    bin name your printer driver is producing. From what you describe, it
    sounds like ReportBuilder cannot find the correct bin name when you leave
    the leading space in therefor it is printing to the originally set bin.
    This is why I suggested removing the leading space and testing with that. I
    am not sure this will work but it is probably worth a try.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited January 2005
    Hi Nico,

    First thank you very much for the support. Your team is fantastic.

    We did some testing.
    Removing the leading space did not help inRB.
    And you are right, the leading space is not from RB, the driver produce it,
    but that's what i thougt.

    Do you have any other idea for me what we can do with this damn printer?
    I don't know what to test anymore.

    Thank's
    J?rgen


  • edited January 2005
    Hi Jurgen,

    Sorry for the delay in this response. Somehow my news reader lost your
    thread. Are you ever able to print to a different bin using the printer in
    question? For instance, are you able to simply manually change the bin name
    in RB and print to that bin? If so, then the bin names must be working in
    some cases. If you still cannot get this working, you may need to work
    around the issue by creating two separate print jobs and sending the proper
    pages to each one. For an example of this see demo 124 located in the
    \RBuilder\Demos\1. Reports\... directory.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.