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

saving printer settings

edited February 2009 in General
Hi,

My clients use standard RTM-files ( which my application loads from file) ,
but they would like to be able to save their printersettings.
How can I do that ?

Is there a method "saveprintersettings" saving the selected printer and bin
in the user RTM-file at runtime ?
Or can I save the settings in separate files ?

Greatings

Leon

Comments

  • edited February 2009


    RB 11 introduces features to support saving printer specific settings with
    the .rtm or to a separate file or stream.

    // display printer's built-in dialog to allow use to configure printer
    specific features
    // this can be invoked from the Designer's object inspector by
    // selecting the Report.PrinterSetup property and expanding it

    myReport.PrinterSetup.EditDeviceSettings;

    // boolean property to save the DeviceSettings with the report definition
    // automatically set to true, when the dialog above is used

    myReport.PrinterSetup.SaveDeviceSettings := True;


    // save and load DeviceSettings file

    myReport.PrinterSetup.SaveDeviceSetingsToFile(aFileName);
    myReport.PrinterSetup.LoadDeviceSettingsFromFile(aFileName);

    // save and load DeviceSettings stream

    myReport.PrinterSetup.SaveDeviceSettingsFromStream(aStream);
    myReport.PrinterSetup.LoadDeviceSettingsFromStream(aStream);


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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited February 2009
    Is there also a way for the blob storing way?

    Thanks, Olaf
  • edited February 2009


    I do not understand what you are asking.

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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited February 2009
    Oh, it was a question without thinking before.
    I canel the question.

    Thanks, Olaf
This discussion has been closed.