C#实现 HTML或WORD转换成PDF
如题 --------------------编程问答-------------------- 简单的办法是安装一个PDF打印机,直接打印。 要用代码实现转换,不是很容易啃的骨头。 --------------------编程问答-------------------- Response.ClearResponse.ContentType = "application/pdf"
Response.AddHeader "content-disposition", "attachment; filename=" & FileName
Set Stream = server.CreateObject("ADODB.Stream")
Stream.Type = adTypeBinary
Stream.Open
Stream.LoadFromFile Server.MapPath(FileName)
While Not Stream.EOS
Response.BinaryWrite Stream.Read(1024 * 64)
Wend
Stream.Close
Set Stream = Nothing
Response.Flush
Response.End
--------------------编程问答--------------------
支持 --------------------编程问答-------------------- 装一个office 2007 再装一个word转PDF的插件,快速,方便
补充:.NET技术 , C#