Returns default paper size based on current system locale.
This function uses the same strategy as Add Printer Wizard in
choosing of default page size, that is returns value based
on LOCALE_SYSTEM_DEFAULT LCID.
Implementation notes: this function first attempt to retrieve size
using GetLocaleInfo WinApi function, which must succeed on 2000/XP
systems. If this attempt failed then it retrieves region descriptor
and returns size based on its own knowledge.
Namespace:
C1.C1PrintDocument.UtilAssembly: C1.C1PrintDocument.Classic.2 (in C1.C1PrintDocument.Classic.2.dll)
Syntax
C# |
---|
public static PaperSize GetCurrentLocaleDefaultPaperSize() |
Visual Basic (Declaration) |
---|
Public Shared Function GetCurrentLocaleDefaultPaperSize As PaperSize |