ExcelPageSize
Represents the PageSize for the Excel
public class ExcelPageSize
Public Class ExcelPageSize
Inheritance: ObjectExcelPageSize
Licensing Info
This class is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
Examples
Example shows how to use ExcelPageSize.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' Create new instance of conversionOptions.
Dim conversionOptions As ExcelConversionOptions = New ExcelConversionOptions(false)
conversionOptions.PageSize = ExcelPageSize.A4;
' Create new instance of Converter by providing suitable parameters.
Dim excelConversion As ExcelConverter = New ExcelConverter("C:\MyDocument.xlsx",conversionOptions)
' Call Convert method to start conversion
excelConversion.Convert("C:\MyOutput.pdf")
End Sub
End Module
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
//Create new instance of conversionOptions.
ExcelConversionOptions conversionOptions = new ExcelConversionOptions(false);
conversionOptions.PageSize = ExcelPageSize.A4;
// Create new instance of Converter by providing suitable parameters.
ExcelConverter excelConverter = new ExcelConverter(@"C:\MyDocument.xlsx",conversionOptions);
//Call Convert method to start conversion
excelConverter.Convert(@"C:\MyOutput.pdf");
}
}
Properties
| A3 | A3 Page Size |
| A4 | A4 Page Size |
| A4Small | A4Small Page Size |
| A5 | A5 Page Size |
| B4 | B4 Page Size |
| B5 | B5 Page Size |
| Executive | Executive Page Size |
| Folio | Folio Page Size |
| Height | The height of the page in points. |
| Ledger | Ledger Page Size |
| Legal | Legal Page Size |
| Letter | Letter Page Size |
| LetterSmall | LetterSmall Page Size |
| Quarto | Quarto Page Size |
| Statement | Statement Page Size |
| Tabloid | Tabloid Page Size |
| Width | The width of the page in points. |
Methods
| Equals(Object) | Determines whether the specified Object is equal to the current Object . (Inherited from Object) |
| GetHashCode() | Serves as a hash function for a particular type. (Inherited from Object) |
| GetType() | Gets the Type of the current instance. (Inherited from Object) |
| ToString() | Returns a String that represents the current Object . (Inherited from Object) |