Multipage .Tiff files
-
i am trying to display multi page .tiff file into a pic box. so i have a next button to go to the next page. so far i got this Dim objImage As System.Drawing.Image = objImage.FromFile("C:\Projects\FaxView\appraisal.tif") Dim objGuid As Guid objGuid = (objImage.FrameDimensionsList(0)) Dim objDimension As System.Drawing.Imaging.FrameDimension = New System.Drawing.Imaging.FrameDimension(objGuid) Dim objBmp As System.Drawing.Bitmap With objBmp .FromFile("C:\Projects\FaxView\multipage.tif") .GetFrameCount(objDimension) .SelectActiveFrame(objDimension, 1) End With it is giving me error: object is not set to object reference at .GetFramecount(objDimension) any idea why it is saying that? thanks for your ehlp.:confused: Zulfikar Ali
-
i am trying to display multi page .tiff file into a pic box. so i have a next button to go to the next page. so far i got this Dim objImage As System.Drawing.Image = objImage.FromFile("C:\Projects\FaxView\appraisal.tif") Dim objGuid As Guid objGuid = (objImage.FrameDimensionsList(0)) Dim objDimension As System.Drawing.Imaging.FrameDimension = New System.Drawing.Imaging.FrameDimension(objGuid) Dim objBmp As System.Drawing.Bitmap With objBmp .FromFile("C:\Projects\FaxView\multipage.tif") .GetFrameCount(objDimension) .SelectActiveFrame(objDimension, 1) End With it is giving me error: object is not set to object reference at .GetFramecount(objDimension) any idea why it is saying that? thanks for your ehlp.:confused: Zulfikar Ali
i figured it out. thanks:-O Zulfikar Ali