//create a new workbook var workbook = new GrapeCity.Documents.Excel.Workbook(); IWorksheet ws = workbook.Worksheets["Sheet1"]; ws.Controls.AddLabel(25.8, 9.6, 27, 13.2).Text = "This is a label."; // Save to an excel file workbook.Save("LabelsBasicUsage.xlsx");
' Create a new Workbook Dim workbook As New Workbook Dim ws As IWorksheet = workbook.Worksheets("Sheet1") ws.Controls.AddLabel(25.8, 9.6, 27, 13.2).Text = "This is a label." ' save to an excel file workbook.Save("LabelsBasicUsage.xlsx")