question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DocumentFormat.OpenXml.Packaging.CoreFilePropertiesPart has no functional properties

See original GitHub issue

Description

DocumentFormat.OpenXml.Packaging.CoreFilePropertiesPart has no functional properties. I’d like to access at least the tags, description and title elements. There seems to be a well defined schema for it.

Information

  • .NET Target: .NET Core
  • DocumentFormat.OpenXml Version: (ie 2.8.2)

** Concept API surface **

public class CoreProperties
{
    public string Category { get; set; } 
    public ContentStatusType ContentStatus { get; set; }
    public DateTimeOffset CreatedAt {get; set;}
    public string CreatedBy {get; set; }
    public string Summary {get; set; }
    public IReadOnlyCollection<Keyword> Keywords {get; }
    public string Language {get; set; }
    public string LastModifiedBy {get; set; }
    public DateTimeOffset? LastModifiedAt {get; set; }
    public DateTimeOffset? LastPrintedAt {get; set; }
    public int? Revision {get; set; }
    public int? Version {get; set; }
    public string Subject {get; set; }
    public string Title {get; set; }
}

public class Keyword
{
    public string Language { get; set; }
    public string Value { get; set; }
}

public enum ContentStatusType 
{
    Draft,
    Reviewed,
    Final
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
daniel-whitecommented, Jan 29, 2018

I’m thinking something like this based on the standard:

class CoreProperties
{
    public string Category { get; set; } // category
    public ContentStatusType ContentStatus { get; set; } // contentStatus
    public DateTime CreatedAt {get; set;} //created
    public string CreatedBy {get; set; } // creator
    public string Summary {get; set; } // description
    public List<Keyword> Keywords {get; set; } // keywords
    public string Language {get; set; } // language
    public string LastModifiedBy {get; set; } // lastModifiedBy
    public DateTime? LastModifiedAt {get; set; } // modified
    public DateTime? LastPrintedAt {get; set; } // lastPrinted
    public int? Revision {get; set; } // revision
    public int? Version {get; set; } // version
    public string Subject {get; set; } // subject
    public string Title {get; set; } // title
}
0reactions
Still34commented, May 22, 2020

Bump for refreshing the issue; has this been implemented anywhere yet?

Read more comments on GitHub >

github_iconTop Results From Across the Web

DocumentFormat.OpenXml.Packaging. ...
Packaging.CoreFilePropertiesPart has no functional properties. I'd like to access at least the tags, description and title elements. There seems ...
Read more >
CoreFilePropertiesPart Class (DocumentFormat.OpenXml. ...
Returns null when the current part is empty or is not and XML content type. (Inherited from OpenXmlPart). Uri. Represents the internal part...
Read more >
c# - Without opening, how can I read OpenXML document ...
The intended functionality is that the password is recalculated from the properties before attempting to open the workbook.
Read more >
DocumentFormat.OpenXml 2.20.0
The Open XML SDK provides tools for working with Office Word, Excel, and PowerPoint documents. It supports scenarios such as: - High-performance generation ......
Read more >
Convert Word doc and docx format to PDF in .NET Core ...
Coding example for the question Convert Word doc and docx format to PDF in .NET Core without Microsoft.Office.Interop-.net-core.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found