首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VB >

VB vsprinter解决方案

2012-02-05 
VB vsprinter在VB中有一种打印机控件vsprinter,在打印的过程中出现“|”时,会自动地分到下一页中。有没有关于

VB vsprinter
在VB中有一种打印机控件vsprinter,在打印的过程中出现“|”时,会自动地分到下一页中。
有没有关于这个方面的文章?
请提供给我,谢谢。
急!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

[解决办法]
ComponentOne 的控件不是有帮助文档吗?自己去看就是啦

This routine starts by creating a long document consisting of 50 random headings with bodies of random text. Each heading has a "heading tag " associates with it. The tags are created with the StartTag and EndTag methods, and have the format "H1|n|s ", where H1 indicates this is a level 1 heading, n is the heading 's sequential number, and s is the heading text.

When the document is done, the routine starts a new page with the Table of Contents. The it builds the table of contents by searching the document for the heading tags ( "H1|1 ", "H1|2 ", etc.) using the FindTag property. For each tag found, the code uses the RetrieveTag property to retrieve the full tag text, then calls the AddToTOC routine to write out the TOC entry.

Finally, the MovePages method is used to move the TOC to the beginning of the document

热点排行