Skip to content

Commit 9086b9e

Browse files
author
GowthamPonrajSF5414
committed
999741-add MaxRowColumn example
1 parent 0e5a92c commit 9086b9e

5 files changed

Lines changed: 74 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.14.36202.13 d17.14
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MaximumNumberOfRowsColumns", "MaximumNumberOfRowsColumns\MaximumNumberOfRowsColumns.csproj", "{3E39C873-6490-4B29-8348-D1DB19AB85A5}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{3E39C873-6490-4B29-8348-D1DB19AB85A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{3E39C873-6490-4B29-8348-D1DB19AB85A5}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{3E39C873-6490-4B29-8348-D1DB19AB85A5}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{3E39C873-6490-4B29-8348-D1DB19AB85A5}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {BCBD42BD-3832-46D6-8BC4-DAB77B28CECD}
24+
EndGlobalSection
25+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net10.0</TargetFramework>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<PackageReference Include="Syncfusion.XlsIO.Net.Core" Version="*" />
12+
</ItemGroup>
13+
14+
<ItemGroup>
15+
<None Update="Output\*">
16+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
17+
</None>
18+
<None Update="Data\*">
19+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
20+
</None>
21+
</ItemGroup>
22+
23+
</Project>

FAQ/Maximum number of rows and columns supported/.NET/MaximumNumberOfRowsColumns/MaximumNumberOfRowsColumns/Output/.gitkeep

Whitespace-only changes.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
using Syncfusion.XlsIO;
2+
3+
namespace MaximumNumberOfRowsColumns
4+
{
5+
class Program
6+
{
7+
public static void Main(string[] args)
8+
{
9+
using (ExcelEngine excelEngine = new ExcelEngine())
10+
{
11+
IApplication application = excelEngine.Excel;
12+
application.DefaultVersion = ExcelVersion.Xlsx;
13+
IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/Input.xlsx"));
14+
IWorksheet worksheet = workbook.Worksheets[0];
15+
16+
//For getting maximum supported rows and columns
17+
int maxRow = workbook.MaxRowCount;
18+
int maxColumns = workbook.MaxColumnCount;
19+
20+
//Display maximum number of rows and columns supported
21+
Console.WriteLine("Maximum number of rows supported: " + maxRow.ToString());
22+
Console.WriteLine("Maximum number of columns supported: " + maxColumns.ToString());
23+
}
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)