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

Form Icon in Print Preview?

edited September 2016 in General
Hi Team,

Can this icon be changed? The closest I seem to get is PreviewFormSettings in TppReport, but no icon Property..

Regards & TIA,
Ian

Comments

  • edited September 2016
    Hi Ian,

    The Report.Icon property can be used to specify an icon for the preview
    form.



    Best regards,

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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited September 2016
    Hi Nard,
    Yes it does when using the Preview Form via the end user example however it doesn't if you print within the program.

    e.g.
    ReportsFrm.ReportForm.ppRE1.LoadReport('Job Report', 0);
    ReportsFrm.ReportForm.ppR1.ShowAutoSearchDialog := False;
    ReportsFrm.ReportForm.ppR1.AutoSearchFields[0].SearchExpression := Vault.ReadString('Job No', '0');
    ReportsFrm.ReportForm.ppR1.Print;

    In this case the preview window does not inherit the icon as set in ppReport1.

    If you are referring to the Design window in the design phase, under "Properties fo Report|User Interface|Icon", that
    doesn't allow me to change it.

    Regards,
    Ian
  • edited September 2016
    Hi Ian,

    When loading a report template from database or file, then the saved
    properties are used.

    Options:

    1. After loading the report, set the Report.Icon property

    or

    2. Open the report in the Designer and assign the Icon property, then save.




    Best regards,

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


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited September 2016
    Hi Nard,

    Thank you for your response.

    1. works fine but it means distributing the .ico with the App.
    ReportsFrm.ReportForm.ppRE1.LoadReport('Job Report', 0);
    ReportsFrm.ReportForm.ppR1.Icon.LoadFromFile('DBWorkflow.ico');

    2. Presumably this is under "Properties for Report|User Interface|Icon"? As previously indicated, this property
    doesn't allow me to access/change it. Any way, it is not something I would want the Customer/End User to think/worry
    abaoy. They won't.


    Suggestion - In TppReport, if the Properties under "PreviewFormSettings" are referring to the same Print Preview
    Dialog, can the Icon property be added to there. It becomes a once only setting for the App then as the .ico would be
    part of the App resources.

    Regards and tks for the support.
    Ian



This discussion has been closed.