Following VBScript code snippet demonstrates how to get the sheet count and activating each of them for view. This code snippet is part of the "Viewer API Test" sample available in our Developer Center Page DWF Code samples.
function ShowPages
dim page
MsgBox Eview.Viewer.Pages.count()
for each page in Eview.Viewer.Pages
Eview.Viewer.Page = page.Name
call Eview.Viewer.WaitForPageLoaded()
MsgBox Eview.Viewer.Page.Name
next
end function