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

Printer Control

edited November 2005 in Devices
I have a customer with a XEROX doucment center and there is two
functions he want to control during printing...
Select Paper from different Trays
Send a command to say staple the current pages.
Do you think this is possible without a modification to report builder ?

If not the solutuon I was looking at it to write a new component for
reportbuilder which should encapsulate the specific printer driver
functions to do this, what do you think about this ?
Is it feasible ?
Is there an easier way to provide the necessary functions ?

But basically the result would be to have RAP function that I could then
call on function of the data content.

Many thanks
Sandy



--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited November 2005
    Hi Sandy,

    -------------------------------------------------
    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 contain 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 theoritically 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

    Best Regards,

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