本文介绍了请帮助我在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:

推荐答案


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中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 06:00