Aspose.Cells.Examples.CSharp.Files.Handling.SaveInPdfFormat.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // ExStart:1
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
            HttpResponse Respose = null;
            // Creating a Workbook object
            Workbook workbook = new Workbook();
            if (Respose != null)
            {
                // Save in Pdf format
                workbook.Save(Respose, dataDir + "output.pdf", ContentDisposition.Attachment, new PdfSaveOptions());
                Respose.End();
            }            
            // ExEnd:1
        }
    }
SaveInPdfFormat