Click here to Skip to main content
15,908,931 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to print a Bill.My Bill is generated from the database and I am writing it to text file.Now i am executing a batch file so that the text file gets printed but my problem is when i am printing the bill from n number of machines it always get printed on server side which should not happen.when i print the bill it should be printed on client side pls help Urgent

If any one knows pls send the source code?
Posted
Updated 23-Sep-11 7:40am
v3
Comments
Simon Bang Terkildsen 23-Sep-11 13:41pm    
IT's urgent and give me source is reserved for cases when you pay for the service. This is not a place to hire developers but to ask for help to specific problems.

I'm assuming you're working with a website here, I suggest you display the bill in the browser so the user can print it on his side.
 
Share this answer
 
You have a problem. You cannot command the clients to print something on their printer from the server. ASP.NET code always runs on the server and so does any app or batch file that you launch from your code.

This has to be done in client-side JavaScript. And no, you cannot execute a batch file on the client to do it either. Don't ask me for examples, I don't have any.
 
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