Have a look at the article "Selecting Paper Bins for Each Page" in the Printer section of the Tech-Tips newsgroup to see if that gets you the info you need.
-- Robert Leahey TeamDM (not an employee of Digital Metaphors)
I have tried setting the BinName property at design-time and at run-time and it still is not working. The report still outputs to the default tray. If it helps, the printer is a HP LaserJet 8100 DN.
When setting the BinName property, be sure to use one of the entries in the Report.PrinterSetup.BinNames StringList. This way you can be sure you are assigning a valid available bin.
At Design-time, I set the report's DeviceType to the printer, in the PrinterSetup, I set the PrinterName to the appropriate printer (it is also my default printer) and then select the BinName from the list provided . I then run the report. The paper is coming from the desired paper source but is not going to the desired destination tray. Also, the list in the BinName list are of paper sources and not paper destinations.
Sorry, I did not realize you were trying to change the output bin. ReportBuilder uses the Windows API to communicate with your printer driver. The output bin is a printer specific feature that is not included in the DeviceCapabilities structure of the Windows API. It may be possible to control this feature as we have had other customers successfully implement printer specific features such as a stapling function. See the following article for more information.
------------------------------------------------- Tech Tip: Configuring Printer Specific Options -------------------------------------------------
The Report.PrinterSetup properties can be used to set the properties that are common to all printers. Internally RB applies these to the Windows DevMode structure.
Report.PrinterSetup <----> Windows DevMode <-----> Printer Driver <---> Printer
Printers often contains additional features, such as output bins, media types, etc. The Windows DevMode structure can contain a private area that is used the printer driver to store printer specific options. These can be configured by using the Printer Driver's built-in properties dialog. These options can theoretically be set programmatically, the trick is that you have to know where in the structure to store the option and what values are valid.
The following example shows how to display the printer properties dialog and save the devmode for use within RB...
Comments
Have a look at the article "Selecting Paper Bins for Each Page" in the
Printer section of the Tech-Tips newsgroup to see if that gets you the info
you need.
--
Robert Leahey
TeamDM (not an employee of Digital Metaphors)
it still is not working. The report still outputs to the default tray. If
it helps, the printer is a HP LaserJet 8100 DN.
When setting the BinName property, be sure to use one of the entries in the
Report.PrinterSetup.BinNames StringList. This way you can be sure you are
assigning a valid available bin.
example...
Report.PrinterSetup.BinName := Report.PrinterSetup.BinNames[2];
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
PrinterSetup, I set the PrinterName to the appropriate printer (it is also
my default printer) and then select the BinName from the list provided . I
then run the report. The paper is coming from the desired paper source but
is not going to the desired destination tray. Also, the list in the BinName
list are of paper sources and not paper destinations.
Sorry, I did not realize you were trying to change the output bin.
ReportBuilder uses the Windows API to communicate with your printer driver.
The output bin is a printer specific feature that is not included in the
DeviceCapabilities structure of the Windows API. It may be possible to
control this feature as we have had other customers successfully implement
printer specific features such as a stapling function. See the following
article for more information.
-------------------------------------------------
Tech Tip: Configuring Printer Specific Options
-------------------------------------------------
The Report.PrinterSetup properties can be used to set the properties that
are common to all printers. Internally RB applies these to the Windows
DevMode structure.
Report.PrinterSetup <----> Windows DevMode <-----> Printer Driver <--->
Printer
Printers often contains additional features, such as output bins, media
types, etc. The Windows DevMode structure can contain a private area that is
used the printer driver to store printer specific options. These can be
configured by using the Printer Driver's built-in properties dialog. These
options can theoretically be set programmatically, the trick is that you
have to know where in the structure to store the option and what values are
valid.
The following example shows how to display the printer properties dialog and
save the devmode for use within RB...
http://www.digital-metaphors.com/tips/SavePrinterDevMode.zip
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com