hello aspose support,
Hi,
WebWorksheets sheets = GridWeb1.WebWorksheets;<span style="color: rgb(0, 128, 0);">// Sets input entry.</span> <span style="color: rgb(0, 128, 0);">// Sets all cells readonly first.</span> sheets[0].SetAllCellsReadonly(); <span style="color: rgb(0, 128, 0);">// Starts from row 3, column 2, 11 rows 1 colum, total 10 cells.</span> sheets[0].SetEditableRange(3, 2, 11, 1);</pre><pre style="padding: 0px; border: 1px solid rgb(255, 255, 255); background-image: none; background-attachment: scroll; background-color: rgb(255, 255, 255); font-family: 'Courier New', Courier, monospace; color: rgb(0, 0, 102); vertical-align: top; font-size: 12px; background-position: 0px 0px; background-repeat: repeat repeat;"><br></pre><pre style="padding: 0px; border: 1px solid rgb(255, 255, 255); background-image: none; background-attachment: scroll; background-color: rgb(255, 255, 255); font-family: 'Courier New', Courier, monospace; color: rgb(0, 0, 102); vertical-align: top; font-size: 12px; background-position: 0px 0px; background-repeat: repeat repeat;"><br></pre></div><div><br></div><div>4) You may use WebWorksheets.SaveToExcelFile() overloads and pick your desired version for your needs. Here, you may use your own code, e.g make use of Server.MapPath() to re-save or save as the file to your desired location.</div><div><br></div><div>5) Aspose.Cells.GridWeb does not support saving/rendering encrypting Excel files, you may use Aspose.Cells APIs for this purpose, e.g</div><div><a href="http://www.aspose.com/docs/display/cellsnet/Encrypting+Excel+Files">http://www.aspose.com/docs/display/cellsnet/Encrypting+Excel+Files</a></div><div><br></div><div><br></div><div>For complete reference on Aspose.Cells.GridWeb, please see the featured demos and Wiki docs.</div><div><br></div><div><br></div><div>Thank you.</div><div><br></div><div><br></div><div><br></div><div><br></div>
thanks.
Hi Guido,
Thank you for your response.
In case the template Excel spreadsheet contains any graphical elements such as charts or related objects, they will automatically be rendered as images in GridWeb control, therefore you will not be able to control them in any manner.
great - i tested it out with a spreadhseet and it works great. Fantastic product !
Hi Guido,
Thank you for your feedback.
You can set the GridWeb control to re-size according to the browser window by using the JavaScript function as provided below,
JavaScript
Regarding your question about saving the GridWeb results on disk or to some server location, you may use the WebWorksheets.SaveToExcelFile method. There are 4 overloads available providing you the choice of saving either to stream or to a file by specifying the file location. Please check the below linked technical article on this subject.
hello,
Hi Guido,
Thank you for writing back.
The solution provided in our previous post works well on our side but it lacks your recent requirement to add/remove columns/rows to the control if browser window expands/retracts. The said JS solution adjusts the control size but does not add row/columns to the control when window size expands. A ticket has been logged in our database to look further into your requirement. Ticket Id for your future reference is CELLSNET-42337. Please spare us little time to properly analyze the request, and provide a solution for it. In the meanwhile, we will keep you posted with updates in this regard.
Hi Guido,
$(function ()
{
$("#resizable").resizable(
{
resize: function (event, ui)
{
$("#GridWeb1").height($("#resizable").height());
$("#GridWeb1").width($("#resizable").width());
($("#GridWeb1")[0]).mOnResize(); } } );
}
);