Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.9.34310.174
VisualStudioVersion = 17.14.36202.13 d17.14
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Color Scales", "Color Scales\Color Scales.csproj", "{937742B3-3F47-4BDF-A744-A404F03229DE}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MaximumNumberOfRowsColumns", "MaximumNumberOfRowsColumns\MaximumNumberOfRowsColumns.csproj", "{3E39C873-6490-4B29-8348-D1DB19AB85A5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{937742B3-3F47-4BDF-A744-A404F03229DE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{937742B3-3F47-4BDF-A744-A404F03229DE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{937742B3-3F47-4BDF-A744-A404F03229DE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{937742B3-3F47-4BDF-A744-A404F03229DE}.Release|Any CPU.Build.0 = Release|Any CPU
{3E39C873-6490-4B29-8348-D1DB19AB85A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3E39C873-6490-4B29-8348-D1DB19AB85A5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3E39C873-6490-4B29-8348-D1DB19AB85A5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3E39C873-6490-4B29-8348-D1DB19AB85A5}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D6361E70-7C26-499E-B89E-9A8427596CA5}
SolutionGuid = {BCBD42BD-3832-46D6-8BC4-DAB77B28CECD}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
</None>
</ItemGroup>

</Project>
</Project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Syncfusion.XlsIO;

namespace ChartNameInWorksheet
namespace MaximumNumberOfRowsColumns
{
class Program
{
Expand All @@ -13,14 +13,14 @@ public static void Main(string[] args)
IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/Input.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];

//Get the chart name
string chartName = worksheet.Charts[0].Name;
//Display the chart name
Console.WriteLine("The name of the chart is: " + chartName);
//For getting maximum supported rows and columns
int maxRow = workbook.MaxRowCount;
int maxColumns = workbook.MaxColumnCount;

//Saving the workbook
workbook.SaveAs(Path.GetFullPath(@"Output/Output.xlsx"));
//Display maximum number of rows and columns supported
Console.WriteLine("Maximum number of rows supported: " + maxRow.ToString());
Console.WriteLine("Maximum number of columns supported: " + maxColumns.ToString());
}
}
}
}
}