Accusoft.ImagXpressSdk Namespace > ImageX Class : NumPages Method |
'Declaration Public Shared Function NumPages( _ ByVal imagXpress As ImagXpress, _ ByVal fileName As String _ ) As Integer
'Usage Dim imagXpress As ImagXpress Dim fileName As String Dim value As Integer value = ImageX.NumPages(imagXpress, fileName)
public static int NumPages( ImagXpress imagXpress, string fileName )
public: static int NumPages( ImagXpress* imagXpress, string* fileName )
public: static int NumPages( ImagXpress^ imagXpress, String^ fileName )
If an error occurs, ImagXpress throws an exception message, otherwise it returns this properties value.
Note: Streaming data does not always capture the correct page count and may return -1, thus requesting a page count on streaming data is discouraged.