Prevent other Styles

  • How can i forbidd, that the user uses other styles than i have allready filled into the document?

    The styles combobox i can clear and fill by my code, to prevent the user from adding new styles, or changes existing styles.

    But how can i prevent that the user copy & paste a new style into the document?

    • Offizieller Beitrag

    Hi,

    there is the event BeforePaste - this can be used to remove styles from the document. YOu can loop the paragraphs and check for styles.

    If it is an unwanted style You can set par.Style = 0.

    Julian