VintaSoft Imaging .NET SDK and Plug-ins Discussions
Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.
Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions
Try
oTiffFile = New Tiff.TiffFile(strTempFileToWork)
intOriginalFilePageCount = oTiffFile.Pages.Count
oImages = New ImageCollection
AddHandler oImages.ImageSavingException, AddressOf oImages_ImageSavingException
For i As Integer = 0 To intOriginalFilePageCount - 1
oVImage = New VintasoftImage(oTiffFile.Pages(i).GetImage.GetAsBitmap, True)
oImages.Add(oVImage)
Next
blnRetValue = True
Catch ex As Exception
m_strLastError = "IsValidTifFile : Not able to Read all the pages of the tiff file " & strTiffFileNameWithPath
Finally
If oTiffFile IsNot Nothing Then oTiffFile.Dispose()
oTiffFile = Nothing
If oVImage IsNot Nothing Then oVImage.Dispose()
oVImage = Nothing
If oImages IsNot Nothing Then
RemoveHandler oImages.ImageSavingException, AddressOf oImages_ImageSavingException
oImages.Dispose()
End If
Try
oImages = Nothing
Catch ex As Exception
End Try
End Try
Let me know if you need more information. Would sending you a .Net sample project helpYes, we need to reproduce the problem - test project is welcome.