Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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;
}
See Also