This example illustrates how to make all reports "page-sensitive" (page size, margin sizes, etc.), and to anchor controls to top and left sides like regular WinForms controls do. To accomplish this task, it's required to handle the PrintingSystem.AfterMarginsChange and PrintingSystem.PageSettingsChanged events, and change the width and location of controls according to the current page settings.
See also: How to dynamically size an image to make it fit into the entire page client area
↧
How to anchor controls to the top-right side when document margins are changed in the Print Preview
↧