Skip navigation
Currently Being Moderated

Import styles question

Jul 10, 2012 2:43 AM


How to be more specific while import style from external file? I am talking about method:


Document.importStyles (ImportFormat.PARAGRAPH_STYLES_FORMAT,

                                        myFile[, GlobalClashResolutionStrategy=GlobalClashResolutionStrategy.LOAD_ALL_WITH_OVERWRITE])


The goal is to import chosen styles only (one, few of them) nor all of them.



  • Currently Being Moderated
    Jul 10, 2012 11:45 PM   in reply to Jump_Over

    As you found out, the method is called "importStyles" not "importStyle".


    One approach is to use the "properties" property to transfer the essentials of any native object.

    Sub-objects such as the various settings and and options of object styles require extra steps, though.


    E.g. =;


    You can also create a blank document, import the styles there and remove the non desired ones.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points