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

Print Dialog - Print To File

edited June 2011 in Devices
Hello,

In the Report Print Dialog, is there a way to limit the file type choices in
the Print To File - Type dropdown?

Thank you,
Mike Malinowski

Comments

  • edited June 2011
    Here is the link to an rbWiki article with details on how to remove export
    formats...

    http://www.digital-metaphors.com/rbWiki/Output/Overview/Removing_Formats


    -
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited June 2011
    Nard,

    I appreciate the guidance, but have to ask for addtional information If I
    attempt to pass TppDeviceTypes to ppUnRegisterDevice(TppArchiveFileDevice)
    or ppUnRegisterDevice(TppReportTextFileDevice) both of which appear in the
    dropdown I receive a Delphi compiler error of undeclared identifier.
    ppTypes and ppDevice are incuded in the uses clause.

    Thank you,
    Mike Malinowski

  • edited June 2011
    Add ppFileDev to the 'uses' clause of your unit.

    Here are a couple of options for determining in what unit a class is
    defined.

    1. Access the Delphi help system, type TppReportTextFileDevice to bring up
    the topic for the classs. The topic has the unit name listed.

    2. A technique we use daily here in searching against our own large code
    base and in searching against the VCL source is to use the Delphi "Find in
    Files" utility. From the Delphi IDE, select Search | Find in Files and then
    set the directory to RBuilder\Source and then type in a key word. (Once you
    define a few directories the dialog remembers them, so it is very fast/easy
    to use).



    -
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited June 2011
    Nard,

    Thank you. I added ppFilDev to the uses clause. Unfortunately we are
    currently waiting on approval of a purchase order for 3 copies of RB12
    Professional. I am currently using the evaluation version without source
    code for ppFilDev. Could you please steer me to the device class names for
    the other devices in the dropdown I am trying to unregister/hide. I tried to
    send an attachment of the devices drop down but was unsuccessful. They are
    BMP, DOC, GIF, JPG, Metafile, PNG, RTF, XLSData, XLSReport. I only require
    PDF and Text Files to be available.

    Thank you,
    Mike Malinowski

  • edited June 2011
    All of the image devices are located in the ppImageDevice unit.

    TppBMPDevice
    TppMetafileDevice
    TppGIFDevice
    TppJPGDevice
    TppPNGDevice

    The TppRTFDevice and TppDOCDevice are found in the ppRTFDevice unit.

    The TppXLSDataDevice and TppXLSReportDevice are in the ppXLSDevice unit.


    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2011
    Thank you very much for specifying the units. As luck would have it, we
    received our full RB12 Pro installations last evening.

    Mike Malinowski

This discussion has been closed.