ClosedXML.Report icon indicating copy to clipboard operation
ClosedXML.Report copied to clipboard

Count tag does not work properly

Open enverkrinickii opened this issue 2 years ago • 5 comments

Hello, As I understand, count tag calculates lines count, but in my case it calculates subtotal with type = "2" ( SUBTOTAL(2,B2:B44) ) If I override it with "3" type it works but I cannot add "Total: " word Please see attached teplate. Thank you in advance.

RVRWConnectionReport.xlsx

enverkrinickii avatar May 26 '22 12:05 enverkrinickii

 Use counta tag instead.-----------------С уважением, Алексей.   26.05.2022, 15:19, "enverkrinickii" @.**>: Hello,As I understand, count tag calculates lines count, but in my case it calculates subtotal with type = "2" ( SUBTOTAL(2,B2:B44) )If I override it with "3" type it works but I cannot add Total: ** wordPlease see attached teplate.Thank you in advance.RVRWConnectionReport.xlsx—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.>

b0bi79 avatar May 27 '22 17:05 b0bi79

@b0bi79 counta?

enverkrinickii avatar May 27 '22 20:05 enverkrinickii

Yes. <<counta>>

b0bi79 avatar May 30 '22 09:05 b0bi79

@b0bi79 it works, thank you can you please specify a page with this tag? I did not find it in your's documentation

enverkrinickii avatar May 31 '22 05:05 enverkrinickii

For some reason, this tag was not included in the documentation. I'll fix it later. A complete and up-to-date list of tags can be found in the code https://github.com/ClosedXML/ClosedXML.Report/blob/203934de8d81d024f99c07d808194754ed435fcf/ClosedXML.Report/XLTemplate.cs#L25

b0bi79 avatar Jun 07 '22 19:06 b0bi79