Skip to content

Dispatch.call(selection, "TypeParagraph"); but want a Line break instead of a paragraph. #62

Open
@Karleent

Description

@Karleent

Hi, I have this very old Java script we use at work. When run, it outputs data to a Word file. In the Word file, I want to change the spacing of the lines. Right now, it uses Dispatch.call(selection, "TypeParagraph"), so it returns a new paragraph between the two lines of text, but I want it to return a Line Break.

Here is a sample of the code:

Dispatch.put(alignment, "Alignment", "1");

Dispatch.put(font, "Size", "10");

Dispatch.call(selection, "TypeText", "XXX Proprietary and Confidential Information");

Dispatch.call(selection, "TypeParagraph");

Dispatch.call(selection, "TypeText", "UNCONTROLLED COPY");

Dispatch.call(selection, "TypeParagraph");

Dispatch.put(alignment, "Alignment", "2");

Dispatch.call(selection, "TypeText", XXname_count.elementAt(j));

Dispatch.call(selection, "TypeParagraph");

I don't code much, and I know enough to fumble my way to what I need to get done; this is my first time playing with Java code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions