Hi.
Hi,
Sample code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Aspose.Cells.GridWeb.Data;
namespace WebApplication1
{
public partial class WebForm2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
WebWorksheet sheet = null;
try
{
//Gets the web application's path.
//string path = Server.MapPath("UserControls\\PriceProposal");
string fileName = Server.MapPath("DashBoard.xlsx");
//Imports from a excel file.
GridWeb1.WebWorksheets.ImportExcelFile(fileName);
if (GridWeb1.WebWorksheets.Count > 1)
{
sheet = GridWeb1.WebWorksheets[1];
Session.Add("sheet", sheet);
GridWeb1.WebWorksheets.RemoveAt(0);
}
else
{
sheet = Session["sheet"] as WebWorksheet;
}
sheet.SetAllCellsReadonly();
#region set parameters
#endregion
//scrittura sheet
sheet.Cells.Merge(6, 0, 3, 1);
sheet.Cells[6, 0].PutValue(string.Concat("ABARTH", " ", "CINQUECENTO"));
Aspose.Cells.GridWeb.TableItemStyle s = sheet.Cells[6, 0].GetStyle();
s.Wrap = true;
s.Rotation = -90;
sheet.Cells[6, 0].SetStyle(s);
}
catch (Exception ex)
{
sheet.Cells.Clear();
sheet.Cells[0, 0].PutValue(Safe(ex.Source) + " - " + Safe(ex.Message) + " - " + Safe(ex.StackTrace));
}
}
private static string Safe(string p)
{
if (p != null)
return p;
else
return string.Empty;
}
}
}
I agree but If you remove the rotation angle the wrap text don’t work.
Hi,
Thanks for your feedback.
We have observed this issue using your code with the latest version:
Aspose.Cells
for GridWeb v2.7.7.2006
and logged it in our database.
Below is a screenshot for a reference.
Screenshot:
I tested the version Aspose I have attached but I don’t work.
Hi.
2012, but this version of the product was released on 06 lug 2012. Please renew
the subscription or use a previous version of the product.”
Hi,
Thanks for your posting and considering Aspose.
I have checked your license subscription expiry date which is 20120621, it means, you license was to be expired on 21-Jun-2012.
So, if you want to use any release which has been published after 21-Jun-2012, you will have to renew your subscription.
For old releases which has been published before 21-Jun-2012, you can continue to use your current license.
Please post your query on Aspose.Purchase forum to renew your subscription.
Aspose.Purchase team will help you asap.
Ok.
Hi,
I get the version Aspose.Cells.GridWeb version 2.7.8.2000 but the problem in the object post doesn't work.
Are there news?
Thank you
Hi
Nicoletta,
Hi.
Look forward to your feedback.
Thank you
Hi,
Hi,
I used the version 2.7.8.2010 and I worked fine.
Thank you
Hi,
Thanks for your feedback.
It’s good to know your issue is now resolved. We have now closed this ticket.
If you face any other problem, please feel free to post, we will be glad to help you.
Have a good day.
Hi,ngamerro:I used the version 2.7.8.2010 and I worked fine.
Thank you
We have fixed some of the minor issues relating to Chrome and FireFox, so please download and use the latest fix: Aspose.Cells for GridWeb v2.7.8.2011 now.