Comments (8)
The named range of QLIST should not be B4:K5
, but A4:K5
. Check this should help.
Read the documentation here https://closedxml.github.io/ClosedXML.Report/docs/en/Flat-tables#Vertical-tables
Each range specifying the vertical table must have at least two columns and two rows. The leftmost column and the bottom row serve to configuration purposes and are treated the special way. After the report is built the service column is cleared, and the service row is deleted if it is empty.
from closedxml.report.
Thanks for your help.
i am attaching the template. i want the report format like that. is it possible
thanks in advance.
STUDENT_LIST.xlsx
from closedxml.report.
Try this
Cells A5 - <<pivot>>
, B5 - <<data>><<count>>
, F5 - <<column>>
As a result, ClosedXML.Report will create a pivot table on a new sheet.
from closedxml.report.
hi
Thanks for your suggestion.
getting the following error on template.SaveAs(filename)
Value cannot be null.\r\nParameter name: source
thanks
from closedxml.report.
Put your code in, I'll check it in the evening.
from closedxml.report.
Hi
Please find the code below.
`System.Data.DataTable oDt = oBL.rptClassSectionStudentList().Tables[0];
template.AddVariable("QLIST", oDt);
template.AddVariable("INST_NAME", oDt.Rows[0]["INST_NAME"]);
template.AddVariable("CLASS_NAME", oDt.Rows[0]["CLASS_NAME"]);
template.AddVariable("SECTION_NAME", oDt.Rows[0]["SECTION_NAME"]);
template.AddVariable("ST_COUNT", oDt.Rows[0]["ST_COUNT"]);
template.AddVariable("LOGIN_NAME", oDt.Rows[0]["LOGIN_NAME"]);
template.Generate();
template.SaveAs(fileName);
also the template is attached.
thanks in advance
STUDENT_LIST.xlsx
from closedxml.report.
Did you manage to solve the problem?
from closedxml.report.
Closed due to a long wait for an answer. If the issue is still relevant, reopen it.
from closedxml.report.
Related Issues (20)
- Unknown identifier 'item' for {{item}} HOT 1
- Method not found: ClosedXML.Excel.IXLRange ClosedXML.Excel.IXLPivotTable.get_SourceRange() HOT 1
- Template doesn't recognize nested list
- Question : how do i get a horizontal table to grow verticaly and horizontaly
- How to define a range name when the data source includes an underscore (_)?
- in .net 8 its impossible to use ClosedXml newest version (0.102.1) with ClosedXml.Report 0.2.8 HOT 1
- Unknown identifier 'item' Issue
- One bad formula results in total report generation failure
- Slow to export HOT 1
- multi table in report
- ClosedXML to 0.102.2 HOT 3
- How can I have only one line of grouping recaps?
- closedxml.report is missing NuGet package README file
- [Help Needed] Convert to PDF under Linux HOT 1
- Multiple tables styles HOT 1
- Excel chart display
- Problem with record at https://docs.closedxml.io/en/latest/features/tables.html#table-name
- Is it possible to correlate data from multiple worksheets ? HOT 1
- After generating a report, shapes are not displayed in correct position
- Conditional formatting breaks in template with multiple tables one below other
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from closedxml.report.