Change string diplayed in TppSystemVariable
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
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
This discussion has been closed.
Comments
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
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
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