怎样测试打印机是否有效 问题:检测一下当前的打印机是否有效,能不能打印东西,用什么代码可以实现? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Uses printers;Combobox1.items.clear;Combobox1.items.Assign(Print.Printers);if Combobox1.Items.CommaText='' then begin showmessage('你需要安装打印机才能打印!'); endelse begin showmessage('正在打印!'); end; 额,搞不定delphi的TComboBox控件问题!!! DBEdit无法输入字符 AdoTable怎样查找出符合两个字段内容要求的记录? 查询后获得某列合计数的问题 关于打开对话框的API函数问题 怎样判断一个对象有没有建立实例? 关于delphi 2010 TSQLConnection 连接SQL Server2000 问题 使用控件调控EXCEL和使用COM调控EXCEL有什么不同 如何使程序只有在关闭操作系统时才关闭 关于OleVariant类型变量 请用过ModelMaker 7.05建模的兄弟帮忙! Delphi2006里无法使用StarTeam吗?
Combobox1.items.clear;
Combobox1.items.Assign(Print.Printers);
if Combobox1.Items.CommaText='' then
begin
showmessage('你需要安装打印机才能打印!');
end
else
begin
showmessage('正在打印!');
end;