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

4

1 回答 1

0

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

如果两者未连接,则设置 websettings 不会有任何区别。

于 2015-01-11T21:02:23.630 回答