Reference response. setcontenttype ("application/MSWord"); in JSP. The open 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;
MSO-footer-margin: 0.5;
Layout-grid: 0.5pt;}
Div. section1
{page: Section1 ;}