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

Can I Hide AllowPrintToFile, E-Mail Setting and PDfSettings in the designer?

edited March 2006 in End User
ReportBuilder 10.02
Delphi 6 Update Pack 2

Hi,

I've just upgraded to RB10 from 7.02 and I have a new problem because of the
object inspector in the designer.
It's a wonderfull thing, but it opens the report to the user so he can
override all the properties of the report.
If I want the user to design the report, but I don't want him to change
AllowPrintToFile, E-Mail Settings and PDfSettings I cannot.
Is it true?

In a End User solution how can I prevent the user to change these
properties?
Is it possible to Hide them in the object inspector?

Thank you in advance.
Massimiliano Trezzi

Comments

  • edited March 2006

    -----------------------------------------------------------------
    Tech Tip: Hide Object Inspector Properties
    -----------------------------------------------------------------

    Question:
    ----------
    How can I prevent the Report Designer Object Inspector from displaying
    specific properties to my end-users?


    Solution
    ---------
    The following example shows how to access the 'User Interface' property
    category and remove the 'EmailSettings' property name.

    Example:

    uses
    ppInspector;


    var
    lPropertyCategory: TppPropertyCategory;
    liIndex: Integer;
    begin

    // get the property category
    lPropertyCategory :=
    TppPropertyCategoryManager.PropertyCategories.ItemByName['User Interface'];

    // find the property name
    liIndex := lPropertyCategory.PropertyNames.IndexOf('EmailSettings');

    // delete the property name
    lPropertyCategory.PropertyNames.Delete(liIndex);

    end;



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.