the generated excel doesn't start from first row if there are multiple if #295
Unanswered
takeAction
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using
jxls 2.14.0
, I have a excel template which looks like following:it has three parts :
A
,B
andC
, each time only one part will be generated.for
A1
, I addjx:area(lastCell="C6") jx:if(condition="type == 1", lastCell="C2" )
for
${b.a1}
, I addjx:each(items="list" var="b" lastCell="C2")
for
B1
, I addjx:if(condition="type == 2", lastCell="C4" )
for
${b.b1}
, I addjx:each(items="list" var="b" lastCell="C4")
for
C1
, I addjx:if(condition="type == 3", lastCell="C6" )
for
${b.c1}
, I addjx:each(items="list" var="b" lastCell="C6")
if
type == 1
, then only partA
will be generated and it start from first row; iftype == 2
, then only partB
will be generated and it start from first row too.but for part
C
, it starts from third row, first row and second row are empty row, why? how to make partC
also start from first row?Beta Was this translation helpful? Give feedback.
All reactions