Ekona Pikin

Ekona Pikin

  • NA
  • 38
  • 12.8k

C# =>PRINT PDF FILES IN FOLDER

Feb 18 2015 8:15 AM
Hi MVPS and other members in C# Corners
I am very happy to find this site.
I am building a desktop application in c#
and my boss wants a print macro
There a .pdf files in a folder C drive and
in m y application I have items in a listviews
these items are in this form BAR5678SG.pdf and all
 I want to be able tolook through each line
in listview and goto that folder and any file that matches
BAR5678SG.pdf send to defaul printer for printing.
Giving there are different items say BAR5645DF.pdf, RE3421.pdf
Please what is the best approach to tackle this, my biggest challenege is
figuring an algorithm that would loop through each distinc item and  goto
the said folder and check if a fileexist a the item send to printer.
please any advise is welcome.
Thanks for your advise in adavnce .


Answers (11)