如何将打印预览页面保存为pdf或vb中的任何doc类型文件 [英] how to save a print preview page as pdf or in any doc type file in vb
问题描述
我创建了一个像记事本一样的表单来从用户那里获取数据并进行打印,
i在创建打印预览表单方面取得了成功,现在我想将文档保存在任何文档中格式如pdf,doc或任何类型而不是txt文件
这是可以保存文件而不是打印已连接打印机
Private Sub ToolStripButton1_Click(ByVal sender As System.Object,ByVal e As System.EventArgs)Handles ToolStripButton1.Click
PrintDocument1.Print()
结束Sub
i created a form like notepad to take the data from user and to print it,
i got success in creating a print preview form and it works smoothly now i want to save the document in any document format like pdf, doc or in any type instead of txt document
is this is possible to save the document instead of printing while a printer is already connected
Private Sub ToolStripButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButton1.Click
PrintDocument1.Print()
End Sub
推荐答案
试试这个链接如何使用c#将数据导出为PDF [ ^ ]
这篇关于如何将打印预览页面保存为pdf或vb中的任何doc类型文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!