Results 1 to 2 of 2
  1. #1
    hoz
    hoz is offline Member
    Join Date
    Jan 2017
    Posts
    3
    Rep Power
    0

    Default How to set attribute "Author" of XSSF-file?

    Hi. I find this? that I mind need for set attribute "Author" of XSSF-file.
    On this picture i show? that i need to set(or edit):



    I try do how there, but it works only with HSSFWorkbook. But me interesting set attribute of XSSFWorkbook.
    How i can do it?

  2. #2
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,679
    Rep Power
    6

    Default Re: How to set attribute "Author" of XSSF-file?

    In that link you posted it also described how to do it for XSSF:
    Java Code:
    POIXMLProperties xmlProps = workbook.getProperties();    
    POIXMLProperties.CoreProperties coreProps =  xmlProps.getCoreProperties();
    coreProps.setCreator(author);
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

Similar Threads

  1. Replies: 0
    Last Post: 12-07-2012, 09:29 AM
  2. Replies: 3
    Last Post: 10-30-2012, 04:06 PM
  3. Replies: 0
    Last Post: 02-19-2012, 06:47 PM
  4. Replies: 0
    Last Post: 03-10-2010, 03:52 PM
  5. Replies: 1
    Last Post: 10-20-2008, 07:35 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •