Title: Printing to a ESCPOS shared printer in W10 · python-escpos/python-escpos · Discussion #506 · GitHub
Open Graph Title: Printing to a ESCPOS shared printer in W10 · python-escpos/python-escpos · Discussion #506
X Title: Printing to a ESCPOS shared printer in W10 · python-escpos/python-escpos · Discussion #506
Description: Printing to a ESCPOS shared printer in W10
Open Graph Description: Is it possible to print to a ESCPOS printer being shared by another pc (W10)? PC1 has ESCPOS printer connected to it by USB. PC1 shares this printer. Is it possible for a PC2 to print to this print...
X Description: Is it possible to print to a ESCPOS printer being shared by another pc (W10)? PC1 has ESCPOS printer connected to it by USB. PC1 shares this printer. Is it possible for a PC2 to print to this print...
Opengraph URL: https://github.com/python-escpos/python-escpos/discussions/506
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"Printing to a ESCPOS shared printer in W10","text":"\u003cp dir=\"auto\"\u003eIs it possible to print to a ESCPOS printer being shared by another pc (W10)?\u003c/p\u003e\n\u003cp dir=\"auto\"\u003ePC1 has ESCPOS printer connected to it by USB. PC1 shares this printer.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eIs it possible for a PC2 to print to this printer using this library?\u003c/p\u003e","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"\u003cp dir=\"auto\"\u003eHi \u003ca class=\"user-mention notranslate\" data-hovercard-type=\"user\" data-hovercard-url=\"/users/pruifernandes/hovercard\" data-octo-click=\"hovercard-link-click\" data-octo-dimensions=\"link_type:self\" href=\"https://github.com/pruifernandes\"\u003e@pruifernandes\u003c/a\u003e !\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eYes, it is possible thanks to the \u003ccode class=\"notranslate\"\u003eWin32Raw()\u003c/code\u003e connector.\u003cbr\u003e\nYou can see \u003ca href=\"https://github.com/python-escpos/python-escpos/issues/443#issuecomment-767165052\" data-hovercard-type=\"issue\" data-hovercard-url=\"/python-escpos/python-escpos/issues/443/hovercard\"\u003ethis\u003c/a\u003e reply.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eUsage:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"import escpos.printer as printer\n\np = printer.Win32Raw(printer_name='your_shared_printer_name')\np.open()\np.textln(\u0026quot;Hello Win32Raw!\u0026quot;)\np.close()\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode class=\"notranslate\"\u003eimport escpos.printer as printer\n\np = printer.Win32Raw(printer_name='your_shared_printer_name')\np.open()\np.textln(\"Hello Win32Raw!\")\np.close()\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eI think you need to install the \u003ca href=\"https://github.com/mhammond/pywin32\"\u003epywin32\u003c/a\u003e package in order to use the \u003ccode class=\"notranslate\"\u003eprinter.Win32Raw() connector.\u003c/code\u003e\u003cbr\u003e\nAlso, your shared printer must be able to print remotely from PC2, since the connector just forwards raw ESC/POS commands to the Windows print API.\u003c/p\u003e","upvoteCount":2,"url":"https://github.com/python-escpos/python-escpos/discussions/506#discussioncomment-5001678"}}}
| route-pattern | /:user_id/:repository/discussions/:number(.:format) |
| route-controller | discussions |
| route-action | show |
| fetch-nonce | v2:70983a32-7550-058c-77ec-8892c7767ede |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | B8C2:2E1914:14F9615:1C7078F:6A4D76F1 |
| html-safe-nonce | 7b4956deee67a09c355c3a9809cba9c5cfc578988820e7d40f39f00e62d92f04 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEMyOjJFMTkxNDoxNEY5NjE1OjFDNzA3OEY6NkE0RDc2RjEiLCJ2aXNpdG9yX2lkIjoiMjczMTI3MTk4NDUzMjMzMzkzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 231b2e8a822033fc187096ac927b3224c04fc78502de7f5c995c0ecff90388f7 |
| hovercard-subject-tag | discussion:4865219 |
| github-keyboard-shortcuts | repository,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python-escpos/python-escpos/discussions/506 |
| twitter:image | https://opengraph.githubassets.com/97cfe2de6a6f95c677a6768a475ac52a4b1b1d1339f822576b7274228e28aa34/python-escpos/python-escpos/discussions/506 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/97cfe2de6a6f95c677a6768a475ac52a4b1b1d1339f822576b7274228e28aa34/python-escpos/python-escpos/discussions/506 |
| og:image:alt | Is it possible to print to a ESCPOS printer being shared by another pc (W10)? PC1 has ESCPOS printer connected to it by USB. PC1 shares this printer. Is it possible for a PC2 to print to this print... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f8e15305e2ab58890ca84b830615e375f5df303cf471cafcba0c08272981be3 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-escpos/python-escpos git https://github.com/python-escpos/python-escpos.git |
| octolytics-dimension-user_id | 16302939 |
| octolytics-dimension-user_login | python-escpos |
| octolytics-dimension-repository_id | 32363483 |
| octolytics-dimension-repository_nwo | python-escpos/python-escpos |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 32363483 |
| octolytics-dimension-repository_network_root_nwo | python-escpos/python-escpos |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8608b0750fc35e283e5ec5b094bff942d7a0e197 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width