Link to home
Start Free TrialLog in
Avatar of ullenulle
ullenulleFlag for United States of America

asked on

Issues sending raw print to printer on save.

Hi there.

I have a problem with a closed question:

http://www.experts-exchange.com/Programming/Languages/Scripting/ASP/Q_28654721.html

I need a few more details to make it Work. :-)  This is what I can do so far:

Installing the printer and driver. I can also make prints to the printer from the QZ Print on: https://demo.qz.io/

But then I get a Little lost about what code to place where:

function print()   - where should that be located?

and the code snippet after that should be where?

I do understand that asp will be processed before java.

I would appreciate BIG time if you could give me a few more hints. I'm not a super nerd into java and AJAX. Classic asp I do know well.

Thank you in advance.

Best regards

Ulrich
ASKER CERTIFIED SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Note: I edited the last line of the code.

myJs = "</script>"
should be
myJs = myJs &"</script>"
Avatar of ullenulle

ASKER

Hi Scott.

Thank you. You are a hero! :-)  I know Java isn't Javascript. Anyways... I have one problem right now: Where do I find qz.print(); and qz.append? I can't find them in the source. Or am I looking at the wrong spot?

Best regards

Ulrich
Those are functions that I think just talk to the applet. As long as you have the supporting files you are good.
Ok. I feel so dumb with Javascript... The "sample.html" Works fine locally from my computer, but if I upload it to the webserver including the:

<script type="text/javascript" src="js/3rdparty/deployJava.js"></script>
<script type="text/javascript" src="js/qz-websocket.js"></script>

... and adding ../  to the source like:

<script type="text/javascript" src="../js/3rdparty/deployJava.js"></script>
<script type="text/javascript" src="../js/qz-websocket.js"></script>

so that it's relative to the sample-html, then it won't Work. I just want to make it Work on the server step by step... dooohhh.... :-(
Can you post a link to your test page?
Unfortunately  not. It's an internal server at work behind firewalls and stuff, so there's  only access for employees in a specific department.
Top notch! ;-)