Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi everyone,
i developed an application in c#, which maintains a form in which students fills its details and fees.... i have two problems
1) i want to host my application to intranet ,where many computer can access the application in my department
2) i want an icon by name "Print" (button) in the form where by clicking it the page will be get printed.i want to know the coding part of this.
i am new to this area ,please help me from scratch.
would be a great help.
Posted
Comments
ZurdoDev 25-Mar-13 8:41am    
What do you need help with regarding #1? For #2, there are lots of examples online. An easy way is to use JS's window.print() method.
bbirajdar 25-Mar-13 8:42am    
Is it a Winforms or webforms application?
Hemant Singh Rautela 25-Mar-13 9:11am    
First It should be web application....

& if it is then you have to buy a domain & hosting to upload your application on server, then you can just copy paste your application folder to server using filezila or other software....(if you want to buy domain/hosting you can contact me for it)

& now 2nd point for print button you can use javascript for it...

1 solution

1) To do this on the intranet, you need to install the app on each PC - for C#4.0, you can create an new Project "Setup and Deployment" which will do the hard work for you. Be aware though, if you have written this to share data, or update data files from multiple places, it probably will fail in unpredictable ways. If you have used SQL Server or similar, you should just need to configure the connection string.

2) Look at using the PrintDocument class[^] - the link contains an example.
 
Share this answer
 
v2

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