Connecting Tech Pros Worldwide Forums | Help | Site Map

Need a way to programmatically get the number of pages in a TIF??

ganderso@wmcdirect.com
Guest
 
Posts: n/a
#1: Nov 17 '05
Hi

I have a number of TIF files. I need to have a way to get the number of
pages in each file programmatically. Anyone know a control or app that
I can call to do this?

Thanks in advance.
Greg

Jason Newell
Guest
 
Posts: n/a
#2: Nov 17 '05

re: Need a way to programmatically get the number of pages in a TIF??


Greg,

I haven't tried it but it looks like
System.Drawing.Image.GetFrameCount() will work. You might give it a try.

* Here is a link to something similar. May help you get started.
http://eggheadcafe.com/articles/stri...nimatedgif.asp

* Here is some example VB.NET code
Dim img As Image =
System.Drawing.Image.FromFile("c:\Mike\Fax000000c8 .TIFF")
Dim pages As Integer =
img.GetFrameCount(System.Drawing.Imaging.FrameDime nsion.Page)

Good luck!

Jason Newell

ganderso@wmcdirect.com wrote:[color=blue]
> Hi
>
> I have a number of TIF files. I need to have a way to get the number of
> pages in each file programmatically. Anyone know a control or app that
> I can call to do this?
>
> Thanks in advance.
> Greg
>[/color]
Closed Thread