{"action":"opened","issue":{"url":"https://api.github.com/repos/mike42/escpos-php/issues/67","labels_url":"https://api.github.com/repos/mike42/escpos-php/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/mike42/escpos-php/issues/67/comments","events_url":"https://api.github.com/repos/mike42/escpos-php/issues/67/events","html_url":"https://github.com/mike42/escpos-php/issues/67","id":117104904,"number":67,"title":"Error : Couldn't print to this printer: Failed to copy file to printer when I'm trying to print from a shared printer (USB)","user":{"login":"moradrouaguy","id":7808073,"avatar_url":"https://avatars.githubusercontent.com/u/7808073?v=3","gravatar_id":"","url":"https://api.github.com/users/moradrouaguy","html_url":"https://github.com/moradrouaguy","followers_url":"https://api.github.com/users/moradrouaguy/followers","following_url":"https://api.github.com/users/moradrouaguy/following{/other_user}","gists_url":"https://api.github.com/users/moradrouaguy/gists{/gist_id}","starred_url":"https://api.github.com/users/moradrouaguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moradrouaguy/subscriptions","organizations_url":"https://api.github.com/users/moradrouaguy/orgs","repos_url":"https://api.github.com/users/moradrouaguy/repos","events_url":"https://api.github.com/users/moradrouaguy/events{/privacy}","received_events_url":"https://api.github.com/users/moradrouaguy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-16T11:30:36Z","updated_at":"2015-11-16T11:30:36Z","closed_at":null,"body":"I'm trying to print from a computer which is not connected to the printer directly but it's connected by the shared printer in the same network of the connected computer (USB).\r\n\r\nI have two computers in the same network, the first one is connected by USB to the printer, I shared this printer then I installed it on the second computer I can print a test page It's works fine. But when I'm trying to print from the web page I get this error : \"Couldn't print to this printer: Failed to copy file to printer.\"\r\n\r\nMy web page : \r\n\r\n```<?php\r\nrequire_once(dirname(__FILE__) . \"/escpos-php/Escpos.php\");\r\ntry {\r\n\t$connector = new WindowsPrintConnector(\"smb://COMPUTERNAME/epson\");\r\n\t$printer = new Escpos($connector);\r\n\t$printer -> text(\"Hello World\");\r\n\t$printer -> cut();\r\n\t$printer -> pulse();\r\n\t$printer -> close();\r\n} catch(Exception $e) {\r\n\techo \"Couldn't print to this printer: \" . $e -> getMessage() . \"\\n\";\r\n}\r\n?>\r\n\r\nAnyone can help me, please ?\r\n\r\n\r\n"}}