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

PrintControl.DockManager Property

Provides access to the DockManager, specifying the settings of dock panels in Print Preview.

Namespace: DevExpress.XtraPrinting.Control

Assembly: DevExpress.XtraPrinting.v24.2.dll

NuGet Package: DevExpress.Win.Printing

#Declaration

[Browsable(false)]
public DockManager DockManager { get; }

#Property Value

Type Description
DockManager

A DockManager object.

#Example

This example demonstrates how dock panels can be obtained in a report’s preview via the PrintControl.DockManager property.

XtraReport1 report = new XtraReport1();
report.CreateDocument();
ReportPrintTool tool = new ReportPrintTool(report);
tool.PreviewForm.Shown += PreviewForm_Shown;
// ...

void PreviewForm_Shown(object sender, EventArgs e) {
    PrintPreviewFormEx previewForm = sender as PrintPreviewFormEx;
    DevExpress.XtraBars.Docking.DockPanel paramsPanel = previewForm.PrintControl.DockManager[1];
}
See Also