9ccfd68d0c2c5ee387a95e8aba660cada4d47091
FAQ/Questions/Add-Formatting-Options.md
| ... | ... | @@ -6,12 +6,16 @@ |
| 6 | 6 | |
| 7 | 7 | Here we will show you how to easily add a new formatting option to the "Formats" dropdown menu on the Fields tab of the Report Designer. These should be handled in your ``InitializeReporting()`` method in your global.asax. |
| 8 | 8 | |
| 9 | +##Method 1 |
|
| 10 | + |
|
| 9 | 11 | In this example, we will quickly add a new format option to the list called "Bold". New formats added this way will be available for every type of data and will not override the existing built-in formats for each type of data. The symbol {0} acts as a token to represent the data that is returned by the query. |
| 10 | 12 | |
| 11 | 13 | ```csharp |
| 12 | 14 | AdHocSettings.Formats.Add("Bold", "<strong>{0}</strong>"); |
| 13 | 15 | ``` |
| 14 | 16 | |
| 17 | +##Method 2 |
|
| 18 | + |
|
| 15 | 19 | We can also use an Izenda Format object as an argument. Below is the method of adding a formatting option called "Scientific" to the list of formats. Items added this way can be made available for specific **SqlTypeGroups** and will not override any of the existing formats. |
| 16 | 20 | |
| 17 | 21 | ```csharp |