【问题标题】:TuesPechkin how to get PrintBackground = false to work in VB.NET for ASP.NET webpagesTuesPechkin 如何让 PrintBackground = false 在 VB.NET 中为 ASP.NET 网页工作
【发布时间】:2014-08-08 06:39:25
【问题描述】:
@Imports TuesPechkin

Dim WebSettings = New WebSettings()
With WebSettings
   .PrintBackground = False
End With
Dim URL As New Uri("http://www.adelaide.edu.au")
Dim converter As IPechkin = Factory.Create()
Dim result As Byte() = converter.Convert(URL) 
File.WriteAllBytes(Server.MapPath("") & "\example.pdf", result)

不知道如何让 .PrintBackground = False 工作

【问题讨论】:

    标签: pechkin


    【解决方案1】:

    websettings 对象在哪里连接到转换器对象?

    如果两者没有连接,那么 websettings 的设置不会有任何区别。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-07-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-10
      • 1970-01-01
      • 2013-06-01
      相关资源
      最近更新 更多