usmanazizgroupdocs
5/23/2016 - 10:44 AM

GetDocumentInfoByGuid.vb

// For complete examples and data files, please go to https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-.NET
' Setup GroupDocs.Viewer config
Dim config As ViewerConfig = Utilities.GetConfigurations()

' Create html handler
Dim htmlHandler As New ViewerHtmlHandler(config)

Dim guid As String = DocumentName
' Get document information
Dim options As New DocumentInfoOptions()
Dim documentInfo As DocumentInfoContainer = htmlHandler.GetDocumentInfo(guid, options)

Console.WriteLine("DateCreated: {0}", documentInfo.DateCreated)
Console.WriteLine("DocumentType: {0}", documentInfo.DocumentType)
Console.WriteLine("DocumentTypeFormat: {0}", documentInfo.DocumentTypeFormat)
Console.WriteLine("Extension: {0}", documentInfo.Extension)
Console.WriteLine("FileType: {0}", documentInfo.FileType)
Console.WriteLine("Guid: {0}", documentInfo.Guid)
Console.WriteLine("LastModificationDate: {0}", documentInfo.LastModificationDate)
Console.WriteLine("Name: {0}", documentInfo.Name)
Console.WriteLine("PageCount: {0}", documentInfo.Pages.Count)
Console.WriteLine("Size: {0}", documentInfo.Size)

For Each pageData As PageData In documentInfo.Pages
    Console.WriteLine("Page number: {0}", pageData.Number)
    Console.WriteLine("Page name: {0}", pageData.Name)