我已将“页面设置”窗口中的确定按钮的修改如下:
If Forms("委转单修改").opened Then
Dim rdo2 As WinForm.RadioButton = e.Form.Controls("RadioButton1")
If rdo2.Checked = True Then
forms("委转单维护B").page.Landscape = False
Dim hig As WinForm.TextBox = e.Form.Controls("hig")
Dim wid As WinForm.TextBox = e.Form.Controls("wid")
forms("委转单维护B").page.Width = wid.value
forms("委转单维护B").page.Height = hig.Value
Dim zbj As WinForm.TextBox = e.Form.Controls("zb")
Dim ybj As WinForm.TextBox = e.Form.Controls("yb")
Dim sbj As WinForm.TextBox = e.Form.Controls("sb")
Dim xbj As WinForm.TextBox = e.Form.Controls("xb")
forms("委转单维护B").page.LeftMargin = zbj.value
forms("委转单维护B").page.RightMargin = ybj.value
forms("委转单维护B").page.BottomMargin = xbj.value
forms("委转单维护B").page.TopMargin = sbj.value
Else
forms("委转单维护B").page.Landscape = True
Dim hig As WinForm.TextBox = e.Form.Controls("hig")
Dim wid As WinForm.TextBox = e.Form.Controls("wid")
forms("委转单维护B").page.Width = wid.value
forms("委转单维护B").page.Height = hig.Value
Dim zbj As WinForm.TextBox = e.Form.Controls("zb")
Dim ybj As WinForm.TextBox = e.Form.Controls("yb")
Dim sbj As WinForm.TextBox = e.Form.Controls("sb")
Dim xbj As WinForm.TextBox = e.Form.Controls("xb")
forms("委转单维护B").page.LeftMargin = zbj.value
forms("委转单维护B").page.RightMargin = ybj.value
forms("委转单维护B").page.BottomMargin = xbj.value
forms("委转单维护B").page.TopMargin = sbj.value
End If
End If
DataTables("纸张设置表").Save()
e.Form.Close
修改后运行,仍然没有反应,请问怎么解决?谢谢指教!!