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

Access violation.

edited September 2009 in End User
Hi!

I get some AV in the previewform. It occurs when i move the mousepointer
over some of the buttons. Seems to have something to do with the hints. We
use Localizer from Korzh for languagesupport in our applications, but i am
not able to localize the hints. Is there a way i can turn of the ShowHint in
the previewform?

Best regards,
Terje

Comments

  • edited September 2009
    ReportBuilder contains built-in international language support.

    http://www.digital-metaphors.com/rbWiki/General/International_Support

    I do not recommend using the Localizer tool on the ReportBuilder strings.



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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited September 2009
    I have excluded the ReportBuilder units from localizing but still get the
    error. As a temporary solution i would like to turn off the hints in the
    preview-window so that our customers can use this application. Is there a
    way to do this?

    Regards, Terje


  • edited September 2009


    I recommend looking at the source code to ppPreview.pas. The LanguageChanged
    method contains the code that loads the Hint strings.

    To turn off the hints, set the Toolbar.ShowHint to False.

    uses
    ppPrvDlg;

    procedure TForm1.ppReport1PreviewFormCreate(Sender: TObject);
    begin

    TppPrintPreview(ppReport1.PreviewForm).Toolbar.ShowHint := False;

    end;


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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited November 2009
    Hi!

    Due to other tasks this last month i have not tried this until now. And i
    still get AV when i attempt to use one of the buttons in preview. I found
    that the OnPreviewFormCreate event never occurs so my attempt to turn off
    the hint never happens. Any idea why this event never fires?


    Regards, Terje

  • edited November 2009

    One option is to load each report definition, assign the event-handler
    reference and then re-save the report definition.

    Another option is use to use the Report.Template.OnLoadEnd event to assign
    the event-handler reference programmatically.For an example of this see
    RBuilder\Demos\EndUser\Report Explorer.



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

    Best regards,

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