Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

In ASP page (using VB code), I created a batch file to print something(like \lib\myfile.bat)
So, I want the client will run that file when it open the asp page. Can anyone help me? I'm using VB6 (ASP page)

------------------------

Else anyone can help me print a .txt file from server to LPT1 (on client) using VB (ASP page)

Thank for help!
Posted

1 solution

ASP is rubbish, why are you still using it ?

The ONLY way to do this is

1 - print the txt file to the client and then print it from there
2 - because it's a LAN, have the server connected to all the printers on the network, then you can write server side code to print to a known printer. If the server doesn't have the path to the printer, and the drivers installed, it's still not going to be possible.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900