d56aa4f0590b0a13cbe9884408c16cfa8a908203
FAQ/DeleteTemplate.md
| ... | ... | @@ -0,0 +1,28 @@ |
| 1 | +#DeleteTemplate |
|
| 2 | + |
|
| 3 | +##About |
|
| 4 | + |
|
| 5 | +This method allows customization of how forms associated with reports are deleted when deleting a report. |
|
| 6 | + |
|
| 7 | +##C# Example |
|
| 8 | + |
|
| 9 | +```csharp |
|
| 10 | +public override void DeleteTemplate(string fullReportSetName) |
|
| 11 | +{ |
|
| 12 | + string customTemplatesPath = string.Format("C:\\ReportForms\\{0}", fullReportSetName); |
|
| 13 | + if (File.Exists(customTemplatesPath)) |
|
| 14 | + File.Delete(customTemplatesPath); |
|
| 15 | +} |
|
| 16 | + |
|
| 17 | +``` |
|
| 18 | + |
|
| 19 | +##VB.NET Example |
|
| 20 | + |
|
| 21 | +```visualbasic |
|
| 22 | +Public Overrides Sub DeleteTemplate(fullReportSetName As String) |
|
| 23 | + Dim customTemplatesPath As String = String.Format("C:\\ReportForms\\{0}", fullReportSetName) |
|
| 24 | + If File.Exists(customTemplatesPath) Then |
|
| 25 | + File.Delete(customTemplatesPath) |
|
| 26 | + End If |
|
| 27 | +End Sub |
|
| 28 | +``` |
|
| ... | ... | \ No newline at end of file |