No Protocol

61 views
Skip to first unread message

emil.s...@gmail.com

unread,
Dec 27, 2015, 2:05:16 AM12/27/15
to qz-print
Hi all,

I've been trying to using qz tray.
When I try to print a file from the server, there's an Error Printing message said "no protocol: /tmp/testing.txt"

Could anyone help me with this error message. What exactly the meaning of this error, is it because it can't find the file or because something else ?

Thank you.

Best regards,
Immanuel G. Souhoka

Kyle La Barge

unread,
Dec 27, 2015, 11:10:27 AM12/27/15
to emil.s...@gmail.com, qz-print
Hi Immanuel,

The location '/tmp/testing.txt' is probably unreachable.  Have you tried printing to the full path?  Here are some examples:

qz.printToFile("C:\\tmp\\testing.txt");
 
qz.printToFile("/home/user/tmp/testing.txt");

 qz.printToFile("\\server_name\tmp\testing.txt")

Note that a location will not be created if it does not exist.  Please let us know if this helped you resolve the issue.

Regards, 


Kyle LaBarge
Technical Support
QZ Industries, LLC
ky...@qz.io



--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kyle La Barge

unread,
Dec 27, 2015, 3:44:53 PM12/27/15
to Immanuel Gabriel Souhoka, qz-print
Hi Immanuel,

I would like to add to my initial email, as on a second look, it is likely that you are using qz.appendFile() and not qz.printToFile().

My initial response still apply's, however, as the error is probably due to an invalid path.  QZ Tray needs the full path name; relative paths will not work. For example, you would want to use something similar to:

qz.appendFile("https://localhost/tmp/testing.txt"); 

OR

qz.appendFile("file:///C:/tmp/testing.txt"); 
 

For a more specific answer we would need to know the context in how you are using that file path.  I hope you find this email helpful.

Regards,



Kyle LaBarge
Technical Support
QZ Industries, LLC
ky...@qz.io


Immanuel G. Souhoka

unread,
Jan 2, 2016, 5:15:26 PM1/2/16
to Kyle La Barge, qz-print
Hi Kyle,

Sorry for my late response.
I've fixed the url inside the appendFile, as you suggested and now it's working fine. :)

Thank you for your help.


Best Regards,
Immanuel G. Souhoka

Kyle La Barge

unread,
Jan 2, 2016, 6:57:08 PM1/2/16
to Immanuel Gabriel Souhoka, qz-print

Hi Immanuel,

I'm glad to hear that resolved the issue. If you have anymore questions feel free to contact us!

Regards,
Kyle

Reply all
Reply to author
Forward
0 new messages