在windows环境,将数据库读出的数据表格在打印机上打印出来。php可以实现吗? 请问楼上的怎么实现谢了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在IE下的话,可以用js调用IE的打印功能啊。在网上随便拷来的function printPage($auto=1,$timeOut=10000) { if ($auto == 1) { echo " < SCRIPT LANGUAGE="JavaScript" > < !-- Begin if (window.print) { window.print(); } else { alert('No printer driver in your PC'); } // End -- > < /script > n"; } else { echo " < SCRIPT LANGUAGE="JavaScript" > < !-- Begin if (window.print) { setTimeout('printCheck()','$timeOut'); } else { alert('No printer driver in your PC'); } function printCheck() { agree = confirm('OK to print now?'); if (agree) window.print(); } // End -- > < /script > n"; } } 求一个PHP4或者PHP5能用的php_w32api.dll 关于PHP文件下载乱码(损坏)的问题 fck 编辑器高度如何设置 Zend5.20,apache2.2.4 ,php5.21下不能调试 PHP如何退出登录时清除cookies js调用php代码 怎么对上传了的文件扫毒? 谁能给个必须用ob_start( ) 的例子 PHP中一个简单的JAVA脚本问题! php+odbc+dbase的问题,高分求答案 创建临时表,添加了数据,然后怎么用阿?? 设置register_globals = Off后session在两个页面间不能传递 急急急急!!!
在网上随便拷来的
function printPage($auto=1,$timeOut=10000) {
if ($auto == 1) {
echo "
< SCRIPT LANGUAGE="JavaScript" >
< !-- Begin
if (window.print) {
window.print();
}
else {
alert('No printer driver in your PC');
}
// End -- >
< /script >
n";
}
else {
echo "
< SCRIPT LANGUAGE="JavaScript" > < !-- Begin
if (window.print) {
setTimeout('printCheck()','$timeOut');
}
else {
alert('No printer driver in your PC');
}
function printCheck() {
agree = confirm('OK to print now?');
if (agree) window.print();
}
// End -- >
< /script >
n";
}
}