In JSP, the detailed text of the word is printed. response. setcontenttype ("application/MSWord") is referenced in JSP. The opened page is the word style.
1. Achieve word horizontal typing:
<Style>
@ Page
{MSO-page-border-Surround-header: No;
MSO-page-border-Surround-footer: No ;}
@ Page Section1
{Size: 841.9pt 595.3pt; // size of the paper
MSO-page-orientation: landscape;
Margin: 89.85pt 72.0pt 89.85pt 72.0pt;
MSO-header-margin: 42.55pt; // Header
MSO-footer-margin: 49.6pt; // footer
MSO-paper-Source: 0;
Layout-grid: 15.6pt ;}
Div. Section1
{Page: Section1 ;}
</Style>
Use <Div class = "Section1"> </div> to implement
2. Create custom vertical la s
@ Page
{MSO-page-border-Surround-header: No;
MSO-page-border-Surround-footer: No ;}
@ Page Section1
{Size: 21.5, 14.00;
Margin-left: 0.5; // left margin
Margin-Right: 0.5; // right margin
Margin-top: 0.5; // top margin
Margin-bottom: 0.5 // bottom margin;
MSO-header-margin: 0.5;
Mm-footer-margin: 0.5;
Layout-grid: 0.5pt ;}
Div. Section1
{Page: Section1 ;}