API/CodeSamples/UseBulkCSV.md
... ...
@@ -0,0 +1,45 @@
1
+#UseBulkCSV
2
+
3
+Gets or sets the value indicating whether Izenda will use Bulk CSV. If true, the CSV button will be replaced with the Bulk CSV button on the toolbar of the ReportDesigner and ReportViewer. This icon looks the same as the regular CSV icon, except that it will perform a different function. The bulk CSV option is constrained by the [[ExportLimit|/API/CodeSamples/ExportLimit]].
4
+
5
+##Global.asax (C♯)
6
+
7
+```csharp
8
+//main class: inherits DatabaseAdHocConfig or FileSystemAdHocConfig
9
+public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig
10
+{
11
+ // Configure settings
12
+ // Add custom settings after setting the license key and connection string by overriding the ConfigureSettings() method
13
+ public static void InitializeReporting() {
14
+ //Check to see if we've already initialized.
15
+ if (HttpContext.Current.Session == null || HttpContext.Current.Session["ReportingInitialized"] != null)
16
+ return;
17
+ AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE";
18
+ AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE";
19
+ Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig();
20
+ AdHocSettings.CacheReports = true; //The relevant setting
21
+ HttpContext.Current.Session["ReportingInitialized"] = true;
22
+ }
23
+}
24
+```
25
+
26
+##Global.asax (VB.NET)
27
+
28
+```visualbasic
29
+'main class: inherits DatabaseAdHocConfig or FileSystemAdHocConfig
30
+Public Class CustomAdHocConfig
31
+ Inherits Izenda.AdHoc.DatabaseAdHocConfig
32
+
33
+ Shared Sub InitializeReporting()
34
+ 'Check to see if we've already initialized
35
+ If HttpContext.Current.Session Is Nothing OrElse HttpContext.Current.Session("ReportingInitialized") IsNot Nothing Then
36
+ Return
37
+ 'Initialize System
38
+ AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE"
39
+ AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"
40
+ Izenda.AdHoc.AdHocSettings.AdHocConfig = New CustomAdHocConfig()
41
+ AdHocSettings.ShowDesignLinks = True 'The relevant setting
42
+ HttpContext.Current.Session("ReportingInitialized") = True
43
+ End Sub
44
+End Class
45
+```
... ...
\ No newline at end of file