This method fixes a bug in .NET 1.0/1.1 (not sure about 2.0) method PageSettings.CopyToHdevmode: it copies PaperSize.Height/Width (which are in 1/100 of an inch) to devmode's dmPaperLength/Width (which are in 1/10 mm) "as is", w/out converting the values. This *sometimes* results in printout being cut off at width/height times 2.54.

Namespace:  C1.C1PrintDocument
Assembly:  C1.C1PrintDocument.Classic.2 (in C1.C1PrintDocument.Classic.2.dll)

Syntax

C#
public static void MergePageToPrinterSettings(
	PrinterSettings target,
	PageSettings source
)
Visual Basic (Declaration)
Public Shared Sub MergePageToPrinterSettings ( _
	target As PrinterSettings, _
	source As PageSettings _
)

Parameters

target
Type: System.Drawing.Printing..::.PrinterSettings
PrinterSettings to which the page settings are to be merged.
source
Type: System.Drawing.Printing..::.PageSettings
PageSettings to be merged into PrinterSettings.

See Also