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

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

Community Beginner ,
May 06, 2013 May 06, 2013

Copy link to clipboard

Copied

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

Views

1.1K

Translate

Translate

Report

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

Votes

Translate

Translate
Enthusiast ,
May 06, 2013 May 06, 2013

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

7.5.3

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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-.

Votes

Translate

Translate

Report

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