ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Print functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
iPrintingNation (Function)
In french: iNationImpression
Modifies the current language for the next print (programmed print or report print).
WINDEV The display language of the print preview is not modified.
Example
// Print a report in Spanish
iPrintingNation(nationSpanish)
iPrintReport(Invoice)
// Programmed print in Italian
iPrintingNation(nationItalian)
iPrintWord("<<<multilingual text with flag>>>")
iEndPrinting()
Syntax
iPrintingNation(<Nation> [, <Charset> [, <Language> [, <Sub-language> [, <Sort mode>]]]])
<Nation>: Integer constant
Nation to use. For more details on these constants, see Correspondence between languages, sub-languages, character sets and nations.
<Charset>: Optional Integer constant
Character set to use:
charsetAnsiRoman characters in ANSI standard
charsetArabicArabic characters
charsetBalticBaltic characters
charsetChineseChinese characters (People's Republic of China)
charsetDefaultUses the computer's default character set. No character set is forced.
charsetEastEuropeEastern European characters (Polish, etc.)
charsetGreekGreek characters
charsetHebrewHebrew characters
charsetJapaneseJapanese characters
charsetKoreanKorean characters
charsetMacMac Roman character set (used in previous versions of Macintosh).
charsetOccidentalRoman characters in ANSI standard
charsetRussianRussian characters
charsetThaiThai characters
charsetTraditionalChineseTraditional Chinese characters (Republic of Taiwan)
charsetTurkishTurkish characters
charsetUTF8Used to manage the countries with two character sets (Hong Kong) and the countries with no character set defined in Windows (Georgian and Armenian).
charsetVietnameseVietnamese characters

If this parameter is not specified, the character set associated by default to the country is used.
<Language>: Optional Integer constant
Language to use. For more details on these constants, see Correspondence between languages, sub-languages, character sets and nations.
This language must correspond to the specified <Charset> parameter. Otherwise, a WLanguage error will occur.
This parameter is used to manage the specific features of each country.
If this parameter is not specified, the language associated by default to the country is used.
<Sub-language>: Optional integer
Sub-language to use. For more details on sub-languages, see Correspondence between languages, sub-languages, character sets and nations.
This sub-language must correspond to the specified <Charset> parameter. Otherwise, a WLanguage error will occur.
This parameter is used to manage the specific features of each country.
If this parameter is not specified, the sub-language associated by default to the country is used.
<Sort mode>: Optional integer
New sort mode to use. Only the following sort modes are available. This parameter is not available for the other languages.
LanguageSort mode
ConstantValueSortValue
languageGerman7Standard0
Directory1
languageChinese4Phonetic0
Unicode1
Stroke count order2
Bopomofo standard3
languageKorean18KSC0
Unicode1
languageGeorgian55Standard0
Modern1
languageHungarian14Standard0
Technical1
languageJapanese17XJIS0
Unicode1
Remarks
  • The nation used for printing corresponds to the <Nation> parameter when iPrintingNation is called. This nation is used until a print end function is called (for example, iEndPrinting, iPrintReport or iSequencingPrint).
  • If Nation is called during the print, the nation initially specified by iPrintingNation is abandoned: the print goes back to the nation specified by Nation. In this case:
    • the text of the reports remains in the language specified with iPrintingNation.
    • the multilingual strings are displayed in the language specified with Nation.
  • iPrintingNation also allows you to modify the nation used for a group of reports (iGroupAdd, iGroupPrint, iGroupConfigure).
Business / UI classification: Neutral code
Component: wd300vm.dll
See also
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help