Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to send a print job to a printer with set quantity

Status
Not open for further replies.

paulfla

Programmer
Apr 22, 2002
29
US
This is what I've been asked to do:
-------------------------
I want to be able to have a website create print jobs:

Go online select item(s) from list/form.
Postscript or pdf file associated with item(s).
Submit order sends print job(s) to color copier, ideally with quantity ordered.
Also prints out a packing list with shipping instructions.

Can you assocaiate a print quantity with the file?
-------------------------

I can figure out how to do most of this except I have no idea how to "send a print job(s) to color copier, ideally with quantity ordered." from a web page

Can somone tell me if they've done something like this? Maybe I am going to have to call a Visual Basic program??? Is it realistically feasible?

Thank you in advance for your time.
 
i dont know, maybe u are looking for just this:
<script>
window.print()
</script>

Known is handfull, Unknown is worldfull
 
I wish it was that easy.

The vistors print selection needs to print on our Color Copier Print Press Machine.

I believe the code above will print on the vistor's local printer. I don't want that.

Thanks for your response though.
 
ah, got confused.

what kind of control do you have over the server? can u execute DLL files on it?

the soln migth be simple.

u could maybe create an instance of the printer object in the ASP file.

ThePrintObject=server.createobject("PRINTEROBJECT")
'u need to use COM to access the file.


if you can do that then i think it might work.

e.g:
wshell object (which is basically a windows DLL object)...


Known is handfull, Unknown is worldfull
 
It is our server and we have complete control of it.

Would you happen to have any source code examples?

Thanks again.
 
my solution once many moons ago was to use the TYPE command.

then all I needed to was...
WScriptObj.Run "cmd /c TYPE file"

or such. not sure on the syntax as it was a while ago. of course this only works on a trusted network also.

___________________________________________________________________

onpnt.com
SELECT * FROM programmers WHERE clue > 0
(0 row(s) affected) -->faq333-3811

 
derrr


WScriptObj.Run "cmd /c TYPE file>>\\printserver\printername"

___________________________________________________________________

onpnt.com
SELECT * FROM programmers WHERE clue > 0
(0 row(s) affected) -->faq333-3811

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top