Hi,
with asp.net I want to export data to excel. I have a excel-template and I want to use it like the code shown below.
Is the code thread-save when multiple threads (session users) open the same file but save under different names ?
string uniqueFileName= ...;
Workbook workbook = new Workbook();
FileStream fstream = new FileStream("template.xls", FileMode.Open);
workbook.Open(fstream);
// do some writings in the workbook
// like workbook.Worksheets[0].Cells["A1"].PutValue("blah");
workbook.Save(uniqueFileName, FileFormatType.Default);
fstream.Close();
... then stream File uniqueFileName to Asp.Net output stream
Thanks, Markus Loibl