I export the gridweb to the xlsx format with style.
Q1 : How can i import the xlsx with style?
thanks in advance
Thanks for your interest in Aspose.Cells for GridWeb.
1) To import excel file inside a gridweb, you can use WebWorksheets.ImportExcelFile() method.
Please refer to this document for code example: ImportExcelFile Method (Stream)
2) Can you please explain more, what do you mean by printing on server side? Do you want to display images of your worksheets [readonly] on your web application?
thank you for your quick reply. import xls is successfully working.
string filename = “f:\one1.xls”;
Workbook workbook = new Workbook(filename);
workbook.Worksheets.PageSetup.FitToPagesWide = 1;
workbook.Worksheets.PageSetup.PrintArea = “A3:V75”;
workbook.Worksheets.PageSetup.Orientation = PageOrientationType.Landscape;
workbook.Worksheets.PageSetup.PaperSize = PaperSizeType.PaperA4;
It works fine. my question is
Q. i want to print the grid using aspose.net code
worksheet.SheetToPrinter(“HP1018”); but not working
i attached my source code for your reference