//create a new workbook var workbook = new GrapeCity.Documents.Excel.Workbook(); IWorksheet sheet = workbook.Worksheets[0]; //set style. sheet.Range["A1"].Value = "Sheet1"; sheet.Range["A1"].Font.Name = "Wide Latin"; sheet.Range["A1"].Font.Color = Color.Red; sheet.Range["A1"].Interior.Color = Color.Green; //change the path to real export path when save. sheet.Save("dest.pdf", SaveFileFormat.Pdf);
' Create a new Workbook Dim workbook As New Workbook Dim sheet As IWorksheet = workbook.Worksheets(0) 'set style. sheet.Range!A1.Value = "Sheet1" sheet.Range!A1.Font.Name = "Wide Latin" sheet.Range!A1.Font.Color = Color.Red sheet.Range!A1.Interior.Color = Color.Green 'change the path to real export path when save. sheet.Save("dest.pdf", SaveFileFormat.Pdf)