1 write to printDocument
System.Workflow.ComponentModel (1)
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (1)
115
this.
printDocument
= workflowView.PrintDocument as WorkflowPrintDocument;
73 references to printDocument
System.Workflow.ComponentModel (73)
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (73)
119
this.adjustToScaleInput.Value = this.
printDocument
.PageSetupData.ScaleFactor;
120
this.fitToPagesWideInput.Value = this.
printDocument
.PageSetupData.PagesWide;
121
this.fitToPagesTallInput.Value = this.
printDocument
.PageSetupData.PagesTall;
124
if (this.
printDocument
.PageSetupData.AdjustToScaleFactor)
130
if (this.
printDocument
.PageSetupData.Landscape)
136
SetMarginsToUI(this.
printDocument
.PageSetupData.Margins);
139
this.CenterHorizontallyCheckBox.Checked = this.
printDocument
.PageSetupData.CenterHorizontally;
140
this.CenterVerticallyCheckBox.Checked = this.
printDocument
.PageSetupData.CenterVertically;
166
string userHeader = this.
printDocument
.PageSetupData.HeaderTemplate;
167
this.headerCustom = this.
printDocument
.PageSetupData.HeaderCustom;
189
if (this.headerAlignmentComboBox.Items.IndexOf(this.
printDocument
.PageSetupData.HeaderAlignment) != -1)
190
this.headerAlignmentComboBox.SelectedItem = this.
printDocument
.PageSetupData.HeaderAlignment;
194
this.headerMarginInput.Value = PrinterUnitToUIUnit(this.
printDocument
.PageSetupData.HeaderMargin);
202
string userFooter = this.
printDocument
.PageSetupData.FooterTemplate;
203
this.footerCustom = this.
printDocument
.PageSetupData.FooterCustom;
225
if (this.footerAlignmentComboBox.Items.IndexOf(this.
printDocument
.PageSetupData.FooterAlignment) != -1)
226
this.footerAlignmentComboBox.SelectedItem = this.
printDocument
.PageSetupData.FooterAlignment;
230
this.footerMarginInput.Value = PrinterUnitToUIUnit(this.
printDocument
.PageSetupData.FooterMargin);
964
this.
printDocument
.PageSetupData.AdjustToScaleFactor = this.adjustToRadioButton.Checked;
966
this.
printDocument
.PageSetupData.ScaleFactor = (int)this.adjustToScaleInput.Value;
967
this.
printDocument
.PageSetupData.PagesWide = (int)this.fitToPagesWideInput.Value;
968
this.
printDocument
.PageSetupData.PagesTall = (int)this.fitToPagesTallInput.Value;
971
this.
printDocument
.PageSetupData.Landscape = this.landscapeRadioButton.Checked;
972
this.
printDocument
.PageSetupData.Margins = margins;
975
this.
printDocument
.PageSetupData.CenterHorizontally = this.CenterHorizontallyCheckBox.Checked;
976
this.
printDocument
.PageSetupData.CenterVertically = this.CenterVerticallyCheckBox.Checked;
980
this.
printDocument
.PageSetupData.HeaderTemplate = string.Empty;
983
this.
printDocument
.PageSetupData.HeaderTemplate = this.headerTextComboBox.Text;
985
this.
printDocument
.PageSetupData.HeaderTemplate = this.customHeaderText.Text;
986
this.
printDocument
.PageSetupData.HeaderCustom = this.headerCustom;
987
this.
printDocument
.PageSetupData.HeaderAlignment = (HorizontalAlignment)this.headerAlignmentComboBox.SelectedItem;
988
this.
printDocument
.PageSetupData.HeaderMargin = UIUnitToPrinterUnit(this.headerMarginInput.Value);
992
this.
printDocument
.PageSetupData.FooterTemplate = string.Empty;
995
this.
printDocument
.PageSetupData.FooterTemplate = this.footerTextComboBox.Text;
997
this.
printDocument
.PageSetupData.FooterTemplate = this.customFooterText.Text;
998
this.
printDocument
.PageSetupData.FooterCustom = this.footerCustom;
999
this.
printDocument
.PageSetupData.FooterAlignment = (HorizontalAlignment)this.footerAlignmentComboBox.SelectedItem;
1000
this.
printDocument
.PageSetupData.FooterMargin = UIUnitToPrinterUnit(this.footerMarginInput.Value);
1006
this.
printDocument
.DefaultPageSettings.PaperSize = (PaperSize)this.paperSizeComboBox.SelectedItem;
1010
this.
printDocument
.DefaultPageSettings.PaperSource = (PaperSource)this.paperSourceComboBox.SelectedItem;
1012
this.
printDocument
.DefaultPageSettings.Landscape = this.
printDocument
.PageSetupData.Landscape;
1013
this.
printDocument
.DefaultPageSettings.Margins = margins;
1016
this.
printDocument
.PrinterSettings.DefaultPageSettings.PaperSize = this.
printDocument
.DefaultPageSettings.PaperSize;
1017
this.
printDocument
.PrinterSettings.DefaultPageSettings.PaperSource = this.
printDocument
.DefaultPageSettings.PaperSource;
1018
this.
printDocument
.PrinterSettings.DefaultPageSettings.Landscape = this.
printDocument
.PageSetupData.Landscape;
1019
this.
printDocument
.PrinterSettings.DefaultPageSettings.Margins = margins;
1022
this.
printDocument
.PageSetupData.StorePropertiesToRegistry();
1031
printDialog.Document = this.
printDocument
;
1036
this.
printDocument
.PrinterSettings = printDialog.PrinterSettings;
1037
this.
printDocument
.DefaultPageSettings = printDialog.Document.DefaultPageSettings;
1039
if (this.
printDocument
.DefaultPageSettings.Landscape)
1046
this.
printDocument
.Print();
1073
physicalPageSize = this.
printDocument
.DefaultPageSettings.Bounds.Size;
1143
PrinterSettings.PaperSizeCollection paperSizeCollection = this.
printDocument
.PrinterSettings.PaperSizes;
1144
PrinterSettings.PaperSourceCollection paperSourceCollection = this.
printDocument
.PrinterSettings.PaperSources;
1154
this.
printDocument
.DefaultPageSettings.PaperSize.Kind == paperSize.Kind &&
1155
this.
printDocument
.DefaultPageSettings.PaperSize.Width == paperSize.Width &&
1156
this.
printDocument
.DefaultPageSettings.PaperSize.Height == paperSize.Height)
1159
this.
printDocument
.DefaultPageSettings.PaperSize = paperSize;
1166
PaperKind paperKind = this.
printDocument
.DefaultPageSettings.PaperSize.Kind;
1168
this.
printDocument
.DefaultPageSettings = new PageSettings(this.
printDocument
.PrinterSettings);
1173
this.
printDocument
.DefaultPageSettings.PaperSize.Width == paperSize.Width &&
1174
this.
printDocument
.DefaultPageSettings.PaperSize.Height == paperSize.Height)
1177
this.
printDocument
.DefaultPageSettings.PaperSize = paperSize;
1186
this.
printDocument
.DefaultPageSettings.PaperSize = this.paperSizeComboBox.SelectedItem as PaperSize;
1197
this.
printDocument
.DefaultPageSettings.PaperSource.Kind == paperSource.Kind &&
1198
this.
printDocument
.DefaultPageSettings.PaperSource.SourceName == paperSource.SourceName)
1206
this.
printDocument
.DefaultPageSettings.PaperSource = this.paperSourceComboBox.SelectedItem as PaperSource;