Class ExportUtils
For internal use only.
Inheritance
System.Object
ExportUtils
Namespace: FastReport.Export
Assembly: FastReport.Base.dll
Syntax
public static class ExportUtils
Methods
FloatToString(Double, Int32)
Converts float value to string.
Declaration
public static string FloatToString(double value, int digits = 2)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | value | Value to convert. |
| System.Int32 | digits | Number of digits. |
Returns
| Type | Description |
|---|---|
| System.String | The result. |
GetPageHeight(ReportPage)
Gets current page height.
Declaration
public static float GetPageHeight(ReportPage page)
Parameters
| Type | Name | Description |
|---|---|---|
| ReportPage | page |
Returns
| Type | Description |
|---|---|
| System.Single |
GetPageWidth(ReportPage)
Gets current page width.
Declaration
public static float GetPageWidth(ReportPage page)
Parameters
| Type | Name | Description |
|---|---|---|
| ReportPage | page |
Returns
| Type | Description |
|---|---|
| System.Single |
HtmlString(String, TextRenderType, String)
Converts plain text to a html-friendly form.
Declaration
public static FastString HtmlString(string text, TextRenderType textRenderType, string fontSize = "13px;")
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | text | Text to convert. |
| TextRenderType | textRenderType | Render type. |
| System.String | fontSize | Font size (default is 13px) |
Returns
| Type | Description |
|---|---|
| FastString | Converted string. |
IndexToName(Int32)
Convert index to Excel column name.
Declaration
public static string IndexToName(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | Index of column |
Returns
| Type | Description |
|---|---|
| System.String | Column name |
SaveJpeg(Drawing.Image, Stream, Int32)
For developers only
Declaration
public static void SaveJpeg(Drawing.Image image, Stream buff, int quality)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Image | image | |
| System.IO.Stream | buff | |
| System.Int32 | quality |