3d0a7270ada330cbcb843f506b66f96fea4d7a47
FAQ/Questions/How-do-I-use-the-Izenda-Reports-report-email-scheduler.md
| ... | ... | @@ -151,6 +151,27 @@ How to use: |
| 151 | 151 | * Create a report and schedule it. In this case, we need to save to a folder -- so instead of an email recipient, specify the folder in which to save your report. |
| 152 | 152 | * Open the SchedulerPage.aspx page in the browser. |
| 153 | 153 | |
| 154 | +##Clearing scheduler settings on new report save |
|
| 155 | + |
|
| 156 | +You can use the following custom code to make sure that when a copy of a report is saved, the scheduler settings are not saved along with the report copy: |
|
| 157 | + |
|
| 158 | +```csharp |
|
| 159 | + |
|
| 160 | +public override void SaveReportSet(ReportInfo reportInfo, ReportSet reportSet) |
|
| 161 | +{ |
|
| 162 | + ReportSet existingReport = LoadFilteredReportSet(reportInfo.FullName); |
|
| 163 | + // If this is a new report or SaveAs report |
|
| 164 | + if (existingReport == null) |
|
| 165 | + { |
|
| 166 | + reportSet.Recipients = ""; |
|
| 167 | + reportSet.RepeatType = RepeatType.None; |
|
| 168 | + } |
|
| 169 | + |
|
| 170 | + // Save report normally |
|
| 171 | + base.SaveReportSet(reportInfo, reportSet); |
|
| 172 | +} |
|
| 173 | + |
|
| 174 | +``` |
|
| 154 | 175 | |
| 155 | 176 | ##Overnight batch report processing |
| 156 | 177 |