WorkbookDesigner

Hi,

I have a question regarding Aspose.Cells, is the followings code produce the same :

1/

WorkbookDesigner _doc = new WorkbookDesigner();
_doc.Workbook.Open(new MemoryStream(template.TemplateFile));

2/

WorkbookDesigner _doc = new WorkbookDesigner();

_doc.Open(new MemoryStream(template.TemplateFile));

Hi,

Thanks for considering Aspose.

Yes, both methods generates the same results. Actually WorkbookDesigner.Open will call WorkbookDesigner.Workbook.Open method internally. Generally, one should use WorbookDesigner class when he got Smart Markers in the excel file and you want to process them. And if you want to load any excel file except for the excel file having Smart markers, you may use Workbook class. This will also be same:

Workbook _doc = new Workbook();

_doc.Open(new MemoryStream(template.TemplateFile).....);

Thank you.

Thanks this is clear for me now