How to: Change the Measurement System Exposed in the Print Preview

This example illustrates how to set the system of measurement exposed by the tooltips in a print preview that is shown when manually resizing a document’s margins.

The following methods toggle the measurement system from imperial to metric and vice versa, by switching the DocumentViewerBase.IsMetric property.

private void SetMillimeterMeasurement() {
    documentViewer1.IsMetric = true;
}

private void SetInchMeasurement() {
    documentViewer1.IsMetric = false;
}

Tip

A complete sample project is available in the DevExpress Code Examples database at https://supportcenter.devexpress.com/ticket/details/e62/how-to-change-measurement-units-in-print-preview-tooltips.

See Also