I'm trying to have a localized pagination in the footer of all my pages in my print preview. I set my paging this way :
var PageOfPages = "[Page # of Pages #]";
//On n'a pas vraiment le choix de faire ça pour que ça fonctionne dans les différentes langues... :
//http://www.devexpress.com/Support/Center/p/CQ48170.aspx
switch (CultureManager.GetInstance().TwoLetterISOCultureName)
{
case "fr":
PageOfPages = "[Page # de pages #]";
break;
case "es":
PageOfPages = "[Página # de Páginas #]";
break;
}
var PageHeaderArea = new PageHeaderArea();
PageHeaderArea.Content.AddRange(new[] { "", "", "[Image 0]" });
var HeaderFooter = (PageHeaderFooter)LinkBase.PageHeaderFooter;
HeaderFooter = new PageHeaderFooter(
PageHeaderArea,
new PageFooterArea(new[] { dateString, "", PageOfPages }, SystemFonts.DefaultFont, BrickAlignment.Far)
);
It works in english, but not in french or spanish. Tried with XtraPrinting Resources dll too.