Home > Software engineering >  How to divide a long string and branch, paging, plus the header, font typesetting output after print
How to divide a long string and branch, paging, plus the header, font typesetting output after print

Time:10-27

How to divide a long string and branch, paging, plus the header, font typesetting output after print report?
Such as a long string, without any middle line break and enter, content is a combination of both English and Chinese symbols and Spaces,
Imagine the following steps:
1. How to per 160 placeholder (Chinese account for two English symbol space (1)
a newline is2. According to the line number: 1,4,7,11 such laws to set the the font size, 2,4,6,8, that line is also a kind of font and size
3. Every 4 lines to add a line blank line to separate
4. Then set the height and width of the paper to page to display these lines
5. Also add header is page
6. The last o to LPT1 printer or the output to the network printer

CodePudding user response:

Start recording macros in the Word2003, manual, complete the required function end record macros, press Alt + F11 key, check just record macro corresponding VBA code,
  • Related