Count number of pages in Tiff's

daveofgv

Well-known member
Joined
Sep 17, 2008
Messages
218
Location
Dallas, TX
Programming Experience
1-3
I saw this code from JohnH:
(filename is replaced with the directory location of my file)
VB.NET:
   Dim img As Image = Image.FromFile(filename)
        Dim numpages As Integer = img.GetFrameCount(Imaging.FrameDimension.Page)
        Label1.Text = numpages
        img.Dispose()

However, even though this works perfect (everything from JohnH does) -

I am trying to loop through a folder with hundreds / thousands of Tiff images and write the page count (with image name) to a text file.

Can anyone give me any suggestions?

I don't need someone to write all the code for me, however, lead me the correct way.

Thanks in advanced.
 
Back
Top