Click here to Skip to main content
15,887,331 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have made one VB.NET windows application, it runs on startup of PC....it contains one function PRINTDATES() which prints one word document, now what i want to do is, my appliction must print the document on first startup of PC in one perticulre day...if I restart my PC, then it should not print the document....is there any function availabe in VB.NET for this type of printing??? or If any code is available then suggest me....
Posted

There is no magic function like this in the .NET Framework. You have to write the "magic" yourself.

ALl you have to do is write a value to the registry with the current date when you print the document. When your app starts, all it has to do is compare the current date to the one stored in the registry. If the dates match, you've already printed document. If not, well, that should be obvious.
 
Share this answer
 
Comments
NikulDarji 20-Sep-11 9:45am    
Thankx for your "magic" solution....:)I know in this idea i have to deal with the registry value....thats why I was asking about readymade function...:)its not easy to make this app. but its BOSS ORDER....:))
See this[^] discussion on MSDN for a possible solution.
 
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