IDCS2 How to make excel automation in Indesign Javascripting?

Hi all,
I have an excel sheet with several columns.I need to replace one of the column in the excel sheet with another set of values using (Indesign)javascript.
Please help.
Provide me with code snippets.
Regards
amu

>in the excel sheet [...] using (Indesign)javascript
It seems to me you think that javascript ("InDesign" JS??) can control any application on your computer.
Not so.
InDesign has 'generic' support for external programming languages. It can be controlled using JavaScript, Visual Basic for Applications (on Windows), AppleScript (on the Mac), and COM-aware programs, such as C++. The support for this is built-in into InDesign.
Excel has built-in support for Visual Basic. This probably means you can steer both Excel and ID from within the same VB -- I know it's possible through Word -- but has nothing to do with JS. Or with InDesign's support for JS. Or InDesign Scripting in general.
So, is it possible with VB? Well, it might be, but you might want to ask that one on a Microsoft forum, or this one:
>Provide me with code snippets.
(snip)

Similar Messages

  • How to make an index in InDesign CC 2014.1 using a topics list?

    Hi all,
    I have read the long help document on how to make an index in InDesign CC 2014.1 using a topics list, and still can't work out what to do.
    I have done a 548 page book, using a document for each chapter, and a book file to put them all together in the right order.
    I now need to make an index at the back, as the author has many quotes throughout the book at the start of each chapter and section.
    I have a list of those people quoted and want to upload this list and get the index feature in InDesign to find all instances of the name occurring in the entire book.
    After reading the help document I still cannot work out how to do this.
    My questions are:
    1. Do you have to use an InDesign document as a source for the list of topics? If so, should the document be added to the book file or outside it?
    It seems a bit recursive to have the list of topics in an ID document that is in the book file.
    2. Once you have uploaded the topics into the Index feature, how do you get it to look for all instances of that 'topic' througout the entire book? I can't figure that out from the help documents. What do I select? Do I do it from the Index panel? Do I highlight the text in the source document? Not sure how to do this...
    3. I need the names to list surname first of the quoted authors in the index. This command seems to be different between various editions of ID. For ID CC 2014.1 is it ctrl+alt+shift+]
    4. To make the surname show first, what do I highlight? The topic? and then do ctrl+alt+shift+] and select find all as well? Or do I have to just go through the text and manually do this and ditch the idea of uploading topics first?
    I am confused as you can see and any help with this is appreciated.

    Sorry 007, I really thought you were posting a trick question as on the OCP tests.
    Anyway, as Justin mentioned, if you have an index on ename, it may be used when doing a comparison predicate statement with the ename value.
    What it depends on are several other things: stats, how many rows in the table, use of an index hint, etc.
    Rather than questioning the group on this, why not just turn on autotrace and run the query for the different scenarios.
    The output will show you if it used the index, number of rows returned, blocks read, etc.
    SQL> create table emp (ename  varchar2(40));
    Table created.
    SQL> insert into emp select username from sys.dba_users;
    25 rows created.
    SQL> commit;
    Commit complete.
    SQL> set autotrace on
    SQL> select * from emp where ename != 'SYSTEM';
    Execution Plan
    Plan hash value: 2951343571
    | Id  | Operation        | Name      | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT |           |    24 |   528 |     1   (0)| 00:00:01 |
    |*  1 |  INDEX FULL SCAN | ENAME_IDX |    24 |   528 |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - filter("ENAME"<>'SYSTEM')As you can see, the above used an index, even though there were only 25 rows in the table.
    You can test each of your scenarios, one by one, including use of a hint.

  • How to make Excel, Word, Powerpoint the Default programs?

    Hey guys,
    Just got my new MBP, and I need to know how to make Excel, Word, Powerpoint the default programs when opening one of their files? Currently, the trial version of Iwork opens the programs which drives me crazy.....
    So, for example, for an Excel file, I want Excel to open it, NOT Numbers......etc....
    Thanks In advance.
    JW

    Select a file of that type in the Finder, choose Get Info from the File menu, change the Open With entry for it to the desired application, click on Change All, and confirm the action.
    (47808)

  • How to make Excel VBA (on Windows OS) to work on Mac

    Hi,
    I have made an application which uses Excel forms and other features of Excel Form 9like Title, Combo Box, List Box, Buttons etc).
    The code works well on Windows OS however when I run it on Mac it fails to work. Can anyone help me how to make this work.
    Regards, Hitesh

    Hi ExcelUser2507,
    To be honest, I do not have much experience about Office for Mac.
    >> The code works well on Windows OS however when I run it on Mac it fails to work.
    This is possible, MAC and Windows are 2 different platforms and the features of Office System on this 2 platform is also inconsistent (the Office for Windows has more rich features).
    >> How to make Excel VBA (on Windows OS) to work on Mac
    This forum is mainly for discussing question about the Office on Windows platform.
    The thread below may help, and Office for Mac forum should be more appropriate for asking questions about Office for Mac.
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macword/vba-support-on-office-mac/5023cdbc-fadf-4e39-a49f-59d2534aef85
    Hope it will help.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to make excel columns width autofit  ?

    Hello  Experts ,
    I download data from an internal table  to create an excel attached file and send it to customers by mail. The excel sheet looks untidy .
    the columns width of excel are not autofit .
    It's default 8.43 character .  Costomers can not use equally excel tools. eg.  format->column->autofit selection in excel.
    I was wondering how to make all excel columns' width autofit by means of ABAP . Is there any way to reach this property of excel via SAP  when I send excel attached files from an internal table .
    suggestions will be rewarded .
    Regards ,

    Hi Rajkumar or all,
    If any one able to display the records more than 65k line in Bex report v7.0..
    Pls reply with detail expalination.. Thanks in advance.. will give the reward points..
    Waiting urgently for your response..

  • How to make excel export in jsp

    Hi All,
    I have a jsp page to display a table. I want to add a "excel download" button
    in this page, once user click this button, it will invoke the microsoft excel
    and all table content will appear in the excel spreadsheet.
    I tried to set the content: <%@ page contentType="application/vnd.ms-excel"%>
    the rest code as following. However, it won't work for me. Does anyone has any
    experience in doing this?
    <%@ page contentType="application/vnd.ms-excel"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <netui:html>
    <head>
    <title>
    Web Application Page
    </title>
    </head>
    <body>
    <table border="1">
    <tr style="background-color:#3366ff;font-family:arial;">
    <td>Structure</td>
    <td>Compound</td>
    <% // Get the Items from the request stream
                   Vector mr_names = (Vector) request.getAttribute("method_result_names");
    for (int f=0;f<mr_names.size();f++) {
    out.println("<td>" + mr_names.get(f) + "</td> ");
    Vector mrs = (Vector) request.getAttribute("method_results");
    for (int g=0; g<mrs.size(); g++)
    out.println("</tr><tr>");
    Vector row1 = (Vector)mrs.get(g);
    for (int f=0;f<mr_names.size()+1;f++) {
    String s = (String)row1.get(f);
    if (f==0) {
    %>
    <td><embed src="structure.jsp?Sample_code=<%=s%>" width="120" height="100"></embed></td>
    <%
    out.println("<td>" + s + "</td> ");
    out.println("</tr>");
    %>
    </table>
    </body>
    </netui:html>
    Thanks!
    Zhenhao

    I am trying to do the same thing. I also cant get it to work. I am
    thinking it may have something to do with the concept of ScopedResponse, but
    I am not sure. There is very little documentation and more importantly
    examples of how to make sense of the getOuterResponse() method. Dev2Dev and
    Google are of no help.
    Anyone care to explain this to us?
    Michael.
    "Zhenhao Qi" <[email protected]> wrote in message
    news:3fd4f634$[email protected]..
    >
    Hi All,
    I have a jsp page to display a table. I want to add a "excel download"button
    in this page, once user click this button, it will invoke the microsoftexcel
    and all table content will appear in the excel spreadsheet.
    I tried to set the content: <%@ pagecontentType="application/vnd.ms-excel"%>
    the rest code as following. However, it won't work for me. Does anyone hasany
    experience in doing this?
    <%@ page contentType="application/vnd.ms-excel"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <netui:html>
    <head>
    <title>
    Web Application Page
    </title>
    </head>
    <body>
    <table border="1">
    <tr style="background-color:#3366ff;font-family:arial;">
    <td>Structure</td>
    <td>Compound</td>
    <% // Get the Items from the request stream
    Vector mr_names = (Vector) request.getAttribute("method_result_names");
    for (int f=0;f<mr_names.size();f++) {
    out.println("<td>" + mr_names.get(f) + "</td> ");
    Vector mrs = (Vector)request.getAttribute("method_results");
    for (int g=0; g<mrs.size(); g++)
    out.println("</tr><tr>");
    Vector row1 = (Vector)mrs.get(g);
    for (int f=0;f<mr_names.size()+1;f++) {
    String s = (String)row1.get(f);
    if (f==0) {
    %>
    <td><embed src="structure.jsp?Sample_code=<%=s%>"width="120" height="100"></embed></td>
    >
    <%
    out.println("<td>" + s + "</td> ");
    out.println("</tr>");
    %>
    </table>
    </body>
    </netui:html>
    Thanks!
    Zhenhao

  • How to make Excel 2010 save a HTML report as a file without a folder created

    We have a HTML report generated by Oracle Report with headers as below:
    <html xmlns:v="urn:schemas-microsoft-com:vml"
    xmlns:o="urn:schemas-microsoft-com:office:office"
    xmlns:x="urn:schemas-microsoft-com:office:excel"
    xmlns="http://www.w3.org/TR/REC-html40">
    In Excel 2010, after pressing the "save" button (not "save as"), it will by default save the report as web page format instead of xls, a folder "xxx.files" containing some css, xml and html files are created
    in it. If user deletes the folder carelessly, the excel report cannot be viewed at all.
    In Excel 2003, we can save it directly in its original format simply by pressing the "save" button, without creating a folder. May I know if there are any options in office 2010, macro or registries settings that can make
    Excel 2010 to do the same as Excel 2003 when pressing the "save" button? Thanks!

    Hi,
    According to your description, you want a workaround to avoid creating a new folder when saving a html file in Excel 2010.
    In my opinion, this issue is more related to the feature of HTML format or Excel 2010 application rather and I don't think we could resort to a macro or registry settings to avoid that. I suggest you posting it in
    Excel IT pro forum for more effective responses.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to make fullscreen mode work using javascript

    1.I want to open the window in fullscreen mode.
    It works fine for internet explorer.
    But in netscape navigator 8.0 as the tab browsing is there
    The menu bar appears on the page.
    That i don't want.
    2. Also when the window opens in full screen mode and if after that
    i press the ctrl+N the new window doesn't open in full screen mode.
    Giving the sample code as below.
    So how to make it work in full screen mode in both cases.
    //The sample code is given
    //check.html
    <HTML>
    <HEAD>
    <TITLE> Full Screen </TITLE>
    <script type="text/javascript">
    <!--
    function myPopup() {
    window.open( "http://www.google.com/", "myWindow", "status = 1, height = 300, width = 300, resizable = 0,fullscreen=yes" )
    //-->
    </script>
    </head>
    <body>
    <form>
    <input type="button" onClick="myPopup()" value="POP!">
    </form>
    <p onClick="myPopup()">CLICK ME TOO!</p>
    </body>
    </HTML>Plz help me.
    Thanx in Advance.
    Reema.

    dont try to use a browser for what its not intended to do.
    A browser is never been intended to work in fullscreen mode. Trying to control the size a browser is displayed in, is considered bad practice and sites that do it are usually very annoying.

  • How to make a textfield in inDesign for DP?

    How can I make a textfield for answering questions in an inDesign brochure for Digital Publishing.
    I tried it with a HTML field, but the textfield is emty again when I went to another article/page and back.
    But I want the text to stay in the field, even when the user reopens the app or goes to other articles/pages in the app.
    How do I accomplish that?
    Antonetta Eilers

    Form Fields in ID are only for PDF.
    For DPS, use HTML or you could try to use Adobe Forms Central. I've
    heard that works well.
    Bob

  • How to make excel and Xcelsius dynamic?

    Hello,
    I have Xcelsius version 4.0.4.7.  I use it for creating our departments dashboard for metrics.  I have 6 departments to create metrics for.  I use Excel for the spread sheet.
    Data is displayed via bar charts showing different categories on how they perform over a one year period.  For example from October 2007 to October 2008.  The graphs look great.  However, I am the one updating the metrics and my boss would like to see it become all dynamic.  Where all the department managers could enter the data and have the charts automatically update.
    I am in charge of our departments' web site and would still have to update the SWF to the server.   Which is fine.
    My question is "can Xcelsuis 20080 be able to handle this request?".
    Regards,
    DJ

    Dynamic datasources for Xcelsius
    find this please
    good luck
    Amr

  • How to make a A2 in inDesign? (cant see mm)

    I got a problem I cant see my mm when i make a new document!
    this is what i get: w:51p0 / H:66p0
    please help me

    And for any open document you can right click an individual ruler, or the intersection box where they meet, and select the units you want to use from the list. I find it sometimes is useful to change units temporarily for some spacing tasks, but it aslo is a fast way to "correct" docs that use the wrong system.

  • How to know the platform through InDesign javascript?

    Hi
    I want to find the platform (Windows/Mac) of the running indesign using javascript,
    eg:  alert(app.name);
    will result "Adobe InDesign"
    like the same way, is there any way to find the platform ?
    please anyone suggest a solution for this
    Thank you!
    Vimal

    You can try
    alert($.os);
    this will return the exact platform name and you can maybe check for the string whether it contains Windows or Mac in it
    -Javed

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

    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?

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

  • [CS3]How to export a table in InDesign to an excel file?

    Hi,
    Can any one tell me how to script the process of exporting a table to excel file in InDesign CS3 using javascript?
    Thanks in advance.
    myRiaz

    Sorry, no javaScript, but here are some lines from a localization tool that I made in VB. I simply loop through the Rows and Columns and use the Excel DOM to fill the Excel-cells.
    Of course you can read amended/localized Excel files back into inDesign the same way, provided that the tables match (nr of rows and columns).
    Afterwards you could loop through the characters of each cell to apply the formatting that you want to keep in Excel, such as SuperScripts.
    Hope it helps you.
    Set myExcel = CreateObject("Excel.Application")
    myExcel.Visible = True
    Set myTableBook = myExcel.Workbooks.Add
    Set myTableSheet = myTableBook.Worksheets.Item(1)
    myTableSheet.Columns.ColumnWidth = 35
    myTableSheet.Cells.VerticalAlignment = xlVAlignTop
    myTableSheet.Cells.WrapText = True
    For R = 1 To myTable.Rows.Count
        Set myTableRow = myTable.Rows.Item(R)
        For C = 1 To myTableRow.Cells.Count
            Set myTableCell = myTableRow.Cells.Item(C)
            If Len(myTableCell.Contents) = 0 Then
                myTableSheet.Cells(R, C) = ""
            Else
                myTableSheet.Cells(R, C) = myTableCell.Contents
                myTableSheet.Cells(R, C).Value = Replace(myTableSheet.Cells(R, C).Value, "1397058884", "—")
                myTableSheet.Cells(R, C).Value = Replace(myTableSheet.Cells(R, C).Value, Chr(13), Chr(10))
            End If
        Next C
    Next R
    good luck
    TonyT 

  • How to make separate/individual text frame from one parent frame in indesign with javascript

    Hi all,
    Please suugest - how to make separate/individual text frame from one parent frame in indesign with javascript.
    Thanks
    Rohit

    @Larry – ah, your interpretation could be the right one…
    May I rephrase the question:
    "How to split threaded text frames to single ones?"
    "SplitStory.jsx" or "BreakFrame.jsx" under Scripts/Samples indeed could be the answer.
    From the comments in the code of "BreakFrame.jsx":
    //Removes the selected text frame (or text frames) from the
    //story containing the text frame and removes the text contained
    //by the text frame from the story.
    //If you want to split *all* of the text fames in the story, use the
    //SplitStory.jsx script.
    Uwe

Maybe you are looking for

  • How to reference a custom property in a vo transient attribute expr + bug

    Hi all I have created a transient attribute with an expression that evaluate null content to replace it by a appropriate text. <ViewAttribute     Name="DescriptionUI"     IsUpdateable="false"     IsSelected="false"     IsPersistent="false"     Precis

  • Error in resource clean up for a disconnected client

    Hi we are using NW04s portal. in the default.log of this dispatcher I continuously receive the following error. this is fulling my log in less then 10 minutes. anobody have an id ?? regards #1.#00156004CA3300070000FEEC000062CA00043EE5ADC2F2ED#1195056

  • BW 7.0 - Extraction of the FM derivation rule gl_account - commitment item

    Hello, I need to load in BW the FI-FM tables of the derivation rules between GL account and commitment item. The particularity of these tables is that their name is client-dependant. Example: the table name in development system is: totoDEV; in produ

  • Allowed for commercial use?

    As crazy as it may sound, I was thinking about using iWeb to do some basic web design work for a few people. Is there anything in the Agreement that doesn't allow for iWeb to be used for commercial use?

  • Security error when opening a Webi file I saved.

    Here's a strange one - I can log in and see  universes and create queries and save them. When I try to open a query that I saved, I get the message "An error occured while checking the document security.(WIS30902)." This happens even if I chose "Save