Row height at exactly 2mm

Hi Gurus,
I have a long documents that contains numerous long table and there is a blank row that need to be set at exactly 2mm in height, instead of manually putting its row height at exactl 2mm i want to create a script that will make my selected row to transform at  a row height at exactly 2mm. I try the code under but it doesn't work.
var myDocument = app.documents.item(0);
    var myTable = myDocument.stories.item(0).tables.item(0);
    myTable.rows.item(0).height = 2;
Anyone know whats the correct code.
Thanks in advance.
renyboy

Thats what it says. Thanks for quick help.

Similar Messages

  • Report Generation Toolkit Table Row Height-MS Word

    I am having trouble setting the table row height in the report generation toolkit. I can set the column width fine, but the row height seems to remain the same no matter what I set it to. I have attached the VI that generates and formats the table, and the printout it is resulting in. I have also attached the template file I am using.
    Any tips to get this to work right? I am trying to make the cells exactly the same height as the text inside. 
    Solved!
    Go to Solution.
    Attachments:
    AddMarkersToReport.vi ‏20 KB
    badFormatting.pdf ‏179 KB
    splitter.docx ‏13 KB

    Hi,
    So I tried .2  and it didn't work.  So I went to Word to manually change it, and it did not work either.  There is a selection box in word, for the table properties, that seems to default to the value "at least".  When I changed this manually to "exactly" in word, no problem with the .2 manually in Word.
    Hopefully this can be set within the template, for all new inserted tables.  I'm not sure the report generator VI's expose this property.  Well, this is a start for the issue.
    Edit ****
    You can go into the add table VI and expose the property.  See pic.   However, you have to decide if you want to "upgrade" this VI permanently to expose this property or make a copy with the property exposed.   I haven't messed with the new class reports too much, so not sure of the ins and outs with this.
    I think this is the issue with the row size becoming smaller.
    Mark Ramsdale

  • Resizing a JList with variable row heights, not updating the "picture"

    Firstly I would like to apologize for posting this Swing question here, but I was unable to find the Swing category, if someone could direct me to that I would be most grateful.
    Ok, so in abstract what I am trying to do is have a JList with resizable rows to act as a row header for a JTable (exactly like the row headers in OO Calc or MS Excel).
    What I have is a RowHeaderRenderer:
    public class RowHeaderRenderer extends JLabel implements ListCellRendererand it has a private member:
    private Vector<Integer>        _rowHeights            = new Vector<Integer>();which contains a list of all the variable row heights.
    Then there is my getListCellRendererComponent method:
        public Component getListCellRendererComponent(    JList         list,
                                                          Object        value,
                                                          int           index,
                                                          boolean       isSelected,
                                                          boolean       cellHasFocus)
            // Make sure the value is not null
            if(value == null)
                this.setText("");
            else
                this.setText(value.toString());
            // This is where height of the row is actually changed
            // This method is fed values from the _rowHeights vector
            this.setPreferredSize(new Dimension(this.getPreferredSize().width, _rowHeights.elementAt(index)));
            return this;
        }And then I have a row header:
    public class RowHeader extends JList implements TableModelListener, MouseListener, MouseMotionListenerand you may be interested in its constructor:
        public RowHeader(JTable table)
            _table = table;
            _rowHeaderRenderer = new RowHeaderRenderer(_table);
            this.setFixedCellWidth                        (50);
            this.setCellRenderer                        (_rowHeaderRenderer);
            // TODO: grab this value from the parent view table
            JScrollPane panel = new JScrollPane();
            this.setBackground(panel.getBackground());
            this.addMouseMotionListener                    (this);
            this.addMouseListener                        (this);
            this.setModel                                (new DefaultListModel());
            table.getModel().addTableModelListener        (this);
            this.tableChanged                            (new TableModelEvent(_table.getModel()));
        }and as you can see from my mouse dragged event:
        public void mouseDragged(MouseEvent e)
            if(_resizing == true)
                int resizingRowHeight = _rowHeaderRenderer.getRowHeight(_resizingRow);
                _rowHeaderRenderer.setRowHeight(_resizingRow, resizingRowHeight + (e.getPoint().y - _cursorPreviousY));
                _cursorPreviousY = e.getPoint().y;  
        }all I am doing is passing the rowHeaderRenderer the values the currently resizing row should be, which works fine. The values are being changed and are accurate.
    The issue I am having is that while this dragging is going on the row does not appear to be resizing. In other words the "picture" of the row remains unchanged even though I change the values in the renderer. I tried calling:
    this.validate();and
    this.repaint();at the end of that mousedDragged method, but to no avail, neither of them worked.
    Again, I verified that I am passing the correct data in the RowHeaderRenderer.
    So, anyone have any ideas how I should get the image of the RowHeader (JList) to update after calling my MouseDragged event?
    Thank you for your time,
    Brandon

    I was able to fix this some time ago. Here is the solution:
         public void mouseDragged(MouseEvent e)
              if(_resizing == true)
                   int newHeight = _previousHeight + (e.getPoint().y - _cursorPreviousY);
                   if(newHeight < _minRowHeight)
                        newHeight = _minRowHeight;
                   _rowHeaderRenderer.setRowHeight(_resizingRow, newHeight);
                   _table.setRowHeight(_resizingRow, newHeight);
              this.updateUI();
         }

  • CS2 automatically fit row height to content in table?

    Hi guys, I'm using CS2 and I have a table with lots of pages. I need to be able to have the height automatically fit to the content of the tables. Unfortunately data is not consistent therefore some cells have 2 rows of content, others 8.
    Automatically fit to content is not available.
    I have tried adjusting row heights then 'table' > 'distribute rows evenly' but obviously this is no good as some are too cluttered, others too spacious.
    Any suggestions appreciated.

    Huh. Maybe I read the OP's posts correctly, I think, but I misread yours. I assumed that, since the thread-opener mentioned row height, that when the OP asked about getting rid of "distribute evenly" that row height was still under discussion. Looks to me like all you can do with cell width/column width is
    1) Select a column and specify an exact width
    2) Select a group of columns and specify the same exact width for all of 'em
    3) Select all the columns and
        a) Distribute columns evenly
        b) Specify an exact width for all columns
    Unfortunately, I have to use tables a great deal, so I feel like I'm up to speed on what we can and cannot do with ID tables.

  • Min. row height table style

    A new table in Indesign is by default set with a minimum row height of 1.058 mm. This 'minimum' feature is also visible in a table style (the 'exact' feature is not for some reason). When I import a table from Word for example, it's row height might be different. For example a certain row had a height of 25 mm. So I applied the cell style to it where I set the 'min' rowheight to 1.058 mm. However, the row height still remains 25 mm. This doesn't only happen to imported tables. I've inserted a new table in indesign. This had a row height of 1.058 by default. Then I dragged a row heigher to 40 mm for example. Then I applied the cell style again with 'min' set to 1.058. The row height should turn to 1.058 but it remains 40 mm. Why can't I apply a rowheight in a cell style? Now I have to convert a table to text and then back to table again to get the default rowheight back.

    If you want to force it to be a certain height, you should change "At Least" to "Exactly." "At Least" does just what it says it does—it sets a minimum for the row height, but lets the max vary. It should like you want to rows to be "exactly" a certain height, even if it causes text to become overset.
    You should also be able to change your defaults when you have no documents open if you prefer it to work differently.

  • Row height drive by a style

    Is it possible to set the parameter "exact" or "almost" to define the height of a row in a table driven by a specific style??? I would like to set a specific hight  to a cell style to control all cells with same style ...

    indesign
    Da: Pat Willener 
    Inviato: mercoledì 10 settembre 2014 11:34
    A: Michele Predolin
    Oggetto:  Row height driven by a style
    Row height driven by a style
    created by Pat Willener <https://forums.adobe.com/people/pwillener>  in Adobe Creative Cloud - View the full discussion <https://forums.adobe.com/message/6716845#6716845>

  • Row height driven by a style

    Is it possible to set the parameter "exact" or "almost" to define the height of a row in a table driven by a specific style??? I would like to set a specific hight  to a cell style to control all cells with same style ...

    indesign
    Da: Pat Willener 
    Inviato: mercoledì 10 settembre 2014 11:34
    A: Michele Predolin
    Oggetto:  Row height driven by a style
    Row height driven by a style
    created by Pat Willener <https://forums.adobe.com/people/pwillener>  in Adobe Creative Cloud - View the full discussion <https://forums.adobe.com/message/6716845#6716845>

  • Table Row Heights

    Hi
    I am using Indesign CS3 SDK on Windows.
    I am trying to use GetRowHeights() of TableGeometry to get height of multiple rows. I am getting Minimum Row Height * Number of rows, and not the actual height.
    Can anybody tell me how to get the exact height of these rows?
    Rajani

    In BO XIR3.1 the row height does not appear to be based on individual rows. Instead the row height is the same for each row in the table. Is there some setting that I need to adjust here?

  • Report Generation: what determine row height?

    When using the standard report generation vis, and I append a table, what determines the height of the rows? You can set the column width, but even down into all the vis, I don't see any way to control this.
    This is in Labview 8.5.1
    Message Edited by remenakb on 04-21-2008 12:53 PM
    Brad Remenak
    Certified LabVIEW Architect

    I have a Zebra printer I am trying to print to and it seems like the row height is determined from just the text length. Even if the column width is plenty wide enough.  But if I send it to a regular Canon printer the table seems to print fine.
    Brad Remenak
    Certified LabVIEW Architect

  • Report Row Height and Column Width

    Hi,
    I have a cell in a report (a description column) that causes the row height to become very large (when there is a lot of text in the description). I can make the column wider on the report attributes page, but there doesn't seem to be any place to influence the maximum height of a row on a report, short of modifying the template.
    Adding style attributes (e.g. max-height:30px) to an element only affects the <span> that the element resides in, not the table cell or row.
    Displaying the column as a text area is a useful workaround. The downside is the border and scroll bars do waste a lot of screen real estate. Does there exist some other way of setting a limit on the height and/or width of a report, report column or report row?
    Oh, and another question- how do make line breaks in this forum? There's no support for <BR> or [br].

    Please reply to this thread, my customer is facing the same issue. He does not have issue with the excel and the pdf output but in the rtf output the table heght increases to accomadate the data.He want it to bevave in the same way as the pdf do.
    Regards,
    Ajay

  • Interactive Report Column Headings and Row Height

    I am using the div style="width:350px;" method to control the width of columns in various interactive reports. That works fine except for the following:
    1. When creating filters, the <div...> stuff shows up along with the actual column heading, thus confusing some end users
    2. Even when I uncheck the "Use same text for single row view" checkbox and then provide a simple single row view label, the <div> stuff still shows up on the single row view
    Does anyone have a better solution?
    Also, does anyone know of a way to limit the row height within an interactive report row? I have some columns of data that contain a large amount of HTML data and I'd like to be able to limit the number of rows that show on the report.
    Is Oracle planning to provide some better control over the Interactive Report columns in another version? The Interactive Report is such a huge improvement in usability in APEX - it would be great to take it to another level by providing some better control over column width and row height.
    Edited by: DaleB on Jun 18, 2009 8:54 AM
    Edited by: DaleB on Jun 18, 2009 8:54 AM

    Dale,
    Unfortunately we don't have much we can use to do what you would like. I would have said it's impossible until version 4 but you could actually do something similar to what Roel has done. His trick is in the edit button. He changed the edit button to use an "onload" call to a JavaScript process. You could do the same but call a process that goes across the rows and styles each column. Now because you don't have a way to identify the column (can't use the order because the end user could change it) you'll have to write the code to look at the top row first and then style the appropriate column. As far as I can tell, this would be quite difficult and inefficient. Having said that if you need it that bad and would like some help with it, put up an example application on apex.oracle.com and provide the workspace/username/password and I'll take a look.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Different row heights in one table - is this possible?

    I want the height of each row in a table to be set to fit the contents of that particular row.
    The column which drives the cell height uses the cell formatting options "Wrap Text" and "Row by Row Auto Fit". These options will set the row height of all rows to that which fits the tallest cell. What I prefer is to have one row height be 4, if that's all it needs, while the next row may have a height of 32 because of a long line of wrapped text.
    Can this be done with DeskI XI 3.1?

    In BO XIR3.1 the row height does not appear to be based on individual rows. Instead the row height is the same for each row in the table. Is there some setting that I need to adjust here?

  • How to increase the row height of the table in the smartform

    Hi,
    Can any one say,
    How to increase the row height of the table in the smartform.
    It is presently show the row width very small, i want to increase the row with of the table in the smartform.
    Plase say how can we increase the row height in the smartform.

    Hi Ravi,
         In Smartforms , Select the Table and you can adjust the cell hieghts in OUTPUT OPTIONs TAB.
        Reward points if that Helps.
    Manish

  • Dynamically adjust table row height based on data in column

    Hi all,
    I'm using JDeveloper 11.1.1.5.0 and have a requirement for a table to adjust the height of its rows depending on the data in the columns. One of the columns in the table is a rich text description field and I have the 'rows' property set to 13. This field could have twenty lines of text/images or just one. The users would like the page to show all twenty lines of text without having to scroll but the table has the same height for all the rows (that I set to 13) and provides a scroll bar when the data exceeds this size. My users do not like to scroll, and want the height of each row to be determined by the data in it. I looked at a few options and also did a search online, but was unable to find anything to fulfill this requirement. Do you know of how I could change the height of each row in the table so that it fits the data that it holds?
    I have an example of my table at: <b>Table with Set Row Height</b>
    As you see, the picture has to be scrolled so that the whole picture is visible. The user requirement is to adjust the row height to show the full picture. Ideally the next two rows would shrink, but that would be a nice to have.
    Thanks in advance for any pointers or help.

    Hi Frank,
    Thank you for replying to my question, I truly appreciate your help.
    I tried to use the autoHeightRows to adjust the height of my rows but was unsuccessful. If I understand the autoHeightRows property correctly, this is used for setting the height of the whole table. If this is incorrect and it can be used for setting the height of individual rows in the table, please correct me. I have the 'Rows' property of the richTextEditor set to 13 and this is the height that I would like to make dynamic based on the data.
    My users requirement is for the height to be big enough for the data in each row of the table (the table has a description column and the height of each row should be determined by the data contained in it). I updated my <u><b>Screen Shot</b></u> to show the desired layout and what is currently being generated though ADF (http://www.flickr.com/photos/87583386@N05/) .
    I have three rows in the example (in actuality these are around 50) and the text in each row can vary. The users would like to see the full text/image in each row without having to scroll each row. Currently my table is within Panel Box, which is inside a PanelGroupLayout-Scroll which is in a PanelStretchLayout. I tried to put the table by itself with the autoHeightRow modifications you suggested but thsi did not help either. I am using JDeveloper 11.1.1.6.
    Is this possible with an ADF Table? If it is, is the autoHeight property the only one that I am setting incorrectly? If not, is there another component I can use to get the desired functionality? My users are very strict about this requirement and will not accept the application without this.
    Thanks,

  • Openoffice 3.2 calc doesn't save row height in xls

    Hi All,
    I have upgraded to ooo 3.2 recently. I work with excels spreadsheets so  I have to save files into xls. Suddenly I realized that Calc doesn't save custom row height, when I open the file all rows are displayed with default height. It worked in the previous version, pacman log: upgraded go-openoffice (3.1.1.5-1 -> 3.2.0.4-1)
    I searched ooo forums, but didn't find anything.
    update:
    in case someone is interested, I have found a kind of work-around. Select sheet, Format / Rows / Optimal height -> increase value at least one step, in my case from 0.0 mm to 0.1 mm, then save. Reopen xls, rows will be displayed with the custom heights. Unfortunately one has to apply this workaround on every singe sheet in the workbook. :-/ No way I would do this with all my workbooks.
    Last edited by siriusb (2010-02-03 09:52:39)

    Workaround with downgrade: If someone successfully downgraded to 3.1.1 it wont start because depends on libjpeg.so.7.
    1. Create a script somewhere in your PATH and make it executable:
    #!/bin/bash
    LD_PRELOAD=/var/tmp/libjpeg.so.7.0.0 soffice -calc "$1"
    2. copy libjpeg.so.7.0.0 to the directory mentioned in the script (in this case /var/tmp)
    3. in your file manager e.g. nautilus right click on the xls, choose properties / Open with / custom command, and use the script's name.

Maybe you are looking for

  • Do I need to resize pics?

    I'm about to upload a ton of pics to my website. I'm simply going to drag them from iPhoto to iWeb. I got a new Cannon xti and took almost 1,000 pics on vacation. I'm probably going to put about 300 of those on the website eventually. Each pic is abo

  • Automatic resizing of Window

    I've created a window that let's the user know that a child transaction is being started. I add three dots to a TextGraphic widget message until the child task is started. However, the window pane automatically gets bigger every time the three dots a

  • How to force note attachment in an approval process ?

    Hello experts, I am trying to find a solution in order to force an agent to write a note as attachment, during an approval workflow process, especially when the agent rejects. Does somebody already implement such solution, and how ? Thanks in advance

  • Internal Error has occured

    Hi, I've just installed a new version on Enterprise Manager, but after I login into the console I get a message "Internal Error has occurred. Check the log file for details", pressing ok then takes me to the home page and everything looks ok, But I'm

  • "Warn me when closing multiple tabs" does not work on Mac Version 5.0.1

    The "question" says it all. Even though this box is checked in FireFox Preferences, it doesn't work on my iMac. The browser closes immediately. There is no pop-up with a question.