//create a new workbook var workbook = new GrapeCity.Documents.Excel.Workbook(); //Load template file from resource var templateFile = this.GetResourceStream("xlsx\\Template_TimeOffRequest.xlsx"); workbook.Open(templateFile); //No data needed //Invoke to process the template workbook.ProcessTemplate(); // Save to a pdf file workbook.Save("TimeOffRequest.pdf");
' Create a new Workbook Dim workbook As New Workbook 'Load template file from resource Dim templateFile = GetResourceStream("xlsx\Template_TimeOffRequest.xlsx") workbook.Open(templateFile) 'No data needed 'Invoke to process the template workbook.ProcessTemplate() ' save to a pdf file workbook.Save("TimeOffRequest.pdf")