Generate Statistics Report using Macro

Hi all,

is there a way to generate a statistics report from within a macro?

In other words, I'd like to automate this dialog with the same settings:

Screenshot of a statistics report configuration window with options for selecting sources and target languages. 'Sum of all sources' is checked, and individual sources are listed below. In the 'Target languages' section, 'Sum of all languages' is checked with languages such as French, Polish, Portuguese (Brazil), Arabic, and German listed. A 'Start' button is visible to generate the report.

(Sum of all sources, but each language individually).

I was not able to find a respective Object neither in the Documentation reference, nor in the community. If it is not possible via macro, is there a different approach, for example using pslcmd?

Thanks a lot and best regards,



Generated Image Alt-Text
[edited by: RWS Community AI at 2:52 PM (GMT 0) on 14 Nov 2024]
emoji
Parents
  • Hi Dominic,

    there actually exist two acces points in the Object Model to statistics data:

    1) via the "PslTranslist" object you can call the method "GetStatistics" to get all statistics data of a single translation list (capsulated in a "PslStatistics" object, see below)

           example in C#: PslStatistics objTransListStatistics = objTransList.GetStatistics();

    2) via the "PslStatistics"´object you then get access to the specific statistical data like "AutoTranslated" or "Fuzzy95_99"

          example in C#: int intAutoTranslated = objStatistics.AutoTranslated.WordCount; 

    Should function the same way via a "Basic" macro. But actually requires some coding work to reach ones goals.

    Have also a look at "Issue with COM object "PslStatistics" in Passolo 2018 - 3. Object Model - Passolo - RWS Community".

    Regards

    Karl-Heinz

    emoji
Reply
  • Hi Dominic,

    there actually exist two acces points in the Object Model to statistics data:

    1) via the "PslTranslist" object you can call the method "GetStatistics" to get all statistics data of a single translation list (capsulated in a "PslStatistics" object, see below)

           example in C#: PslStatistics objTransListStatistics = objTransList.GetStatistics();

    2) via the "PslStatistics"´object you then get access to the specific statistical data like "AutoTranslated" or "Fuzzy95_99"

          example in C#: int intAutoTranslated = objStatistics.AutoTranslated.WordCount; 

    Should function the same way via a "Basic" macro. But actually requires some coding work to reach ones goals.

    Have also a look at "Issue with COM object "PslStatistics" in Passolo 2018 - 3. Object Model - Passolo - RWS Community".

    Regards

    Karl-Heinz

    emoji
Children