synchronus anno 02-08-2008, 06:53 PM in http://www.phpbuilder.com/board/archive/…t-10100599.html
macht das so: er shared den drucker am client und druckt vom server drauf aus.
und zwar mit - zitat:
jason at matteson dot com wrote a comment in that section its brief conclusion a nice function to access the printer by it's shared name
function getPrinter($SharedPrinterName) {
global $REMOTE_ADDR;
$host = getHostByAddr($REMOTE_ADDR);
return "\\\\".$host."\\".$SharedPrinterName;
}
und, wenn der drucker COMPUTERNAME-printer heisst, zB. joesdesktop-printer: zitat:
function getClientPrinter() {
$host = getHostByAddr($_SERVER['REMOTE_ADDR']);
return "\\\\".$host."\\".$host.'-printer';
}
$handle = printer_open(getClientPrinter());
ich weiss nicht was das genau heisst, aber wurscht zitat: ..this is a solution i hope to PHP/Windows Client WebApps Printing, where the shared printer network name is used for communication.
klingt super! big medal award!
ich glaub so mach ichs.
der server wird doch keinen drucker-dialog aufmachen oder?? für wen auch? ich probiers mal..
spotti