Class ConversionUtility
ConversionUtility class
Represents utility to convert files to other formats.
public class ConversionUtility
Methods
Name | Description |
---|---|
static Convert(string, string) | Converts Excel files to other formats. |
static Convert(string, LoadOptions, string, SaveOptions) | Converts Excel files to other formats. |
Examples
using System;
using Aspose.Cells;
namespace AsposeCellsExamples
{
public class ConversionUtility
{
public static void Convert(string sourcePath, string destPath)
{
Workbook workbook = new Workbook(sourcePath);
workbook.Save(destPath, SaveFormat.Pdf);
}
}
public class UtilityClassConversionUtilityDemo
{
public static void Run()
{
string sourcePath = "example.xlsx";
string destPath = "example.pdf";
ConversionUtility.Convert(sourcePath, destPath);
Console.WriteLine("File converted successfully.");
}
}
}
See Also
- namespace Aspose.Cells.Utility
- assembly Aspose.Cells