I want to my chart title to be left aligned
Hi,
//Set Title X positionchart.Title.X = 0;//Set Title Y positionchart.Title.Y = 0;
Hi,
Thanks for your posting and using Aspose.Cells for .NET.
Please download and use the latest version:
Aspose.Cells for .NET (Latest Version)
and see if it resolves your problem.
If the problem still occurs, please provide us your sample code and source xls/xlsx files to replicate this issue.
Also, you only need to set the TextHorizontalAlignment, it should work fine.
I have attached an excel as to what do i require exactly:
Hi,
Thanks for your feedback.
It seems there is some issue with the chart’s title alignment.
I have tested it with the following code but chart’s title did not align to the left.
We have logged this issue in our database. We will look into this issue and once the issue is fixed or we have some other update for you, we will let you know asap.
This issue has been logged as CELLSNET-40809.
C#
string filePath = @“F:\Shak-Data-RW\Downloads\source.xlsx”;
Workbook workbook = new Workbook(filePath);
Worksheet worksheet = workbook.Worksheets[0];
Chart chart = worksheet.Charts[0];
chart.Title.TextHorizontalAlignment = TextAlignmentType.Left;
workbook.Save(filePath + “.out.xlsx”);
Hi,
Please download and try this fix: Aspose.Cells for .NET (Latest Version)
Please move the chart title by setting the title
position (Title.X and Title.Y) with the new fix.
I tried using the dll from your link but on adding it gives build errors.
Hi,
I got two files from the link which you sent me :
Hi,
It looks strange to us as it works fine here. May be you need to add/register it into GAC to make it work for your case.
There might be some conditions to make it work e.g
1 - Strong name
2 - Add it to GAC
3 - Add it to your .Net framework (e.g. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727).
Please add it to GAC and check whether it can work.
If you still could not evaluate, please create a separate project / console application, zip it and post it here, we will check it.
thank you.
Hi,Rebuscode-pankaj:
I got two files from the link which you sent me :1.Aspose.Cells.dll2.Aspose.Cells.tlbI added the reference of this dll as i do for other versions but on importing by :using Aspose.Cells;i get the error as screenshot attached.
From your error, it appears your are using .NET Framwork Client Profile. There is a separate dll that works on .NET Framework Client Profile.
The current dll is meant for regular .NET Frameworks and not for Client Profile(s).
We will provide you .NET Framework Client Profile dll soon which will fix this issue.
I was in middle of a delivery so till when can i expect this?
Hi,
Hi,
Please download and try the latest Client Profile fix: Aspose.Cells for .NET (Latest Version)