hi,
I want to bind the byte array excel table in word document based on a bookmark.
can you plz share the link for reference.
Thanks
Tamilselvan S
//If your byte array data is an Excel file
public void ByteToExcel1(byte[] byteArray, string outputPath)
{
MemoryStream ms = new MemoryStream(byteArray);
Workbook wb = new Workbook();
wb.LoadFromStream(ms);
wb.SaveToFile(outputPath, ExcelVersion.Version2013);
}
//If it is just some data in the form of byte array
public void ByteToExcel2(byte[] byteArray, string outputPath)
{
Workbook workbook = new Workbook();
Worksheet sheet = workbook.Worksheets[0];
//Insert the data in worksheet
sheet.InsertArray<byte>(byteArray, 1, 1, true);
workbook.SaveToFile(outputPath, ExcelVersion.Version2013);
}