Skip to main content
A newer version of this page is available. .

PrintingSettings.UseGdiPlusLineBreakAlgorithm Property

Specifies whether to use the GDI+ line break algorithm when a report is exported to PDF.

Namespace: DevExpress.XtraPrinting.Native

Assembly: DevExpress.Printing.v20.2.Core.dll

NuGet Packages: DevExpress.Printing.Core, DevExpress.WindowsDesktop.Printing.Core

Declaration

public static bool UseGdiPlusLineBreakAlgorithm { get; set; }

Property Value

Type Default Description
Boolean false

true, to use the GDI+ line break algorithm; false, otherwise.

Remarks

A reporting application uses the Windows GDI+ API to draw the Print Preview. The PDF export engine utilizes another API to generate a PDF file from a report. The two APIs use different line break algorithms. If you use Chinese, Japanese, or Korean characters in a report, line breaks might be displayed differently in the Print Preview and in the exported PDF file.

To avoid inconsistent line breaks between the Print Preview and the exported PDF file, set the UseGdiPlusLineBreakAlgorithm property to true to use the GDI+ line break algorithm when a report is exported to PDF.

See Also