Click here to Skip to main content
15,891,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am create a windows application. My requirement is i select the folder and present all excel file in this folder are print my printer. how are possible.
Posted

Yo can use Directory.GetFiles[^] to locate the excel files and then for example using Interop, open the file and then print the desired data. For example see: http://msdn.microsoft.com/de-de/library/microsoft.office.interop.excel.range.printout(v=office.11).aspx[^]
 
Share this answer
 
VB
'Usage
Dim From As Object
Dim To As Object
Dim Copies As Object
Dim Preview As Object
Dim ActivePrinter As Object
Dim PrintToFile As Object
Dim Collate As Object
Dim PrToFileName As Object
Dim returnValue As Object
Dim range1 As Range
returnValue = range1.PrintOut(From, To, Copies, Preview, ActivePrinter, PrintToFile, Collate, PrToFileName)
 
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