Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How can I change the import options for an Excel table in InDesign CS5.5?

Community Beginner ,
May 06, 2013 May 06, 2013

Hi,

I have a problem with an InDesign script that works this way in ID CS4 and ID CS5, but stops working in ID CS5.5.

What the script should do, is to change the import preferences for a table saved in an Excel file so that I can place an unformatted table into a new textFrame in my InDesign document. The Excel document is an .xlsx-File.

function setExcelImportPrefs() {

    with (app.excelImportPreferences) {

         app.excelImportPreferences.tableFormatting = TableFormattingOptions.excelUnformattedTable;

        }

}

What the script does (or at least seems to do) is: nothing. The table that is placed into the textFrame by the script is always formatted, as this seems to be the standard preference of InDesign CS5.5 for importing tables out of excel files.

Does anybody have a hint for me how to make the script work in ID CS5.5?

TOPICS
Scripting
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , May 06, 2013 May 06, 2013

As it runs on my machine (!) one reason may be that right spelling should be : TableFormattingOptions.EXCEL_UNFORMATTED_TABLE

Translate
Enthusiast ,
May 06, 2013 May 06, 2013

As it runs on my machine (!) one reason may be that right spelling should be : TableFormattingOptions.EXCEL_UNFORMATTED_TABLE

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 06, 2013 May 06, 2013

-hans-, which version of InDesign do you use? CS5.5? If so, did you install all the Updates there are for that version?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
May 06, 2013 May 06, 2013

7.5.3

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 08, 2013 May 08, 2013
LATEST

Okay, now it is working. I had to save the XLSX-file into the older XLS format, but that seems to work quite well.

But I won't ever understand why InDesign loses its backward compatibility from one version to the other.

Thank you, -hans-.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines