Click here to Skip to main content
15,904,497 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I am creating an application for user select folder then all excel file retrive and print through printer. how it possible.
Posted
Comments
hekhaing 5-Feb-12 0:29am    
to calculate current age and current service by using VB.NET
Sergey Alexandrovich Kryukov 5-Feb-12 1:17am    
How do you know? Are your the same person as Rakesh?
--SA
Sergey Alexandrovich Kryukov 5-Feb-12 1:16am    
What is the problem? Access Excel document? -- there is the Office interop. To print? -- there is PrintDocument.
Related questions were answered thousands times on CodeProject, just do some search.

--SA

1 solution

ProcessStartInfo info = new ProcessStartInfo(myDocumentsPath); 
info.Verb = "Print"; 
Process.Start(info); 


This will print a document without having to use any sort of interop.
 
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