0

我正在创建一个可以执行多种格式的导出系统,其中一种是纯文本。我希望在打印文档时,带有列名的标题出现在每页的顶部。有没有办法可以强制以纯文本形式分页。我只在 HTML/CSS 中找到了解决方法。文件的输出格式如下所示:

+----------+----------------+
| Column 1 |    Column 2    |
+----------+----------------+
| Data     | More Data      |
+----------+----------------+
| Data     | More Data      |
+----------+----------------+
| Data     | More Data      |
+----------+----------------+
4

1 回答 1

3

You could try sending an ASCII form feed which is character 0xC. If the text is sent directly to a printer, then that character will force the printer to eject the page.

于 2011-07-11T17:16:20.273 回答