Skip to main content
Participant
July 8, 2010
Question

CS4 - Java: ParagraphStyle.setAppliedLanguage() problem

  • July 8, 2010
  • 1 reply
  • 976 views

Hello everybody!

I'm having trouble with setting  the applied Language for a ParagraphStyle.
Trying the way pointed out in the  Java CS4 Guide doesn't seem to work.
I have the following lines

<snip>

     LanguageWithVendors hyphenation_lwv = myApp.getIdentifiedChildLanguageWithVendors(Integer.parseInt(hyphenationLanguag e));

     ...

     //code

     ...

     ps.setAppliedLanguage(VariableTypeUtils.createObject(hyphenation_lwv));

</snip>

the latter throws the Exception #516, with the message " Ungültige Anforderung für Stammformat."

which roughly translates to "bad request for master/root format" (I'm sorry, I wasn't able to find the english version of the message)

Could someone please explain why it doesn't work?

Thanks in advance,

Arsenij

This topic has been closed for replies.

1 reply

asolovjevAuthor
Participant
July 19, 2010

2 weeks and no reply?
Please tell me if I didn't explain the matter at hand in an understandable fashion, or have presented this in a not respectful enough manner

asolovjevAuthor
Participant
July 19, 2010

A solution to this was found. Just to skip the first two ParagraphStyles, because they are root styles and shouldn't be modified

Legend
July 19, 2010

Sorry, I guess most here are either busy with their own work or on vacation. Or both ...

Besides, the focus of this forum is C++ plugin development. Java questions are better adressed at the next door "Scripting", because Java goes thru the same high level API as all the other language bindings. Rephrasing the problem with JavaScript (should be a no-brainer) will give you the broadest audience there. The Server forum would also be an alternative, especially if the problem is really Server / Java specific.

Dirk