Dim dyj As RibbonMenu.ComboBox = RibbonTabs("功能区1").Groups("功能组1").Items("组合框1") For Each p As String In InstalledPrinters Dim b As New RibbonMenu.Button(p) b.Text = p dyj.Items.add(b) Next
-----------------打印
Dim dyj As RibbonMenu.ComboBox = RibbonTabs("功能区1").Groups("功能组1").Items("组合框1") CurrentTable.PrintInfo.PrinterName = dyj.Text CurrentTable.Print(True, False)