请帮助我在pdf中的每页上动态添加标题吗?在vb.net中 [英] please help me to add a header on each page in pdf dynamicly? in vb.net
本文介绍了请帮助我在pdf中的每页上动态添加标题吗?在vb.net中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请帮助我在pdf中的每页上动态添加标题吗?在vb.net
,我应该将数据表导出为pdf
我想在每个页面上传递标题
每次我编写动态生成的标头时:rose:
please help me to add a header on each page in pdf dynamicly? in vb.net
,i should export a data table to pdf
and i want pass the header on each page
every time i write a header that generate dynamicly:rose:
推荐答案
您如何编写PDF文件?如果使用打印机驱动程序,则只需在打印例程中设置标题.如果您使用的是PDF库,则可以使用任何功能设置页面标题.
How are you writing your PDF file? If you are using a printer driver then you just need to set the header in your print routines. If you are using a PDF library then use whatever function sets the page header.
感谢您的关注
不,我用作家在我的pdf上写
我的代码的一部分:
thank you for your attention
no i use a writer to write on my pdf
part of my code:
Dim buffer As [Byte]() = util.createPDF(title.Text, header, array)
Response.ClearContent()
Response.AddHeader("content-disposition", "attachment; filename=test.pdf")
Response.ContentType = "application/pdf"
Response.OutputStream.Write(buffer, 0, buffer.Length)
Response.OutputStream.Flush()
Response.OutputStream.Close()
Response.[End]()
elahe Amjadi写道:
elahe Amjadi wrote:
不,我使用作家在我的pdf上书写
no i use a writer to write on my pdf
您似乎在一次通话中编写了所有文本.我想您需要对输出进行分页,并在每个页面之前调用标题创建器.检查创建PDF文件的类.
You seem to be writing all the text in one call. I guess you need to paginate your output and precede each page with a call to the header creator. Check the class that creates the PDF file.
这篇关于请帮助我在pdf中的每页上动态添加标题吗?在vb.net中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文