//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(); //save to a pdf file workbook.Save("hotelbooking.pdf");
' Create a new Workbook Dim workbook As New Workbook ' save to a pdf file workbook.Save("hotelbooking.pdf")