[印刷プレビュー]ダイアログボックスは、ドキュメントを印刷する前に各ページのレイアウトをカスタマイズして表示するために使用されます。
[印刷プレビュー]ダイアログボックスをアクセスするには
GanttView ツールバーの[印刷]ボタンをクリックし、次に[Print dialog]ダイアログボックスで[プレビュー]ボタンをクリックします。
[印刷プレビュー]ダイアログボックスが次の図のように表示されます。
The Following table describes different groups of commands present in the print preview ribbon:
Component | Description |
---|---|
|
The Report group has following buttons:
|
|
The Page group has following buttons:
|
|
The Navigation group has following buttons:
|
|
The Zoom group has following buttons:
|
|
The Tools group has following buttons:
|
The Quick Access Toolbar's dropdown menu has following options:
|
You can also customize the Print Preview dialog in GanttView applications. The PrintInfo class provides the PreviewHelper property for this purpose. For instance, if you do not want to show the Open button in the Print Preview Dialog of GanttView application, you can simply set the visibility of that button to false.
This is depicted in the code snippet below:
C# |
Copy Code
|
---|---|
private void ganttView_BeforePrintPreview(object sender, CancelEventArgs e) { if (ganttView.PrintInfo.PreviewHelper.C1PrintPreviewDialog is C1.Win.RibbonPreview.C1RibbonPreviewDialog) (ganttView.PrintInfo.PreviewHelper.C1PrintPreviewDialog as C1.Win.RibbonPreview.C1RibbonPreviewDialog).RibbonElements.FileOpen.Visible = false; } |
We have set the visibility of the button for File open action to false using the PreviewHelper property.
The visibility can be changed at design time via the Properties window as well.