FAQ/PreSaveReportSet.md
... ...
@@ -0,0 +1,29 @@
1
+#PreSaveReportSet
2
+
3
+[[_TOC_]]
4
+
5
+##About
6
+
7
+Represents a method that allows the ReportSet to be processed before it goes to the server. This method must be overridden and contains no default behavior.
8
+
9
+##C# Example
10
+
11
+```csharp
12
+[Obsolete]
13
+public override void PreSaveReportSet(string name, ReportSet reportSet)
14
+{
15
+ if (!AdHocSettings.CurrentUserName.Equals(reportSet.Owner))
16
+ Debug.WriteLine(string.Format("Non-owner about to save report: {0}", AdHocSettings.CurrentUserName));
17
+}
18
+```
19
+
20
+##VB.NET Example
21
+
22
+```visualbasic
23
+<Obsolete>
24
+Public Overrides Sub PreSaveReportSet(name As String, reportSet As ReportSet)
25
+ If Not AdHocSettings.CurrentUserName.Equals(reportSet.Owner) Then
26
+ Debug.WriteLine(String.Format("Non-owner about to save report: {0}", AdHocSettings.CurrentUserName))
27
+ End If
28
+End Sub
29
+```
... ...
\ No newline at end of file