2

我是 vb 的新手,我不明白错误,此代码使用 webkitdotnet,我制作了一个浏览器,我想更改打印页面设置边距值。

代码是,

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    WebKitBrowser1.Navigate("http://localhost:78/print/printer.asp")
    WebKitBrowser1.PageSettings.Margins(set="5, 5, 5, 5")


End Sub

结束错误是

Property access must assign to the property or use its value.

如何设置新的页边距?

4

1 回答 1

0
With WebKitBrowser1.PageSettings.Margins
        .Bottom = 5
        .Left = 5
        .Top = 5
        .Right = 5
End With
于 2012-12-14T20:30:23.267 回答