Skip to content
Merged
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
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.14.36202.13 d17.14
MinimumVisualStudioVersion = 10.0.40219.1
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
{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 = {BCBD42BD-3832-46D6-8BC4-DAB77B28CECD}
EndGlobalSection
EndGlobal
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Syncfusion.XlsIO.Net.Core" Version="*" />
</ItemGroup>

<ItemGroup>
<None Update="Output\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Data\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

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

namespace MaximumNumberOfRowsColumns
{
class Program
{
public static void Main(string[] args)
{
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/Input.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];

//For getting maximum supported rows and columns
int maxRow = workbook.MaxRowCount;
int maxColumns = workbook.MaxColumnCount;

//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());
}
}
}
}