How can we set locale while exporting XLSX to PDF?

Thread link:

My current locale is Russian. Errors and boolean values in XLSX document are shown as:

#ПУСТО! ИСТИНА
#ДЕЛ/0! ЛОЖЬ
#ЗНАЧ!
#ССЫЛКА!
#ИМЯ?
#ЧИСЛО!

After exporting to PDF via Aspose all values are in English: TRUE, FALSE, etc.
How can we set the appropriate locale when exporting to PDF?

Thanks in advance,
Ivan Sherov


This Topic is created by Amjad_Sahi using the Email to Topic plugin.

@ivan.sherov,

We are pleased to inform you that your issue (logged earlier as “CELLSNET-45437”) is sorted out now. We will soon provide you the fix (hopefully in the next few (2-5) days or so) after performing QA and incorporating other enhancements and fixes.

Thank you.

@sherov

Thanks for using Aspose APIs.

Please download and try the following fix (follow the description of the fix as given below) and it should fix your issue.

C#

From 17.6.2, user may use extra settings like:

workbook.Settings.GlobalizationSettings = new RaGlobalization();
…
class RaGlobalization : GlobalizationSettings
{
	public override string GetBooleanValueString(bool bv)
	{
		return bv ? "ЛОЖЬ" : "ИСТИНА";
	}

	public override string GetErrorValueString(string err)
	{
		switch (err.ToUpper())
		{
			case "#NAME?":
			{
				return "#ИМЯ?";
			}
			…
}

The issues you have found earlier (filed as CELLSNET-45437) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by Amjad_Sahi

The issues you have found earlier (filed as CELLSNET-45437) have been fixed in this update.