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