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