//create a new workbook var workbook = new GrapeCity.Documents.Excel.Workbook(); //Load template file from resource var templateFile = this.GetResourceStream("xlsx\\Template_EmbedFontForFormFields.xlsx"); workbook.Open(templateFile); //Init template global settings workbook.Names.Add("TemplateOptions.EmbedFontForFormFields", "false"); //Invoke to process the template workbook.ProcessTemplate(); // Save to a pdf file workbook.Save("EmbedFontForFormFields.pdf");
' Create a new Workbook Dim workbook As New Workbook ' Load template file from resource Dim templateFile = GetResourceStream("Template_EmbedFontForFormFields.xlsx") workbook.Open(templateFile) ' Init template global settings workbook.Names.Add("TemplateOptions.EmbedFontForFormFields", "false") ' Invoke to process the template workbook.ProcessTemplate() ' save to a pdf file workbook.Save("EmbedFontForFormFields.pdf")