FAQ/Questions/how-to-change-default-print-settings.md
... ...
@@ -0,0 +1,26 @@
1
+#How Do I change the Default Print Settings?
2
+
3
+To change the default print settings, you will need to modify the ``PreExecuteReportSet()`` method and set the related properties. The code sample below demonstrates how to accomplish this.
4
+
5
+```csharp
6
+public override void PreExecuteReportSet(ReportSet reportSet)
7
+{
8
+ reportSet.PageWidth = 8.27f;
9
+ reportSet.PageHeight = 11.69f;
10
+ reportSet.OutputAreaWidth = 7.27f;
11
+ reportSet.OutputAreaHeight = 10.69f;
12
+ reportSet.OutputAreaLeft = 0.5f;
13
+ reportSet.OutputAreaTop = 0.5f;
14
+}
15
+```
16
+
17
+```vb.net
18
+Public Overrides Sub PreExecuteReportSet(reportSet As ReportSet)
19
+ reportSet.PageWidth = 8.27F
20
+ reportSet.PageHeight = 11.69F
21
+ reportSet.OutputAreaWidth = 7.27F
22
+ reportSet.OutputAreaHeight = 10.69F
23
+ reportSet.OutputAreaLeft = 0.5F
24
+ reportSet.OutputAreaTop = 0.5F
25
+End Sub
26
+```
... ...
\ No newline at end of file