当前位置:编程学习 > JAVA >>

txt 按文本内容 分页打印

举例如下内容的TXT文档,中是两张发票的内容,我是希望能每张发票在打印的时候 都在同一页上,但在实际打印的时候并不会这样,一张发票内容可能被分到两张纸上 打印出来。但是这两张发票内容的行数又不尽一致 但是开头都是一样的 上面是虚线 然后下面 是INVOICE,所以请高手帮忙,看看是否有办法,设置成遇到内容为“--------------”就能另起一页开始打印。
                         --------------
                            INVOICE
                                                       NO.123456
                                                       DATE:05/07/2013
using System; using System.Collections.Generic; using  
System.ComponentModel; using System.Data; using System.Drawing; using  
System.Linq; ...
download.csdn.net/detail/jmj49314/43...
using System; using System.Collections.Generic; using  
System.ComponentModel; using System.Data; using System.Drawing; using  
System.Linq; ...
download.csdn.net/detail/jmj49314/43...
using System; using System.Collections.Generic; using  
System.ComponentModel; using System.Data; using System.Drawing; using                     
                         --------------
                            INVOICE
                                                        NO.889011
                                                        DATE:05/07/2013
using System; using System.Collections.Generic; using  
System.ComponentModel; using System.Data; using System.Drawing; using  
System.Linq; ...
download.csdn.net/detail/jmj49314/43...
using System; using System.Collections.Generic; using  
System.ComponentModel; using System.Data; using System.Drawing; using  
System.Linq; ...
download.csdn.net/detail/jmj49314/43...
using System; using System.Collections.Generic; using  
System.ComponentModel; using System.Data; using System.Drawing; using
System.Linq; ...
download.csdn.net/detail/jmj49314/43...
using System; using System.Collections.Generic;  

                          --------------------编程问答-------------------- 补充一下,是在Windows7的环境下,用notepad打开。 --------------------编程问答-------------------- 貌似是真正意义上的打印。。。 --------------------编程问答-------------------- --------------------编程问答--------------------   内容太多一页打印不了,或者程序设置是不能一页打印的。 --------------------编程问答-------------------- 学习了,谢谢楼主! --------------------编程问答-------------------- 使用的什么技术打印的,比如Java
--------------------编程问答-------------------- 除 --------------------编程问答-------------------- 除
补充:Java ,  J2ME
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,