Avatar of ullenulle
ullenulle
Flag 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
MySQL ServerASPJava

Avatar of undefined
Last Comment
ullenulle

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Scott Fell

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Scott Fell

Note: I edited the last line of the code.

myJs = "</script>"
should be
myJs = myJs &"</script>"
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
Scott Fell

Those are functions that I think just talk to the applet. As long as you have the supporting files you are good.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
ullenulle

ASKER
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.... :-(
Scott Fell

Can you post a link to your test page?
ullenulle

ASKER
Unfortunately  not. It's an internal server at work behind firewalls and stuff, so there's  only access for employees in a specific department.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ullenulle

ASKER
Top notch! ;-)