Page 1 of 1

copy a file to a printer

Posted: Tue Dec 02, 2003 4:58 am
by pelegk2
i wanto use the copy() function
to copy a file into a printer
so it will print it
how do i do that?
thanks in advance
peleg

Posted: Tue Dec 02, 2003 5:06 am
by Weirdan
The possibility to use copy function for printing depends on your OS, so please be more specific about it. (AFAIK, only Win* users can use copy to print).

yes i am using it from a printer

Posted: Tue Dec 02, 2003 5:33 am
by pelegk2
i tried to do this :

Code: Select all

<?
$source="C:\mysql\bin\pet.txt";
$dest="//192.168.4.215:9100//pet.txt";
echo $dest."<BR>";
if (!copy($source, $dest)) &#123;
    print ("failed to copy $dest...<br>\n");
&#125;


?>

Posted: Tue Dec 02, 2003 8:55 am
by infolock
dunno if you mean printing a file out on a computer, or actually copying a file ( like an engine code ) over to the printer.

if it's the engine code, i wrote a program in delphi that does this that might be beneficial to you.

http://www.delphi3000.com/articles/article_2846.asp

you'll have to register ( it's free ) to view the code though...