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

Change string diplayed in TppSystemVariable

edited March 2006 in General
Hi,

In my report I have a TppSystemVariable in the footer band and the VarType
property is set to vtPageSetDesc. When I print the report, the report shows
'Pagina X de Y' but in some reports I need print 'Folha X de Y'. How can I
do this??

Thanks,


--
Weverton Gomes de Morais
Programador
Goi?nia/GO

Comments

  • edited March 2006

    This is controlled via the Report.Language property.

    TppSystemVariable is defined in ppVar.pas, the method
    TppSystemVariable.GetStandardValue calls a utility function,
    ppFormatVarValue, that is defined in ppUtils.pas. The ppFormatVarValue uses
    the ppResourceManager to load the string resource.




    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited March 2006
    Hi,

    But, can I change this string just in some cases?? e.g.: I need print
    'Folha' for clients living in 3 states. For all other clients I need pring
    'P?gina'.

    Thanks,

    --
    Weverton Gomes de Morais
    Programador
    Goi?nia/GO
  • edited March 2006


    You can set the Report.Language property after loading the report
    definition. That would enable you to specify the language that is being
    used. Note, that this will modify the language being used for RB user
    interface and the TppSystemVariable.

    The other option is to create your own TmySystemVariable component. You can
    probably just descend from TppSystemVariable.





    Best regards,

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