TuesPechkin如何让PrintBackground = false在VB.NET for ASP.NET网页中工作

时间:2014-08-08 06:39:25

标签: pechkin

@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工作

1 个答案:

答案 0 :(得分:0)

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

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