Magnus Mårtensson
Microsoft Regional Director, Azure MVP, CEO Loftysoft
Avirag Jain
Director & CTO R Systems
Mahesh Chand
Founder C# Corner, CEO Mindcracker
Chris Gali
CEO & Co-Founder Graphite
Subinder Khurana
Chief Architect StoryProcess, Founder NASSCOM DeepTech Club
Bryan Rishforth
Investor, Chairman Graphite
Bryn Everson
Director Biz Dev Graphite
Raj Tiwari
Digital Transformation Leader, Futurist and Visionary
Joseph Guadagno
Microsoft MVP, Lead Quicken Loans
Nikita Sachdev
Entrepreneur, Blockchain Enthusiast & Advisor, Social Media Influencer
Doug Wagner
COO & Founder Adapt Technical Group
Ritesh Modi
Architect, Senior Evangelist, Cloud Architect
Crystal Wenrick
Director Communications Mindcracker
Allen O’Neill
Microsoft MVP, Consulting Engineer/Architect
Praveen Kumar
CEO MCN Solutions
Chris Love
Founder Love2Dev, Microsoft MVP, Author
Sanjay Vyas
Microsoft Regional Director, Microsoft MVP, Founder & CEO SkillLabs Technologies
Veena Sarda
Deep Learning Consultant, Author
Sekhar Srinivasan
C# Corner MVP, Microsoft Certified Trainer, Pluralsight Author
Lalit Bansal
Founder & CEO - EIY SYS
Navdeep Garg
CEO Revinfotech
Prakash Tripathi
Tech Manager/Leader, Microsoft MVP, Blogger
Bhavna Jain
Breakthrough Consultant
Naveen Sharma
Enterprise Architect, Leadership Coach, Author
Vidya Vrat Agarwal
Principal Architect, Microsoft MVP, Author
Sheetal Agarwal
Founder Clownselors, Medical Clown, Trainer
Abhishek Kant
Founder GTM Catalyst
Vishnu Saran
Founder & CEO VoiceQube
Sandeep Soni
Founder & CEO Deccansoft, Microsoft Certified Trainer
Parveen Malik
AVP InfoSec & Vulnerability Management, Information Security Expert
Nitin Pandit
Microsoft MVP, Developer Evangelist, Author
Niloshima Srivastava
C# Corner MVP, Tech Architect, Trainer, Blogger
Bala Chirtsabesan
Senior Software Engineer at Microsoft, Author
Manoj Mittal
Sr. Technical Architect, C# Corner MVP, Author
Chandni Di
Co-Founder Voice of Slum
Vithal Wadje
Technical Lead, Microsoft MVP, Author
Shivam Ahuja
Founder SkillCircle, Business Mentor
Chervine Bhiwoo
Solution Architect, Microsoft MVP, Author
Saurabh Jain
Vice President Paytm, Founder Fun2Do Labs, Author
Vinay Solanki
Head IoT at Lenovo, Founder IoT-NCR
Anshu kumari
Founder Blockchainkids, Inventor, Trainer
Amit Singal
CEO Startup Buddy
Dev Pratap
Co-Founder & CEO Voice of Slum
Amey Vartak
Technology Consultant, Full Stack Developer, C# Corner MVP, Author
Viswanatha Swamy
Principal Software Engineer, C# Corner MVP, Author
Sanket Verma
Research Engineer @ Ballistics (Forensics) and Chair, PyData Delhi
Sourabh Somani
Lead Developer, Microsoft MVP, Author
Abhishek Mishra
Software Architect, C# Corner MVP, Author
Siddharth Vaghasia
Technical Consultant, C# Corner MVP, Blogger
Bassam Alugili
Senior Software Specialist, Database Expert
S Ravi Kumar
Solution Architect, C# Corner MVP, Author
Sundaram Subramanian
Full Stack Developer, C# Corner MVP, Speaker
Deepesh Somani
Solution Architect, Microsoft MVP, Author
Debasis Saha
Technical Project Manager, C# Corner MVP, Blogger, Author
Vipul Jain
Software Architect, C# Corner MVP, Author
Akshay Patel
Technical Architect, Microsoft Certified Trainer, C# Corner MVP, Author
Stephen Simon
RPA Developer, Evangelist, Author
Vivek Sharma
Founder Kingster636, AR/VR Specialist
Jeetendra Gund
Technical Lead, C# Corner MVP, Author
Sujal Beniwal
AI Enthusiast, Student
M Viknaraj
Microsoft MVP, Azure Architect, Author
Prasham Sabadra
Software Architect, C# Corner MVP, Trainer, Author
Aakash Maurya
Senior Developer, C# Corner MVP, Speaker
Ankit Sharma
Senior Software Engineer, C# Corner MVP, Author
Mangesh Gaherwar
Team Lead, C# Corner MVP, Author
Viral Jain
Technical Consultant, C# Corner MVP, Author
Bhasker Das
Solution Architect, Evangelist
Manish Dwivedi
Associate Project Manager
Ck Nitin
Programmer, Author
Rohit Gupta
Technical Trainer, Author
Manish Tewatia
Full-stack Marketer, UX Designer
Bhavya Gaur
Technical Illustrator
Rohit Tomar
SEO/SMO Expert
Web Track
Cloud & Data Track
Dev Track
Registration & Breakfast
Future of Desktop Apps with JS (ElectronJs)
Nitin Pandit
Building Serverless Microservices Using Microsoft Azure
Vithal Wadje
Innovating RPA: A Robot for Every Person
Stephen Simon
Managing Cloud Storage Accounts using Logic Apps
Viknaraj Manogararajah
Data visualization using Python
Sekhar Srinivasan
Going Cross platform with AR Foundation
Vivek Sharma
Keynote
Managing your Azure dependencies in ASP.NET Core apps using VS
Bala Chirtsabesan
Securing Applications on Intelligent Azure
Abhishek Mishra
Getting started with Blazor the Framework of Future
S Ravi Kumar
Lunch
Build Progressive Web Apps using Angular 9
Debasis Saha
Build and deploy to any platform using Azure DevOps
Chervine Bhiwoo
Deep Dive in Azure Service Bus
Akshay Patel
Build a Native Mobile Application using React Native and JavaScript
Joseph Guadagno
Making sense of Web Job, Web Job SDK and Functions in Azure
Prakash Tripathi
CloudFront Distribution in AWS
Viral Jain
Tea Break
Introduction to PowerBI
Aakash Maurya
Build Advanced SPFx solutions with React and Graph API
Siddharth Vaghasia
Build Business Intelligence Analyst (BIA) Skills
Sundaram Subramanian
Deep dive of Power Platform – AI BUILDER
Prasham Sabadra
Panel 1
What's new in SharePoint development
Vipul Jain
Build a SSO (Single Sign On) based Native JavaScript application with Microsoft Identity within 10 minutes
Manoj Mittal
Panel 2
Applications and working of AI
Veena Sarda
Deploying serverless API's with .Net core 3.0 on AWS & Azure
Amey Vartak
Panel 3
Blockchain with .NET Core (Ark)
Anshu Kumari
Closing Note & Prize Distribution
Dev Track
Cloud Track
Architecture Track
Emerging Tech Track
Registration & Breakfast
Creating Full-Stack Web Apps Using Server-Side Blazor
Ankit Sharma
Real time face recognition with MS Cognitive Services
Niloshima Srivastava
Building Scalable APIs with GraphQL
Jeetendra Gund
Future of development with AI and Blockchain
Navdeep Garg
Debugging Tips and Tricks with Visual Studio 2019
Joseph Guadagno
Azure Containers
Abhishek Kant
Enterprise Architecture
Naveen Sharma
Bot Framework - learn it fast and look like a boss!
Allen O’Neill
Keynote
.Net Core & C# 8 Performance
David McCarter
Working with Azure kubernetes services
Ritesh Modi
Becoming an Architect
Vidyavrat Agarwal
Why Techies Need to Learn Product Management
Saurabh Jain
Lunch
Build a rules engine in .Net Core
Sanjay Vyas
Building CI and CD Pipeline using Azure DevOps
Sandeep Soni
Entity Framework Core - Tips and Tricks, Performance Optimization, and Tuning
Bassam Alugili
Hacking your way into Data Science
Sanket Verma
Speed up your .Net Core Website
Sourabh Somani
Azure
Magnus Mårtensson
Demystifying Open Distro for Elasticsearch
Suman Debnath
Future of Data
Shivam Ahuja
Tea Break
gRPC with C# and .Net Core
Mangesh Gaherwar
Panel 1
Essentials of Cloud security
Parveen Malik
Power platform and Dynamics 365
Deepesh Somani
Microservices - the gRPC Way
Viswanatha Swamy
Panel 2
Reserved
Reserved
Closing Note & Prize Distribution
Dynamic Excel reporting with ClosedXML
A dynamic report generator converts changing business data into a structured Excel workbook without hard-coding every column or formatting rule. With C# and ClosedXML, a .NET application can apply filters, group results, add subtotals, style cells and return a downloadable .xlsx file without launching Microsoft Excel. The output remains familiar to finance, operations and service teams, while the application continues to act as the source of truth.
Australian teams add practical constraints to that design. People in Sydney, Melbourne and Brisbane often receive month-end reporting packs by email or share them through Microsoft Teams, and many finance processes use Australian dollars, GST calculations and a July-to-June financial year. A resilient generator therefore combines reusable templates with tenant-specific rules, audit records and controls aligned with the Privacy Act 1988 and the Australian Privacy Principles.
Choosing the right export approach
| Export approach | Main strengths | Important limits | Practical fit |
|---|---|---|---|
| ClosedXML | Server-side .xlsx generation, styling, formulas and validation | Advanced chart and pivot authoring is limited | Most business reporting applications |
| CSV | Fast, compact and easy to stream | Single sheet with little formatting | Raw data extracts and integrations |
| Open XML SDK | Detailed control over the underlying Office format | More verbose and developer-intensive | Highly specialised workbook templates |
| Excel Interop | Access to the complete desktop Excel feature set | Requires Excel and is unreliable for unattended server use | Windows-only attended automation |
ClosedXML provides the best balance for a typical ASP.NET reporting service because it produces genuine Excel workbooks without depending on an installed Office application. It also gives application code enough control over headers, number formats, conditional formatting, print areas and worksheet structure. The main limitation is that ClosedXML is not a replacement for every feature found in Excel, particularly around advanced pivot tables and chart creation.
The export mechanism should remain separate from report preparation. A query service can retrieve authorised data, a shaping layer can convert it into presentation-ready records, and a renderer can turn those records into a workbook. This separation makes it easier to swap ClosedXML for another library, add PDF output later and test business rules without opening an Excel file.
Designing flexible report models
The entry point should be a typed request model rather than a collection of loosely connected parameters. It can include a report identifier, tenant identifier, date range, selected filters, currency, locale and requested column identifiers. The service should resolve each requested column against a server-side definition, preventing a caller from asking the renderer to create arbitrary sheets or inject unsupported formatting.
Column definitions provide the foundation for reusable reports. Each definition can specify its heading, data type, number format, sort order, grouping level and subtotal behaviour. A sales report might include invoice number, customer, GST component and paid amount, while an operational report might use dates, percentages and status labels. Keeping those definitions outside the worksheet code allows one renderer to support many business scenarios.
Report templates should control presentation without embedding business logic. A template can define the title block, header style, alternating row colours, frozen panes, page orientation and logo placement. Calculated values, permitted formulas and grouping rules belong in validated configuration. This prevents a user-supplied template from becoming an injection route and gives administrators predictable control over exported documents.
Date and currency handling deserves early attention. Australian dates may arrive as text from legacy systems, while stored timestamps can represent either UTC or local time. A single interpretation rule should be applied before export, with Australian Eastern Standard Time handled separately from daylight-saving transitions. Amounts should use decimal values and explicit currency metadata rather than binary floating-point totals.
Building the ClosedXML export pipeline
A clean pipeline consists of authorisation, data retrieval, report shaping, workbook rendering and secure delivery. Each stage should have a narrow responsibility and return a result that can be logged without recording sensitive row data. Asynchronous APIs suit I/O-heavy report requests, while cancellation tokens allow an abandoned download to release database and server resources.
A small rendering section can define columns once and apply them consistently:
public sealed record ReportColumn(
string Key,
string Heading,
string NumberFormat = "General");
using var workbook = new XLWorkbook();
var sheet = workbook.AddWorksheet("Summary");
foreach (var (column, index) in report.Columns
.Select((definition, position) => (definition, position + 1)))
{
sheet.Cell(1, column).Value = definition.Heading;
sheet.Column(column).Style.Font.Bold = true;
sheet.Column(column).Style.NumberFormat.Format =
definition.NumberFormat;
}
sheet.SheetView.FreezeRows(1);
sheet.Row(1).Style.Fill.BackgroundColor = XLColor.LightBlue;
Rows can then be written from paged report records without coupling the data model to the worksheet. Formulas require care because not every Excel calculation behaves identically outside Excel. Where an immediate, reliable value matters, the application can calculate it and write the result; spreadsheet formulas are better reserved for calculations that users are expected to recalculate.
Reliable exports also need explicit failure behaviour. If a row contains invalid data, the service can reject the request, place errors on a separate worksheet or continue with a documented exclusion list. It should never silently discard records. Generation can run in a background worker for large jobs, store the finished workbook in encrypted temporary storage and return a short-lived download link rather than holding the file in server memory.
Scaling report generation for larger datasets
Excel supports up to 1,048,576 rows and 16,384 columns per worksheet, but those limits do not make every large export practical. ClosedXML holds much of its workbook model in memory, and an unrestricted query can create substantial pressure on an application server. Source queries should therefore be paged, filtered and bounded before the first worksheet is created.
An application that repeatedly calculates totals over moving date or account ranges can examine a range-query segment tree to understand how interval aggregates reduce repeated work. The technique is not a replacement for a reporting database, but it can guide smarter in-memory aggregation when data changes between requests or arrives as a sequence of events.
The monthly reporting pattern common in Australian offices makes these controls especially relevant. A Sydney operations team might combine staffing, delivery and invoice records, then distribute the workbook through Microsoft Teams. A Melbourne finance team might request the same report for several cost centres. These patterns favour reusable parameter sets, cached reference data and predictable export queues.
Performance controls for large exports
- Page database queries and shape records incrementally rather than loading every row at once.
- Apply date-range, tenant and row-count limits before constructing the workbook.
- Split oversized datasets across worksheets or produce separate workbook parts.
- Schedule long-running jobs in a background worker and deliver an expiring download link.
Securing exports for Australian organisations
Report files can contain commercially sensitive or personal information even when the source is an authorised internal system. Access should be based on both identity and report entitlement, with tenant checks repeated when a job runs in the background. Australian Privacy Act obligations and the Australian Privacy Principles call for clear collection purposes, limited access, secure storage and controlled disposal, although not every organisation is covered by every provision.
Operational safeguards for report downloads
- Authenticate the requester and authorise access to the requested tenant and report.
- Validate filters and column selections against an allowlist before querying data.
- Record the requester, report definition, time and outcome in an audit log.
- Encrypt temporary workbooks and delete them automatically after a short expiry period.
Excel-specific input risks require additional handling. A text value beginning with an equals sign, plus sign, minus sign or at sign may be interpreted as a formula when the workbook is opened. Untrusted values should be forced to text or safely prefixed before being written. Exported files should also remain macro-free, use trusted package components and be scanned before delivery to a recipient.
The delivery lifecycle should fit the organisation’s existing controls. Some Australian mid-market and enterprise teams provide self-service downloads for authorised managers, while others route reports through controlled finance workflows. Both models need an audit identifier embedded in the workbook, a visible generation timestamp in the relevant Australian timezone and a clear owner responsible for archived copies.
Developers can compare implementation approaches and discuss the wider .NET ecosystem at the three-day C# Corner Annual Conference. Its sessions span C#, Azure, cloud computing, data, web development, DevOps, AI and RPA, placing spreadsheet generation within a broader enterprise architecture. Used together, these layers turn Excel export into a dependable product capability: finance teams receive consistent figures, workbooks open cleanly on locked-down Windows devices, and every download remains traceable to an authorised request.
1, CBD, Maharaj Surajmal Road, Near Yamuna Sports Complex, Delhi, 110032
GENERAL QUERIES
Manish Tewatia
manish@csharpcon.com
+91-9718-431-042
TICKET QUERIES
Atul Gupta
conference@csharpcon.com
+91-9910-125-804