Skip to main content

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.v24.1.Core.dll

NuGet Package: DevExpress.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