Aspose.Cells.Examples.CSharp.Files.Utility.Excel2PDFConversion.Run C# (CSharp) Метод

Run() публичный статический Метод

public static Run ( ) : void
Результат void
        public static void Run()
        {
            // ExStart:1
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

            // Instantiate the Workbook object
            // Open an Excel file
            Workbook workbook = new Workbook(dataDir + "abc.xlsx");

            // Save the document in PDF format
            workbook.Save(dataDir + "outBook2.out.pdf", SaveFormat.Pdf);

            // Display result, so that user knows the processing has finished.
            System.Console.WriteLine("Conversion completed.");
            // ExEnd:1
        }
    }
Excel2PDFConversion