How to set a cell stroke?

Hi experts

I want to change the type of null cells lines in docs open.

could someone please to tell me how to set Docs [i] .everyItem ().stories.everyItem ().tables.everyItem ().cells.everyItem ();?

my script as:

var Docs = app.documents.

for (var i = Docs.length - 1; i > = 0; i--) {}

var s = Docs [i] .everyItem ().stories.everyItem ().tables.everyItem ().cells.everyItem ();

s.topEdgeStrokeType = null;

s.bottomEdgeStrokeType = null;

s.rightEdgeStrokeType = null;

s.leftEdgeStrokeType = null;

}

What is wrong with him?

Respect of

John

I deleted my previous post because it was false. The error in the code is Docs [i] .everyItem () - you can do that. Instead, follow these steps:

s = app.documents.everyItem().stories.everyItem().tables.everyItem().cells.everyItem();
s.topEdgeStrokeType = null;
s.bottomEdgeStrokeType = null;
s.rightEdgeStrokeType = null;
s.leftEdgeStrokeType = null;

P.

Tags: InDesign

Similar Questions

  • How to set default cell format 'text' instead of 'general' sheet in excel using pl/sql code?

    Can someone please help me on how to generate excel file using pl/sql? I have generated csv files successfully, but now I need to generate a excel. I changed the code generation of the csv file, but the file gives me error when opening:

    "The file you are trying to open,"XXXX.xls", is in a different format than specified by the file extension. Do you want to open it now? »

    If I choose Yes then open the excel file, but it excludes the leading 0 in the front for one my column. How do I configure excel type default column as text rather than General, when you create the files? I also tried to generate excel file using xml. But I do not know how to set the type of column there, too. I'm using Oracle 11.2.0.3.0 and APEX 4.2.6.00.03. I'll call all these codes apex.

    Code1 is used:

    Declare

    output_header varchar2 (4000);

    fichier_en_sortie VARCHAR2 (255);

    Varchar2 (2) EOL: = Chr (13) | Chr (10);

    BEGIN

    output_header: = 'tls_tracking_id ' | Chr (9) | ' fnn_ext' | Chr (9) | "path_id' | EOL;

    fichier_en_sortie: = 'report_excel' |'. XLS;

    owa_util.mime_header ("application/octet ', false");

    HTP.p ('Content-Disposition: attachment; filename = "" | ") fichier_en_sortie |' « ') ;

    owa_util.http_header_close;

    HTP. PRN (output_header);

    for r in)

    Select tls_tracking_id, fnn_ext, DWD_DTOV_OUT_VW path_id

    where nbn_loc_id = 'LOC000138413115. '

    The order of tls_tracking_id LOOP)

    HTP. PRN (r.tls_tracking_id

    || Chr (9) | r.fnn_ext

    || Chr (9) | r.path_id

    || EOL

    );

    END LOOP;

    END;

    Code2 used :

    create or replace PACKAGE BODY IS pkg_excel_export

    PROCEDURE excel_open (l_xml_body IN OUT NOCOPY CLOB) IS

    BEGIN

    l_xml_body: = ' <? XML version = "1.0" encoding = "ISO-8859-9"? > ' | Chr (10) |

    "< workbook xmlns =" "urn: schemas-microsoft - com:office:spreadsheet" ' | "

    Chr (10) |

    ""xmlns:o ="urn: schemas-microsoft-com ' ' |

    Chr (10) |

    "xmlns: x =" "urn: schemas-microsoft-com: excel" ' | "

    Chr (10) |

    ""xmlns:ss ="urn: schemas-microsoft - com:office:spreadsheet" ' |

    Chr (10) |

                            'xmlns:html=" http://www.w3.org/TR/REC-html40 ">' ||

    Chr (10) |

    ' < ExcelWorkbook xmlns = "urn: schemas-microsoft-com: excel" > ' |

    Chr (10) | ' < WindowHeight > 8580 < / WindowHeight > ' |

    Chr (10) | ' < WindowWidth > 15180 < / WindowWidth > ' | Chr (10) |

    ' < WindowTopX > 120 < / WindowTopX > ' | Chr (10) |

    ' < WindowTopY > 45 < / WindowTopY > ' | Chr (10) |

    ' < ProtectStructure > false < / ProtectStructure > ' | Chr (10) |

    ' < ProtectWindows > false < / ProtectWindows > ' | Chr (10) |

    ' < / ExcelWorkbook > ' | Chr (10) | "< Styles > | Chr (10) |

    '< ss:ID of style = 'Default' ss:Name 'Normal' = >' | Chr (10) |

    "< ss:Vertical alignment = 'Bottom' / >" | " Chr (10) |

    ' < borders / > '. Chr (10) | ' < police / > '. Chr (10) |

    ' < Interior / > '. Chr (10) | ' < NumberFormat / > '. Chr (10) |

    ' < protection / > '. Chr (10) | "< / style > | Chr (10) |

    '< ss:ID of style 's22' = >' | Chr (10) |

    "< x: font family = ss"Swiss":"BOLD"="1"ss:Underline ="Single"/ >" | "

    Chr (10) | "< / style > | Chr (10) | "< / style >";

    END excel_open;

    PROCEDURE excel_close (l_xml_body IN OUT NOCOPY CLOB) IS

    BEGIN

    l_xml_body: = l_xml_body | ' < / workbook > ';

    END excel_close;

    / * Opens a worksheet in the Excel file. , You can open multiple worksheets. **/

    PROCEDURE worksheet_open

    (

    l_xml_body IN OUT NOCOPY CLOB,

    p_worksheetname in VARCHAR2

    ) IS

    BEGIN

    --

    -Create the worksheet

    --

    l_xml_body: = l_xml_body | "' < worksheet ss:Name = ' ' | p_worksheetname |

    "" > < table > ";"

    END worksheet_open;

    / *Farm the worksheet in the Excel file.   **/

    PROCEDURE worksheet_close (l_xml_body IN OUT NOCOPY CLOB) IS

    BEGIN

    l_xml_body: = l_xml_body | ' < / table > < / worksheet > ';

    END worksheet_close;

    / *Opens the tag line * /

    PROCEDURE row_open (l_xml_body IN OUT NOCOPY CLOB) IS

    BEGIN

    l_xml_body: = l_xml_body | "< row >."

    END row_open;

    / *Farm the tag line * /.

    PROCEDURE row_close (l_xml_body IN OUT NOCOPY CLOB) IS

    BEGIN

    l_xml_body: = l_xml_body | "< / row > | Chr (10);

    END row_close;

    / *After the opening of the line, we can write something the first cell* /

    PROCEDURE cell_write

    (

    l_xml_body IN OUT NOCOPY CLOB,

    p_content in VARCHAR2

    ) IS

    BEGIN

    l_xml_body: = l_xml_body | ' < cell > < data ss:Type = "String" > ' |

    p_content | ' < / data > < / cell > ';

    END cell_write;

    / * If you use this package of APEX, you get to download the excel file. **/

    PROCEDURE excel_get

    (

    l_xml_body IN OUT NOCOPY CLOB,

    p_filename in VARCHAR2

    ) IS

    XX BLOB;

    make the NUMBER;

    This NUMBER;

    BC NUMBER.

    LC NUMBER;

    w NUMBER;

    BEGIN

    DBMS_LOB.CREATETEMPORARY (xx, TRUE);

    make: = 1;

    so: = 1;

    BC: = dbms_lob.default_csid;

    LC: = dbms_lob.default_lang_ctx;

    w: = dbms_lob.no_warning;

    DBMS_LOB.converttoblob (xx,

    l_xml_body,

    DBMS_LOB.lobmaxsize,

    do,

    Thus,.

    British Colombia,

    LC,

    (w);

    owa_util.mime_header ("application/octet ', FALSE");

    -set the size so that the browser knows how to download

    HTP.p ("Content-length: ' |") DBMS_LOB.GetLength (xx));

    -the name of the file will be used by the browser if users only one save as

    HTP.p ('Content-Disposition: attachment; filename = "" | ") p_filename |

    '.xls ' | '"');

    -close the headers

    owa_util.http_header_close;

    -Download the BLOB

    wpg_docload.download_file (XX);

    END excel_get;

    END pkg_excel_export;

    I know it's a bit long code, but to better understand please consider...

    Thank you.

    I did worked putting just one extra line in my l_xml_body in the XML (Code 2 used). Now my excel generates with cells type 'Text' and there are no left falling to zero. Also the columns display not scientific format as 2.3D + 12. Current recording shows without default formatting.

    '

  • How to quickly change cell STROKE weight

    Hello

    I am currently working on forms of subscription from the tabs. At present, the strokes are 1pt weight around each label and content to add cells. I'm looking for a quick way to 0.5 pt.

    I tried the script presented to this address: Script for find/replace, stroke at the tables , but when I run it returns an error 30614 (invalid object)

    Tell application "Adobe InDesign CC 2015" the value currWeight 1 newWeight set to 0.5 mytablelist set in each cell of each table for each block of text in the active document repeat with x 1 (counting the elements of mytablelist) the MyCell article x of mytablelist value if the race weight low set MyCell currWeight edge then low edge STROKE weight of MyCell on newWeight end if if the diagonal MyCell race weight is currWeight then the value race weight diagonal of MyCell to newWeight end if if the weight of the left edge of MyCell race is currWeight give to left-hand STROKE weight of MyCell newWeight end if if the weight of the right edge of MyCell race is currWeight give weight of race to the right edge of MyCell newWeight end if if the weight of the upper edge of the MyCell race is currWeight give weight of race to the top edge of MyCell newWeight end end if end tell

    I have the same answer (error 30614).

    I have no idea of what has past.

    Is there anyone kind enough to help with this problem?

    Kind regards

    Guillaume

    Finally try!

    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    app.doScript
        (    
    
        main,
        ScriptLanguage.JAVASCRIPT,
        [],
        UndoModes.ENTIRE_SCRIPT,
        "Change Stroke Weight"    
    
        );    
    
    function main()
    {    
    
    var weight = Number(prompt("What is your starting weight?", 1,"Current Stroke Weight"));
    var newWeight = 0.5;    
    
    if(app.documents.length == 0){return};
    if(app.documents[0].stories.length == 0){return};
    if(app.documents[0].stories.everyItem().tables.length == 0){return};    
    
    var doc = app.documents[0];
    var allStories = doc.stories.everyItem();
    var allCells = allStories.tables.everyItem().cells.everyItem().getElements();    
    
    for(var n=0;n		   
  • Setting adjacent cell STROKE weight

    Hello

    I would like to know if there is a way to do this:

    I have a series of tables that should be formatted in a specific way. Unfortunately, with the table options I am able to do only a part of these formatting; formatting so the question is: How can I set the weight of the race of a cell border based on an adjacent cell?

    See picture attached for explanation

    strokeweight.PNG

    I hope someone can help me!

    Thanks in advance

    Hello

    Since no one has given me the answer, I myself answered with this JavaScript:

    myDoc var = app.activeDocument;

    var totTxtFrames = myDoc.textFrames;

    for (i = 0; i

    myTxtFrame = totTxtFrames [i];

    totTables = myTxtFrame.tables;

    for (j = 0; j

    myTable = totTables [j];

    totRows = myTable.rows;

    for (k = 0; k

    myRow = totRows [k];

    myRowIndex = myRow.index;

    totCells = myRow.cells;

    for (n = 0; n

    MyCell = totCells [n];

    If (myCell.rowSpan > 1) {}

    myCellSpan = myCell.rowSpan;

    if(MyCell.bottomEdgeStrokeWeight == 0.5) {}

    totRows.item(myRowIndex_+_myCellSpan-1).bottomEdgeStrokeWeight = 0.5;

    }

    }

    else {}

    myCellSpan = myCell.rowSpan;

    if(MyCell.bottomEdgeStrokeWeight == 0.5) {}

    totRows.item(myRowIndex_+_myCellSpan-1).bottomEdgeStrokeWeight = 0.5;

    }

    }

    }

    }

    }

    }

    Hope could help someone with the same problem

    See you soon!

  • How to set a cell to accept null values.

    Hello;

    I'm having a problem with my request for insertion. My shape, past year (2010 and more) as a null value. I use access (ugg) and I can't accept this value null. I tried setting required in no. and allow a length zero, even removed from the table and he again... STILL, I get this error:

    Run database query error.

    [Macromedia] [SequeLink JDBC Driver] [ODBC Socket] [Microsoft] [ODBC Microsoft Access driver] Numeric value out of range (null)The error occurred in C:\Websites\187914kg3\accManage\signUp.cfm: line 234
    Called from C:\Websites\187914kg3\accManage\signUp.cfm: line 206
    Called from C:\Websites\187914kg3\accManage\signUp.cfm: line 204
    Called from C:\Websites\187914kg3\accManage\signUp.cfm: line 4
    Called from C:\Websites\187914kg3\accManage\signUp.cfm: line 1
    Called from C:\Websites\187914kg3\accManage\signUp.cfm: line 234
    Called from C:\Websites\187914kg3\accManage\signUp.cfm: line 206
    Called from C:\Websites\187914kg3\accManage\signUp.cfm: line 204
    Called from C:\Websites\187914kg3\accManage\signUp.cfm: line 4
    Called from C:\Websites\187914kg3\accManage\signUp.cfm: line 1

    232 :         <cfqueryparam cfsqltype="CF_SQL_INTEGER" value="#form.securitCode#">,
    233 :         <cfqueryparam cfsqltype="CF_SQL_INTEGER" value="#form.ExpirationMonth#">,
    234 :         <cfqueryparam value="#FORM.ExpirationYear#" cfsqltype="CF_SQL_VARCHAR">)
    235 : </cfquery>
    236 : 
    


    SQLSTATE22003
    SQLINSERT INTO MerchandiseOrdersItems (c_ID, cc_type cc_num, cc_verify, cc_expir_m, cc_expir_y) VALUES ((param 1), (param 2), (param 3), (param 4), (param 5), (param 6))
    VENDORERRORCODE

    3


    It's my form element and the query that is the source of the problem:


    < name cfparam = "FORM. Default ExpirationYear"=" ">

    < form >

    < select name = "ExpirationYear" class = 'formSelect' >
    < cfloop index "i" = from = "" #VARIABLES.y1 # "to =" #VARIABLES.y2 # ">"
    < option value = "#i #" < cfif FORM. ExpirationYear EQ I > selected < / cfif > > #NumberFormat (i, "0000") # < / option >
    < / cfloop >
    < / select >

    < / make >

    < datasource = "" #APPLICATION.dataSource # cfquery "dbtype ="ODBC">"
    INSERT INTO MerchandiseOrdersItems
    (c_ID cc_type cc_num, cc_verify, cc_expir_m, cc_expir_y)
    VALUES (< cfqueryparam value = "" #getUpdate.NewID # "cfsqltype =" CF_SQL_VARCHAR">,)
    < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.creditType #" >.
    < cfqueryparam cfsqltype = "CF_SQL_LONGVARCHAR" value = "#form.creditCard #" >.
    < cfqueryparam cfsqltype = "CF_SQL_INTEGER" value = "#form.securitCode #" >.
    < cfqueryparam cfsqltype = "CF_SQL_INTEGER" value = "#form. ExpirationMonth #">,"
    < cfqueryparam value = '#FORM. ("ExpirationYear #" cfsqltype = "CF_SQL_VARCHAR" null = "yes" >)
    < / cfquery >

    The string that is the slightest error is the following:

    < cfqueryparam value = '#FORM. "ExpirationYear #" cfsqltype = "CF_SQL_VARCHAR" >

    I still get this error. SO there must be something inside the access database does not allow this value null. It is defined as text now, allowing a length null and useless.

    Can someone help me please?

    If you open the database in Access and go to design view for the table in question and look at the definition of this field, what are the settings for 'necessary' and ' allow a length zero "?

    -reed

  • How to set programmatically the ' input length Max ' of a cell of the tree

    I want to specify a maximum length of N_MAX for names of cell of a tree, so that when the user press the F2 key to rename, it has failed to enter more characters N_MAX.

    For existing items in the file of the uir, I am able to get this behavior by setting the tree Edit > edit columns/cells > change cell > entry length Max to 5 (see attached img03.png).

    When the user tries to rename this article, he has failed to enter more than 5 characters (see attached img02.png).

    But how to set this attribute for items added programmatically (for example, through InsertTreeItem ()).

    I was not able to find the right attribute, because the attribute of cells ATTR_LABEL_TEXT_LENGTH (which seems more or less what I'm looking for) is "not definable.

    You have found an omission in documentation. You can use ATTR_MAX_ENTRY_LENGTH and ATTR_MAX_ENTRY_CHARS with SetTreeCellAttribute and SetTreeItemAttribute to set the max entry for a cell of the tree.

    Please report to us this and sorry for the inconvenience.

  • BlackBerry smartphone how to set up POP Mail

    I have a new Bold 9700. I'm new to the blackberry and for the life of me I don't see how to set up POP mail or internet access through my 3 G connection. all my other phones, I had in the past, when I incerted my social insurance card, I would get 3 SMS and all I had to do was save them and my internet was put in place. but my Blackberry has never these messeges. is it possible to set up my access to 3 G Internet and my POP mail? all I can find is an option to set up an Enterprise Server, and I don't have another option that all the books say I should have? any help anyone can offer woud be great. Thank you in advance.

    AA7KN wrote:

    Thanks for the info. you're right, I probably have a Blackberry account through my provider of the support cell. I didn't know this until I bought this phone. I love on the phone, except that I wish RiM would have included courier pop and internet through the cellular provider without the need to have a special account. It's expensive and with the extra cost, I don't want to activate the account. Thanks again for the info.

    AA7KN

    Hello

    It is unfortunate that you did not know this before purchase... a pity indeed. But, be aware that BB provides some unique items that are for the customer BB companies don't. For example, carriers must install and maintain a unique infrastructure that is only for their BB customers. As a result, they may charge extra for these services. It is regrettable that they have not revealed these facts you advance... oh, it's the companies that control the price... no RIM.

    Good luck!

  • Monthly newsletters. How to set one up?

    Hello everyone. I know how to design an email template. But how do install you a monthly newsletter? What should I know? How are these subscription lists work?

    I am trying to set up a monthly newsletter and I wish that all of the information needed to make one.


    You thank all in advance.

    > I don't know how to create a dynamic site, but it's not the same.

    It is basically the same that more dynamic sites, with which I have worked. My point is that if you're competent enough to build yourself, you would have worked on the basics of what you ask the subject.

    > 1. How a designer / developer offer a newsletter on a client?

    >1a. If a customer wants to use hi's own delivery method (delivery service) while the designer is supposed to do? Just the model newsletter?

    Yes.

    1 b and how will do the subscription list to work? He put the databese on clients Server?

    If you build your own solution, then Yes, the database goes on the customer's server.

    2. How do you do this database online to make your lists of subcription to work. How "call" them by making the newsletter template? Calling them I mean code that I'm supposed to use to call an external file/database in my newsletter.

    You need to clarify this - what you want to store in the database? If the info of the subscription, then you just a few simple tables to store the information of the Subscriber. You would not "call" cela by making the model - use you it when sending the newsletter.

    If you plan on "insertion" the contents of the database in your newsletter, then this is exactly the same as any other dynamic database driven site. You fill in the code html using script on the server side and then send out.

    (ps: I don't know how to work a list of subscriptions.) What kind of file is it? Where to put it?)

    A list of subscriptions is a table or tables in a database.

    3 when I do the email templates that I have to deliver the html code and then the client it uses in its mailing software. When I do a newsletter which files should I provide to the customer?

    If you build a complete solution, you need to deliver and install all the parts - html templates, css, database, script files, etc.
    Monthly newsletters. How to set one up?

  • How to set up automatic backups in InDesign

    Does anyone know how to set an automatic to InDesign? Yes, I am aware that there are tons of available general safeguards and can always ' Save as ' to make copies. However, in a team environment where many people work on InDesign files, need a more robust solution to backup specifically for InDesign. From Quark, there is an automatic backup available at defined intervals. Running: InDesign CC 2014.

    I came across a script that seems to be exactly cela, but appears to have been written for Apple Script as oppose to the Java Script. Maybe someone can translate that into Javascript. Using a windows platform, Apple Script of course will not work. The script is the following:

    Anyone with the help, thank you very much in advance.

    Tell application "Finder" to the value backupPath file "Macintosh HD:documents:backup files.

    Tell application "Adobe InDesign CS2"

    Try

    CheminMonFichier the value path of the active document

    full name of the active document myFile value

    put the cd with the current date

    Set to nuName name of the active document

    the value nuName nuName & "-" & ((year of cd) & (month of the cd) & (cd day) as String)

    the value nuName nuName & "-" & (cd time) as string

    Tell application "Finder".

    duplicate the backupFile myFile value to backupPath

    the name of backupFile nuName value

    tell the end

    Save the active document

    in case of error

    Save the active document

    try to end

    tell the end

    Martin Fischer wrote that a script, saveVersions.jsx , published in www.hilfdirselbst.ch:

    InDesign Script - automatic Sicherungskopien in Unterordner create

    His companion script is VersionsCounter.jsx :

    InDesign Script - automatic Sicherungskopien in Unterordner create

    Maybe you can use them.

    saveVersions.jsx is a "Save as copy" in the background, whenever you do a 'save' or ' Save as ' in your document. The versions are stored in a folder named "versions" in the same folder or your original InDesign file is located. Versions are numbered (it will ask for time to number first Max you use). You can reset this number with VersionsCounter.jsx.

    Should work with all versions of InDesign CS3 and above.
    I use it myself with InDesign CS3, CS4, CS5, CS6 and CS5.5.
    Didn't test for superior versions.

    You must place the code in the folder the folder scripting InDesign scripts. If there is no startup script, simply create a named exactly like this (without the quotes): "startup scripts".

    Uwe

  • How to set the background color of a page_item?

    I was pasting "background-color: #5CD65C" in a number of places, like the 'attributes of the HTML table cells' under the label and the tabs of the item, but get no results. Can someone tell me how to set the background color of a cell, please?

    Hi Doug,.
    One method is to add a style to your header html in page attributes, if you add the below css styling and the change of the name of the item page (#P2_FIRST_NAME) to your he should style correctly:

    Thank you

    Paul

  • new update of Apple Watch doesn't have My Watch tab. I can't understand how to set up friends or family ring

    I updated my Apple Watch with the latest version of the software that is 10 IOS. But the last update did not My Watch tab in the settings. I can't understand how to set up friends or family ring? Any help on this will be appreciated.

    Hello

    IOS 10 (as in the previous version of iOS), My Watch tab is located in the application of the watch (not in the settings).

    If you have also updated your Apple Watch to watch OS 3, note that the application of friends (accessed via the side button, with a circle of people) has been removed from the watch and that there is no direct replacement for this feature.

  • How to set one of my pictures as a screen saver

    I can't understand how to set one of my own photos as the screensaver on my iMac... How do I do it please?

    System Preferences > desktop and screen saver > screen saver > select one of the modes that uses a table > screen saver Options > choose a folder...

    Made in regards to the BONES of the Mavericks.

    Clearly, it will work best when you have more than one image.

    I guess you mean screensaver and no paper painted (preferably same group)?

  • How to set the number of e-mail messages that are stored on my iPhone

    How to set the number of e-mail messages that are stored on my iPhone – so when I don't have a network connection I can see a 'large' number of messages in my Inbox etc.

    This is series is not defined in the world

    You must go to settings-> mail, contacts, and calendars and check the settings of your e-mail provider offers in this area

  • How to set google as homepage

    How to set Google as my homepage on newly installed Windows 8.1

    There is a separate forum for questions of Firefox, but...

    In the MenuBar in FIREFOX, select Tools-Options-general

    The first two fields are to set the home page.

  • How to set the time that my screen stays on?

    How to set the time that my screen lights up.  I have an iPod Touch 6?

    Settings > general > auto-lock

Maybe you are looking for