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

Translating reports

edited January 2003 in General
I HAVE A ROUTINE WHICH TRANSLATES ALL MY FORMS ON LOAD ACCORDING TO AN END
USER'S CHOSEN LANGUAGE. I WISH TO RUN REPORTS (AND INDEED THE REPORT
DESIGNER FORM) THROUGH THIS ROUTINE WHEN THE REPORT OR DESIGNER IS LOADED. I
CANNOT SEE WHERE TO PLACE THE ROUTINE. IN MY OWN FORMS THE ROUTINE GOES IN
FORM CREATE AND IT LOOKS FOR ALL INSTANCES OF PROPERTIES LIKE CAPTION, TEXT,
STRINGS, ETC AND PASSES THEM THROUGH A TRANSLATION PROCESS.

I WON'T BE ABLE TO USE RB'S TRANSLATERS BECAUSE THE END USER CAN EDIT THE
TRANSLATIONS AT ANY TIME, EFFECTIVELY CREATING CUSTOM LANGUAGES AND ALSO
BEING ABLE TO AMEND ERRORS IN REAL LANGUAGE TRANSLATIONS.

ANY HELP WOULD BE MOST GRATEFULLY RECEIVED.

JONATHAN HYAMS

Comments

  • edited January 2003
    Hi Jonathan,

    you must have a problem with the caps lock key!
    Sorry but I see no way to take control over the resource manager (see unit 'ppUtils', 'ppResourceManager').

    regards,
    Chris Ueberall;
  • edited January 2003
    Yes sorry about the caps - it was because I was typing one-handed while
    doing something else and seemed easier in caps!!

    OK, so you can't take over the resource manager, but is there any event I
    can hook into before preview or before print which will give me the
    opportunity to translate any texts?

    And also what about the Designer? Isn't that effectively a form? If so I
    should be able to run it through my routine,no?

    Jonathan Hyams

  • edited January 2003
    Jonathan,

    did you try the 'TppDesigner.OnCreate' and/or the 'TppReport.OnPreviewFormCreate' event?

    regards,
    Chris Ueberall;
This discussion has been closed.