tcedi / tcedi-ovms

T.C.E.D.I. Open Visitors Management System
Apache License 2.0
23 stars 10 forks source link

Connect to a DYMO printer #2

Open nkelly164 opened 5 years ago

nkelly164 commented 5 years ago

How can i Print to a dymo printer on a windows machine?I am getting these errors.

Generating the badge...

Your badge is being generated and printed... Please wait...

Notice: Undefined property: stdClass::$jobid in C:\xampp\htdocs\visitors\ipp_printing\PrintIPP.php on line 757

Warning: is_readable() expects parameter 1 to be a valid path, string given in C:\xampp\htdocs\visitors\ipp_printing\PrintIPP.php on line 76

Warning: Use of undefined constant debug_backtrace - assumed 'debug_backtrace' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\visitors\ipp_printing\http_class.php on line 316

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\visitors\ipp_printing\http_class.php on line 317

Warning: \nE_USER_WARNING: [errno: ]: Unable to connect to "tcp://127.0.0.1 port 631": No connection could be made because the target machine actively refused it. in C:\xampp\htdocs\visitors\ipp_printing\http_class.php on line 329

Notice: Undefined offset: 0 in C:\xampp\htdocs\visitors\ipp_printing\BasicIPP.php on line 1197

Warning: No Response From Server in C:\xampp\htdocs\visitors\ipp_printing\BasicIPP.php on line 1218

This window will be closed automatically in 1 second(s)...

tcedi commented 5 years ago

Hello,

Sorry for this late answer...

To print labels with a Dymo printer, you need to setup an IPP server. Currently, it has been tested with CUPS only, but it should also work with IPP servers built into some network label printers.

Since I've introduced username support for IPP printing in version 0.10 Release Candidate 2, it might be possible to use IPP server on Microsoft Windows Server too... I haven't tested that. You may want to try it out.

As stated in README.TXT, currently, an IPP server must be used for sharing the printer (only tested with CUPS), but it should also work with IPP network label printers. Of course, a linux client can be used as IPP server or if you use a Windows client, you can use a raspberry Pi, other a card board, or a virtual machine with Linux to share the printer with CUPS.

You might also wish to try to setup CUPS under Windows 10 by using WSL.

The next version of T.C.E.D.I. Open Visitors Management System should support multiple printing engines and LPR in addition to IPP, which should ease things under Windows and work out of the box with SafeQ...

Best Regards, J-D.