Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:下拉列能列出所有已安装的打印机名称

1楼
annan 发表于:2011/8/20 18:07:00

示例

在命令窗口执行下面的代码,可以列出所有已经安装的打印机名称:

 

For Each p As String in InstalledPrinters
    Output
.Show(p
)
Next

 

 

我希望用到窗口中,下拉列能列出所有已安装的打印机名称,点按钮,将文档使用选择的打印机名称进行打印

 

 下载信息  [文件大小:   下载次数: ]
点击浏览该文件:实验.table

2楼
狐狸爸爸 发表于:2011/8/20 18:59:00
Dim cmb As WinForm.ComboBox = e.form.Controls("ComboBox1")
For Each p As String In InstalledPrinters
   cmb.Items.Add(p)  
Next
共2 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .02344 s, 3 queries.