Objective Grid: Restricting printing to one page

Article ID: 29
Last updated: 05 Jan, 2012
Article ID: 29
Last updated: 05 Jan, 2012
Revision: 1
Views: 1884
Posted: 12 Jan, 2001
by Meltreger B.
Updated: 05 Jan, 2012
by Meltreger B.
Problem

I want to restrict the grid to one page when printing irrespective of the number of columns and rows.


Cause




Action

Take a look at the Fit To Page sample. The sample provides a mode for printing the whole grid on a single page. Changing the mapping mode of the device context does scaling.

The scaling factor is calculated in OnBeginPrinting(). The printing is done in OnPrint(). The mapping mode is set with DoPrepareDC().

Please note that headers and footers will not be zoomed. Only the grid area will be drawn with a different mapping mode.


This article was:   Helpful | Not helpful
Report an issue
Article ID: 29
Last updated: 05 Jan, 2012
Revision: 1
Views: 1884
Posted: 12 Jan, 2001 by Meltreger B.
Updated: 05 Jan, 2012 by Meltreger B.

Others in this category