3 Replies Latest reply on Apr 25, 2016 4:30 AM by daitranthanhoa

    How change all languages of a Document to new Language?

    daitranthanhoa Level 1

           I want change language of Document to new language , but i have not original language:

           This is my code, but it not working.

             oIndesign = CreateObject("InDesign.Application.CS5.5")

              oDocument = oIndesign.Open(txtFile.Text)

              oIndesign.FindTextPreferences = 1851876449

              oIndesign.ChangeTextPreferences = 1851876449

              oIndesign.FindChangeTextOptions.IncludeMasterPages = True

              oIndesign.FindChangeTextOptions.includeFootnotes = True

             ' oIndesign.FindTextPreferences.appliedLanguage =

              oIndesign.ChangeTextPreferences.appliedLanguage = oIndesign.LanguagesWithVendors(2)

              Dim oaTargetList3 = oDocument.ChangeText

       

      How change all languages of a Document to new Language?

      Thanks all.