You need to sign in to do that
Don't have an account?
Connor Cain
Visualforce export Excel with wrapped text
hello, i am printing a Table into a Excel spread-sheet and need the text to wrap in the <Cell> tags? Below is the Style im using so far
<Style ss:ID="s1">
<Alignment/>
<Borders>
<Border ss:Position="Bottom" ss:LineStyle="Double" ss:Weight="3"/>
<Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
</Borders>
<Font ss:Bold="1"/>
<Interior ss:Pattern='Solid' ss:Color="#2f9f38" ss:white-Space="normal"/>
<NumberFormat/>
<Protection/>
</Style>
<Style ss:ID="s1">
<Alignment/>
<Borders>
<Border ss:Position="Bottom" ss:LineStyle="Double" ss:Weight="3"/>
<Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
</Borders>
<Font ss:Bold="1"/>
<Interior ss:Pattern='Solid' ss:Color="#2f9f38" ss:white-Space="normal"/>
<NumberFormat/>
<Protection/>
</Style>
Try this
Apparently, the wrap Text attribute in the Style ID works
Adding the ss:WrapText="1" in the alignment made it work perfectly.
All Answers
<Alignment ss:WrapText="1"/>
Try this
Apparently, the wrap Text attribute in the Style ID works
Adding the ss:WrapText="1" in the alignment made it work perfectly.