features/overprint setting table cell

is there a way to line ad in the following script to define the features of the cell in a Super?

This script was very useful for me (thanks to Jongware (http://forums.adobe.com/message/2818852#2818852)), but it lacks the functionality of overprinting of strokes.

table = app.selection [0];
if (table.hasOwnProperty ('basic'))
Table = table.parent;
if (cell instanceof array)
Table = table.parent;
if (table instanceof column)
Table = table.parent;
if (table instanceof Row)
Table = table.parent;
if (! (table instanceof Table))
{
Alert (' Echt niet in een tabel! ");
Exit (0);
}
Color = table.cells [0] .characters [0] .fillColor;
Black = app.activeDocument.swatches.item ('Black');
table.cells.everyItem () = .properties { }
topEdgeStrokeColor:color,
bottomEdgeStrokeColor:color,
leftEdgeStrokeColor:color,
{rightEdgeStrokeColor:color };
for (acellule = 0; acellule < table.cells.length; acellule ++)
if (table.cells [aCell] .fillTint is 50)
table. Cells [aCell]. FillColor = color;

TIA, Pascal

Hey!

It is easy to solve your problem.

In red is what you have to add...

table = app.selection [0];

If (table.hasOwnProperty ("baseline"))

Table = table.parent;

If (instanceof cell table)

Table = table.parent;

If (instanceof table column)

Table = table.parent;

If (instanceof Row table)

Table = table.parent;

If (!) () instanceof table Table))

{

Alert ("niet Echt in een tabel!');

Exit (0);

}

Color = table.cells [0] .characters [0] .fillColor;

Black = app.activeDocument.swatches.item ("Black");

table.cells.everyItem () = {} .properties

topEdgeStrokeColor:color,

bottomEdgeStrokeColor:color,

leftEdgeStrokeColor:color,

rightEdgeStrokeColor:color,

bottomEdgeStrokeOverprint:true,
leftEdgeStrokeOverprint:true,
rightEdgeStrokeOverprint:true,
topEdgeStrokeOverprint:true};

for (acellule = 0;  acellule

If (table.cells [aCell] .fillTint is 50)

table. Cells [aCell]. FillColor = color;

tomaxxi

Tags: InDesign

Similar Questions

  • access to table cells

    Hello

    Could someone please help me understand how to access the cells in a table (to do)?  I have a report with a table full of a channel.  In a column, it shows a list of names (which come from a channel).  I have another string with a list of colors and I want to associate each name in the table with a color of the second round. I tried unsuccessfully to access even a cell using D2TabRow and D2TabCol and the content...

    Any help is appreciated

    Thank you

    Hi Muskeg,

    Edna has sent two times it shows the only way to change the font of the text in individual table cells properties.  You create, save and call a UserCommand, so is not simple.  The main problem you use is that the table in the REPORT object does not generally contain cells.  If you happen to have chosen a column type in the 'list of text', then you can access the contents of individual table cells, but otherwise, your only options are to get and set the values outside the table that the table is referencing - be they channel values or the values of variables or expressions.

    The easiest option is to get/set of string values and assign each column of the table or row to display the channel values.

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • the display of ssize_t value in table cell

    Hello

    I want to display a number of type ssize_t in a digital table cell. In the user interface editor, the cell has been set to intptr_t.

    Runs the code in debug64 works fine, in debugging I get the error message:

    FATAL RUN - TIME ERROR: Invalid argument type: found "int", "__int64" expected.

    I have to add: in the user interface editor, I created the table with one row only, I have add as many rows programmatically using InsertTableRows (but the cell types need to be inherited). The error appears when filling out the cell in the last row.

    Ideas?


  • How can I write in a table cell (row, column appear) in a databae?

    How can I write in a table cell (row, column appear) in a database using LabVIEW Database Toolkit? I use Ms Access. Suppose I have three columns in a table, I write 1 row of the 1st column, then 1st rank of the 3rd column. The problem I have is after writing the 1st column of 1st row, the reference goes to the second row, and if I write in the 3rd column, he goes to the 2nd row 3rd column. Any suggestion?

    When you perform a SQL INSERT command, you create a new line. If you want to change an existing line, you must use the UPDATE command (i.e. UPDATE tablename SET column = value WHERE some_column = some_value). The some_column could be the unique ID of each line, date and time, etc.

    I don't know what is the function to use in the Toolbox to execute a SQL command, since I do not use the Toolbox. Also, I don't understand why you don't do a single INSERT. It would be much faster.

  • Table cell height 11 FM

    Is there an easy way to control the height of a table cell? Is there a key combination that will allow me to move the bottom margin upwards or downwards, or do not develop until the last line of text?

    Thank you

    Bill

    By default, the height of line expands with the content.

    Use the Table > Format > row height to set a height of minimum and maximum line for selected rows:

    Don't forget that you can control the margins of cell for the table in table designer > basic and properties by the paragraph by paragraph Designer tag > Table Cell properties. These margins might be useful to get the look are are after as well.

  • Help with a script to search for text in a table cell and apply the cell style

    Hello

    I build the script which Jongware wrote in his post here http://indesignsecrets.com/tackling-tables-through-scripting.php - I am trying to create a variable in which I can add a number of different parts of the text, in this case it's different parts of the United Kingdom i.e. 'London', 'East', 'Scotland' etc. I just need the script to apply the cell Style - 'District Cell' - to any cell that contains text in the variable. Here's the script, if anyone can help I would be grateful.

    function checkWhichTable()
    {
    // ensure the user made a selection
    if (app.selection.length != 1)
    return null;
    var currentTable = app.selection[0];
    if (currentTable.hasOwnProperty("baseline"))
    {
    currentTable = app.selection[0].parent;
    }
    while (currentTable instanceof Cell || currentTable instanceof Row || currentTable instanceof Column)
    currentTable = currentTable.parent;
    if (!(currentTable instanceof Table))
    {
    // No table selected
    return null;
    }
    return currentTable;
    }
    app.doScript(checkUserSelection, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "Process Table");
    
    
    function checkUserSelection ()
    {
    var a_table = checkWhichTable();
    if (a_table == null)
    {
    if (confirm("No table selected. Do you want to process *all* tables?") == false)
    return;
    allTables = app.activeDocument.stories.everyItem().tables.everyItem().getElements();
    for (aTable=0; aTable<allTables.length; aTable++)
    {
    processTable (allTables[aTable]);
    }
    } else
    {
    processTable (a_table);
    }
    }
    function processTable(table)
    {
    // do something here!
    
    
    //Find Text in Cell and apply Cell Style
    var textInCell=['London', 'Scotland', 'South West'];
    for (i=0; i<table.cells.length; i++)
    {
    if (table.cells[i].texts[0].contents==textInCell)
    table.cells[i].appliedCellStyle = "District Cell";
    }
    
    
    
    
    }
    

    Hello

    Change this feature:

    function processTable(table)
    {
    //Find Text (exactly as it is) in Cell and apply Cell Style
    var
      textInCell=['London', 'Scotland', 'South West'],
      mFound, cFound;
    
    app.findGrepPreferences = null;
    app.findGrepPreferences.findWhat = "^(" + cities.join("|") + ")$";
    mFound = table.findGrep();
    while( cFound = mFound.pop() )
      cFound.parent.appliedCellStyle = "District Cell";
    }
    

    Jarek

  • Dreamweaver keeps adding an additional line in a table cell

    I'm not sure why this is happening, but for some weird reason, the second column of the first row of a table always has the text starts as if there is a blank line. I checked the code to see if something has been inserted by accident, but there is no break line or anything else between the td tag and text in my table cell. I checked the alignment and vertical alignment of the cell is set to "high".

    In the editor, everything seems normal. But once I go to see live or download the file on the web, the blank line appears in the second cell of the table.

    I think I found the problem. In Design mode in the properties box, a column has the value Format paragraph and the other was set to None. Unifying it on all of them seems to have solved the problem.

  • How to apply the character style to table cell

    I'm sure it's basic, but I can't find any references on how to do it and my attempts have failed.  I use VB and CS5.5

    Basically what I'm trying to do is to select a table cell and apply a character like this style...

    MyCharacterStyle = myDocument.CharacterStyles.Add set

    myCharacterStyle.Name = "TH2".

    myTable2.Cells.Item (1) .appliedCharacterStyle = "TH2".

    with this code, I get a "object does not support this property or method.  myTable2.Cells.Item (...). appliedCharacterStyle ".

    I tried several other versions without success.

    Can someone tell me what would be the proper syntax to apply a character style to text in a table cell, or if it's still the right path to follow on that?

    I have to select the text in the cell rather than the cell itself, and if so, how do you do that?

    Thank you

    You do not need to select the text in the cell, but you need

    to target rather than the cell. It is true that in the user interface, you can

    Select the cell and apply a style of tank, but not with a script. Thus, in

    JavaScript is:

    myCell.texts.item (0) = .appliedCharacterStyle

    app.activeDocument.characterStyles.itemByName ("MyCharStyleName")

    It must be something similar in VB also.

    Of course, you can target the text in different ways:

    myCell.characters.everyItem () or myCell.paragraphs.everyItem () etc etc.

    but I think that the text is the most basic of the lot.

    Ariel

  • Bullet points list beyond table cell displyaing

    Just need of a small workaround / difficulty for a list style - basically in Firefox, the ball towards the left, view the points beyond the cell of the table, they are found in:

    link

    Any ideas to fix this?

    See you soon.

    Set the margin and the filling of the ul to zero.

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.dreamweavermx-templates.com - template Triage!
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================

    "Iain71" wrote in message
    News:evts8i$Bf0$1@forums. Macromedia.com...
    > Just need of a small workaround / difficulty for the list style - essentially in
    > Firefox.
    > points thumbnails displayed on the left, beyond the table cell
    > they are in:
    >
    > http://www.choice-apex.com/
    >
    > Any ideas to fix this?
    >
    > Cheers.
    >

  • a cross on the table cell

    Is it possible a cross on the table cell?

    The term "strike" can have multiple interpretations.

    1. As a checkbox clickable?
    2. With diagonal lines, which intersect?
    3. With vertical lines or horizontal hash?
    4. With table cell fill of a model image pre-built?
    5. With gray scale or the fill color, without content, to suggest the use of cell?

    Pages, you didn't say what version, so I'll use v5.6.2, does not provide the points 1, 2 and 3 for the cells in a table.

  • table cell shift problem

    Get a weird selection indicator displacement effect in the cells when using tables in LV 2013 (32) on Win 7 (64).   Hesitate to call it a "scroll" because that which has other meanings in the context of the table.

    Click on the letters in the attached VI to see - same effects if the table is in a VI running or not.

    + clicking on 'A' has no effect.  You remove 'A', the cell to move.

    + clicking on one of the cells located below "A" act as above

    + clicking on the header cell 'x' causes a big drift.  Put the other values in the cell has other effects (some travel a lot, some not at all)

    + clicking on the cell of the table "y" causes a big bend on the side.  Put the other values in the cell has other effects (some travel a lot, some not at all)

    + clicking on the "z" table cell is not moving.  You delete 'z', a big bend on the side

    + I noticed the change which occurs when you remove "A" stops at the same place in the landscape as if you

    Comments:

    + Seems to be related to the cells to justify = center.

    + Shifting is always is from right to left.

    + I noticed the change which occurs when you remove "A" stops at the same horizontal location as if you click on 'y '.

    + occurs at least two different machines from different mfg both 2013-32 running on Win7-64.

    In the case where you are still interested, see 5 message in this thread.

  • hyperlink in the table cell?

    Hi all

    We need to navigate a path for each row in the table control. Is it possible to have a hyperlink in a table for each row cell? or do I have to use button battery to do the same thing?

    Kind regards

    Kanu

    The answer is, you can't. However, the custom hyperlink control is open-source. You can find the source in toolslib\custctrl\hyperlinkctrl.c. It's a pretty simple code module, so it is not all that difficult to modify this code so that it could work in a table cell, rather than a message text control.

    Luis

  • get location from pixel coordinates to table cell

    I would like the opposite of what the MakePoint() function.  Instead of providing an index of table of row/column cell, I would get the coordinates of the beginning of a table of mouse cell.

    Is there a special function to do this?

    Hello ElectroLund,

    I think GetTableCellRangeRect is what you are looking for.

    To get the mouse coordinates table cell using GetTableCellFromPoint.

    Constantine.

  • How do I get the table cells?

    It's my get code that any object in propagation.

    Int32 childCount = parent-> GetChildCount();

    for (int32 /IndexEnfant = 0; childIndex < childCount; /IndexEnfant ++)

    {

    InterfacePtr < IHierarchy > child (parent-> QueryChild (childIndex));

    ChildUIDRef = UIDRef: GetUIDRef (child);

    TextFrame table

    }

    How do I get the table cells?

    You can access the table using ITableModel and GridAddresscell.

    But to get to the ITableModel since ITextModel implies some complexity.

    Few things to understand:

    -L'interface that corresponds to the written document is ITextModel

    -The recommended method to iterate tables in a story done by ITextStoryThreadDictHier

    -Get the ITextStoryThreadDictHier on the history and the main thread as ITextStoryThreadDictHier::NextUID()

    -Now get ITextStoryThreadDict for UID and query for ITableModel. If you get ITableModel, then you have found the table.

    Once you have ITableModel you can get ITableCell as follows:

    ITableModel:QueryCellContentBoss(GridAddress); Give ITableCell

    You can refer to SnipperRunner (SnpManipulateTextModel).

    Download text template table model:

    InterfacePtr textModel (storyUIDRef, UseDefaultIID());

    InterfacePtr textStoryDictHier (textModel, UseDefaultIID());

    NextUID UID = sourceStory.GetUID (); / / Download the main thread dictionary

    Now loop the dicthier to iterate through all the threads dicts.

    InterfacePtr textStoryThreadDict (sourceStory.GetDataBase (), nextUID, UseDefaultIID());

    InterfacePtr tableModel (textStoryThreadDict, UseDefaultIID());

    If (tableModel) / / the storythreaddict represents a table

    {

    You are now in a table

    }

  • Dreamweaver several graphs in single table cell

    Dreamweaver is having problems when I try to combine multiple charts in a single table cell. Some are separated by two end just "" entries, while others do not accept these separators. Pleas you show me the right way to handle this.

    Jack,

    • Tables should not be used for web page layouts.
    • Tables for tabular data such as spreadsheets and graphics only.
    • Today, we use an external CSS file for the layout, typography and other styles.

    Please show us what you are trying to do by copying and sticky code in a reply from the web forum.

    Nancy O.

Maybe you are looking for

  • Satellite A660-1GC - Bluescreen when HDMI is connected

    I have a month old Toshiba Satellite A660 it was installed with OEM Windows 7 Home Premium, I have now installed Windows 7 Ultimate 64-bit (and not an upgrade) I ' ´ve installed and updated all the drivers. But when I put in an HDMI cable on my flat

  • I want to use the Camileo H20 as a webcam

    Hello I bought a Camileo H20 and I want to use it as a webcam.Some of my friends use video cameras as webcam in tunner tv mode so I bought a tv tuner too because in my country you can't find this cable with usb port and input jack to connect it via U

  • the data in table view

    I have an array of clusters.  Each element of the cluster contains a lot of data elements for a sample.  The index of the table indicates what number of the sample. The size of the array will not be determined until the time of execution because the

  • desktop icons and the start page disappeared__

    friends have used my computer laptop and under the user principal name is the screen saver but no icons and no toolbar from the menu in the and also nothing happens when I hit the windows icon key either?

  • Entry of the number for Calculator App

    Hi all I am creation app calculator with waterfalls and managed to get buttons and number using textarea display upwards. The problem is when I use textarea for input of the number, he keeps popping up in regular keyboard when I Browse. My question: