I am trying to copy a workbook in openxml and create a new workbook.
Tried to follow the documentation, but I can't seem to make this work.
Can anyone tell me how to do this... in the code below "TemplateResource" is not recognized and I can't figure out what to use. I tried a file name, and the code runs, but the "input" var is null after its execution.
public static void CustomizeTemplateToStream()
using (var input = Assembly.GetExecutingAssembly().GetManifestResourceStream(TemplateResource))
using (var output = new FileStream("MyWorkbook.xlsx", FileMode.Create, FileAccess.Write))
using (var package = SpreadsheetDocumentWrapper.Open(input, output))
// Code here to customize the template workbook