Exemplo n.º 1
0
 private void GetOfficeProperties()
 {
     try
     {
         var officeFile = new OfficeFileAccessorService(FileFullPath);
         Title              = officeFile.Title;
         Subject            = officeFile.Subject;
         Author             = officeFile.Author;
         Keywords           = officeFile.Keywords;
         Comments           = officeFile.Comments;
         Template           = officeFile.Template;
         LastAuthor         = officeFile.LastAuthor;
         RevisionNumber     = officeFile.RevisionNumber;
         ApplicationName    = officeFile.ApplicationName;
         LastPrintDate      = officeFile.LastPrintDate;
         CreationDate       = officeFile.CreationDate;
         LastSaveTime       = officeFile.LastSaveTime;
         TotalEditingTime   = officeFile.TotalEditingTime;
         NumberofPages      = officeFile.NumberofPages;
         NumberofWords      = officeFile.NumberofWords;
         NumberofCharacters = officeFile.NumberofCharacters;
         Security           = officeFile.Security;
         Category           = officeFile.Category;
         Format             = officeFile.Format;
         Manager            = officeFile.Manager;
         Company            = officeFile.Company;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 2
0
 public void SetProperty()
 {
     try
     {
         var officeFile = new OfficeFileAccessorService(FileFullPath);
         officeFile.SetProperty();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }