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

Setting the Paper Type

edited June 2006 in Devices
Hello Everyone. I have a printer that is multi-purpose. When I send a
specific job to it, I need the printer to set something called a fuser mode
to high. Apparently when pirnting on specially treated paper, the ink bonds
with the paper better. I can do this fuser mode setup within the printer by
telling it that preprinted forms always use the high mode. No problem
there. When I send the job to the printer thru the tppreport, how can I set
the paper type? Is paper type the same thing as papername? I noticed that
tppreport.setup.papername has a drop-down list, but does not contain the
types recognized by my printer. Do I override this in code, like
tppreport.printersetup.papername:= 'PREPRINTED'?

Thanks in Advance!
Debbie

Comments

  • edited June 2006
    Hi Debbie,

    The Paper Names are retrieved by the Windows API from your printer driver.
    I believe the Paper Type is a feature specific to the printer you are using.

    -------------------------------------------------
    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 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.