FAQ/Formatting/How-do-I-Add-bulk-CSV-to-the-report-viewer.md
... ...
@@ -1,21 +1,48 @@
1
-#How do I Add bulk CSV to the report viewer
1
+#Adding Bulk CSV On the Report Viewer
2 2
3 3
[[_TOC_]]
4 4
5
-This code will show the bulk csv option export type in the Report Viewer.
5
+##Question
6
+
7
+How do I Add the Bulk CSV option to the Report Viewer and Report Designer?
8
+
9
+##Answer
10
+
11
+Newer versions of Izenda have diverged the Report Viewer from the Report Designer methodology of showing this button. One methodology for the Report Viewer is demonstrated below, but this is not an absolute edict.
12
+
13
+###Report Viewer
14
+
15
+The report viewer page is all contained in Resources/html/ReportViewer-Body.ascx and is completely editable within any standard text editor. Therefore, you can use any HTML you want as long as you call the following javascript function:
16
+
17
+```javascript
18
+responseServer.OpenUrlWithModalDialogNew, 'rs.aspx?output=BULKCSV', 'aspnetForm', 'reportFrame');
19
+```
20
+
21
+Here is an example HTML snippet to insert a new item into an unordered list (can be used on ReportViewer)
22
+
23
+```html
24
+<li><a href="javascript:void(0)" title=""
25
+ onclick="responseServer.OpenUrlWithModalDialogNew, 'rs.aspx?output=BULKCSV', 'aspnetForm', 'reportFrame');">
26
+ <img class="icon" src="rs.aspx?image=ModernImages.csv-32.png" alt="" />
27
+ <b lang-text="js_CSV">Bulk CSV</b><br>
28
+ <span lang-text="js_CSVMessage">Stores large batches of tabular data in a text file that is portable and easy to process</span>
29
+</a></li>
30
+```
31
+
32
+###Report Designer
33
+
34
+This code will show how to show the bulk csv option on the Report Designer.
6 35
7 36
```csharp
8 37
//show (unhide) the option for bulk csv
9
-
10 38
AdHocSettings.OutputTypes["BULKCSV"].Hidden = false;
11 39
12 40
//hide the option for csv
13
-
14 41
AdHocSettings.OutputTypes["CSV"].Hidden = true;
15 42
16 43
```
17 44
18
-##String keys for other output types
45
+###String keys for other output types
19 46
20 47
The string keys which are available are:
21 48
... ...
@@ -27,4 +54,14 @@ The string keys which are available are:
27 54
* bulkcsv
28 55
* xml
29 56
* odt (open office)
30
-* rtf
... ...
\ No newline at end of file
0
+* rtf
1
+
2
+##Troubleshooting the Bulk CSV Option
3
+
4
+The Bulk CSV option is for exporting large amounts of data and is inherently dependent on your server's ability to process the data. If you are getting an **Out of memory exception**, the bulk CSV option may not be right for your application.
5
+
6
+If you want to test the bulk CSV export option to see if it's correct for you, follow the steps below.
7
+
8
+* Open a larger report in the Report Viewer
9
+* Append the string "&output=bulkcsv" onto the URL (e.g. http://www.izenda.com/bi/ReportViewer.aspx?rn=Budget&output=bulkcsv)
10
+* Press enter to export the report as a bulk csv file
... ...
\ No newline at end of file