https://issues.apache.org/bugzilla/show_bug.cgi?id=47156

           Summary: Minor issue in setting XLSX doc properties
           Product: POI
           Version: unspecified
          Platform: PC
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: minor
          Priority: P2
         Component: XSSF
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Following are not setting the respective properties using 

DocumentSummaryInformation

setManager()
setCompany()

== Code

DocumentSummaryInformation dsi;
                try
                {
                    DocumentEntry dsiEntry = (DocumentEntry)
                           
dir.getEntry(DocumentSummaryInformation.DEFAULT_STREAM_NAME);
                    DocumentInputStream dis = new
DocumentInputStream(dsiEntry);
                    PropertySet ps = new PropertySet(dis);
                    dis.close();
                    dsi = new DocumentSummaryInformation(ps);
                }
                catch (FileNotFoundException ex)
                {
                    /* There is no document summary information yet. We have to
create a
                 * new one. */
                    dsi = PropertySetFactory.newDocumentSummaryInformation();
                }

                /* Change the category to "POI example". Any former category
value will
  * be lost. If there has been no category yet, it will be created. */
                dsi.setCompany("POI rocks");
                dsi.setManager("my manager");

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to