Centering a table in a document

I have a fairly simple Pages '09 document, which I am writing. It is all text with one table. I want to center the table horizontally on a page, but for the life of me, I can't figure out how to do it. If anyone knows how to center a table, please let me know.

Arrange > Align > Center
Arrange > Align > Middle
As they are built in menu items, you may give them shortcuts if you need to use them often.
You may also use this script which will trigger the two menu items in a single call.
--[SCRIPT centerfloating_object_inpage]
Enregistrer le script en tant que Script : centerfloating_object_inpage.scpt
déplacer le fichier ainsi créé dans le dossier
<VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Pages:
Il vous faudra peut-être créer le dossier Pages et peut-être même le dossier Applications.
Sélectionner l'objet flottant à centrer
aller au menu Scripts , choisir Pages puis choisir centerfloating_object_inpage
--=====
L'aide du Finder explique:
L'Utilitaire AppleScript permet d'activer le Menu des scripts :
Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
Cochez la case "Afficher le menu des scripts dans la barre de menus".
Sous 10.6.x,
aller dans le panneau "Général" du dialogue Préférences de l'Éditeur Applescript
puis cocher la case "Afficher le menu des scripts dans la barre des menus".
--=====
Save the script as a Script: centerfloating_object_inpage.scpt
Move the newly created file into the folder:
<startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Pages:
Maybe you would have to create the folder Pages and even the folder Applications by yourself.
Select the floating object to center
go to the Scripts Menu, choose Pages, then choose "centerfloating_object_inpage"
--=====
The Finder's Help explains:
To make the Script menu appear:
Open the AppleScript utility located in Applications/AppleScript.
Select the "Show Script Menu in menu bar" checkbox.
Under 10.6.x,
go to the General panel of AppleScript Editor’s Preferences dialog box
and check the “Show Script menu in menu bar” option.
--=====
Yvan KOENIG (VALLAURIS, France)
2010/10/19
--=====
property theApp : "Pages"
--=====
on run
my activateGUIscripting()
my selectSubMenu("Pages", 7, 10, 2) (* Center horizontally *)
my selectSubMenu("Pages", 7, 10, 6) (* Center vertically *)
end run
--=====
on activateGUIscripting()
(* to be sure than GUI scripting will be active *)
tell application "System Events"
if not (UI elements enabled) then set (UI elements enabled) to true
end tell
end activateGUIscripting
--=====
my selectSubMenu("Pages",6, 4, 26)
==== Uses GUIscripting ====
on selectSubMenu(theApp, mt, mi, ms)
tell application theApp
activate
tell application "System Events" to tell process theApp to tell menu bar 1 to ¬
tell menu bar item mt to tell menu 1 to tell menu item mi to tell menu 1 to click menu item ms
end tell -- application theApp
end selectSubMenu
--=====
--[/SCRIPT]
Yvan KOENIG (VALLAURIS, France) mardi 19 octobre 2010 11:16:48
Message was edited by: KOENIG Yvan

Similar Messages

  • Centering a table in Word LabWindows

    Hello all!
        I create a table in Word using Microsoft Word 9.0 Object Library (word2000.fp) and I have a problem with centering a table in document. I have created correctly table but I can't centered a table in my document page. I have tired all possible of ways to center a table but no results. I don't know what I'm doing wrong. Please help on the issue. Below I add a piece of my code written in Labwindows/CVI:
         Word_GetProperty (docHandle, NULL, Word_DocumentApplication,
                                  CAVT_OBJHANDLE, &appHandleL);
         Word_GetProperty (appHandleL, NULL, Word_ApplicationSelection,
                       CAVT_OBJHANDLE, &currSelHandleL);
         // adding paragraph
         Word_SelectionTypeParagraph (currSelHandleL, NULL);
         Word_GetProperty (currSelHandleL, NULL, Word_SelectionRange,
                       CAVT_OBJHANDLE, &rangeHandleL);
         // creating a table
         Word_GetProperty (docHandle, NULL, Word_DocumentTables, CAVT_OBJHANDLE, &tablesHandleL);
          Word_TablesAdd (tablesHandleL, NULL, rangeHandleL, 5, 6,CA_VariantInt(1) , 
                      CA_VariantInt(0), &tableHandleL );  
          //Word_TableSelect (tableHandleL, NULL);
          // centering a table
          Word_GetProperty (currSelHandleL, NULL, Word_SelectionTables, CAVT_OBJHANDLE, &tablesHandleL);
          //Word_SetProperty (tablesHandleL, NULL, Word_RowsWrapAroundText, CAVT_BOOL, FALSE);
          Word_SetProperty (tablesHandleL, NULL, Word_RowsAlignment, CAVT_LONG,
                    WordConst_wdAlignRowCenter);
    What am I doing wrong? How should be correctly it?
          I greet    Theodore
    Solved!
    Go to Solution.

    Hi Tamás Simon,
       My version of CVI and OS what I'm using it's: CVI 8.5 and Windows XP Professional SP3, but ones are alright. I have found solution to my problem. The issue was lying in incorrect use of objects in the called function Word_SetProperty ( ). I used the syntax:
          Word_SetProperty (tablesHandleL, NULL, Word_RowsAlignment, CAVT_LONG, WordConst_wdAlignRowCenter);
    and it should be as:
          Word_SetProperty (WordObjRows, NULL, Word_RowsAlignment, CAVT_LONG, WordConst_wdAlignRowCenter);
    The entrie code source to create a table with centering should look like this:
    int CVICALLBACK Add_Table (int panel, int control, int event,
                  void *callbackData, int eventData1, int eventData2)
         WordObj_Columns                   WordObjColumns;
         WordObj_Rows                        WordObjRows;
         WordObj_ParagraphFmt          WordObjParagraphsFmt;
         WordObj_Paragraphs              WordObjParagraphs;
         WordObj_Range                      rangeHandleL;
         WordObj_Table                        tableHandleL;
         WordObj_Tables                      tablesHandleL;
         WordObj_Selection                  currSelHandleL;
         WordObj_Application               appHandleL;
         switch (event)
          case EVENT_COMMIT:
              Word_GetProperty (docHandle, NULL, Word_DocumentApplication,
                                  CAVT_OBJHANDLE, &appHandleL);
              Word_GetProperty (appHandleL, NULL, Word_ApplicationSelection,
                                  CAVT_OBJHANDLE, &currSelHandleL);
              // adding paragraph with centering property
              Word_GetProperty (docHandle, NULL, Word_DocumentParagraphs,
                                  CAVT_OBJHANDLE, &WordObjParagraphs);
              Word_GetProperty (WordObjParagraphs, NULL, Word_SelectionParagraphFormat,
                                  CAVT_OBJHANDLE, &WordObjParagraphsFmt);
              Word_SetProperty (WordObjParagraphsFmt, NULL, Word_SelectionParagraphFormat,
                                  CAVT_OBJHANDLE, &WordObjParagraphsFmt);
              Word_SetProperty (WordObjParagraphsFmt, NULL, Word_ParagraphFmtAlignment,
                                  CAVT_LONG, WordConst_wdAlignParagraphCenter);
              Word_SelectionTypeParagraph (currSelHandleL, NULL);
              Word_GetProperty (currSelHandleL, NULL, Word_SelectionRange,
                                  CAVT_OBJHANDLE, &rangeHandleL);
               // creating a table
              Word_GetProperty (docHandle, NULL, Word_DocumentTables, CAVT_OBJHANDLE, &tablesHandleL);
              Word_TablesAdd (tablesHandleL, NULL, rangeHandleL, 5, 6,
                                 CA_VariantInt(1), CA_VariantInt(0), &tableHandleL);
              // setting rows and columns size the table
              Word_GetProperty (tableHandleL, NULL, Word_TableRows, CAVT_OBJHANDLE,
                                 &WordObjRows);
              Word_GetProperty (tableHandleL, NULL, Word_TableColumns,
                                CAVT_OBJHANDLE, &WordObjColumns);
              Word_SetProperty (WordObjRows, NULL, Word_RowsHeight, CAVT_FLOAT, 20.5);
              Word_SetProperty (WordObjColumns, NULL, Word_ColumnsPreferredWidth,
                                CAVT_FLOAT, 40.5);
              // centering the table
              Word_SetProperty (WordObjRows, NULL, Word_RowsAlignment, CAVT_LONG,
                                WordConst_wdAlignRowCenter);
            break;
     return 0;
    I added also some table properties, such as size rows and columns, paragraph with centering. I hope that it will be useful to someone.
             I would like to thank you for your help and wish you all the best
             Theodore85

  • Centering a table

    Hi,
    I have an table in my document. A 5x5 table of some text and numbers. I want to center it (center horizontally) in my text, (with no text to the left and right of the table).
    Someone might suggest the Wrap, but that way I have to drag the table, and guess where the true center is. Plus, doing wrap really messes up the line spacing, because to get the spacing correct between the line appearing after the table I have to change the value of "space before paragraph" to some ridiculously large number. Also, when I change the table a little bit, the whole thing gets mixed up, and I have to drag the table again to the right place. So this is not a good solution!
    Isn't there just a way of selecting the table, and simply Centering it with respect to the page?
    D

    Whether you buy iWork now or wait until January depends how patient you are, and how much you want a spreadsheet with it (which is hoped for: but rumours are rumours!). There will be no "upgrade path." Apple provide minor revisions free via Software Update, but anything involving new features you have to buy again. Consider it subscription ware. It's still a bargain at the price: but maybe not, if you're only going to get 6mths for a year's worth. Upgrading every 2nd year is an often recommended option.
    On the other side of all that, Keynote is a knockout app. And Pages, once you get the hang of its "inspectors" & etc. is far more competent at handling fine typographic design than Appleworks or Word were ever likely to be. Just now its more mundane Word Processing facilities are short of some "bells and whisltles" but once Version Tracking is included - as, again, is rumoured for iWork 07, nobody's going to care. Once you discover what it can do, and that it has layering and transparency capabilities that make it an entry-level Page design program - without the horrendous learning curve of Quark etc., it's frankly an absolute gem. Its measure lies rather in the quality of what you can produce with it, than in any wish-list of features.
    Even with a spreadsheet, it will still be lacking a data-base and drawing app., but given its capacity to handle imported graphics, it still bears promise of becoming a major productivity tool - if more oriented to the individual than corporate use. Personally I think this a good thing, and a fully fledged office suite a white elephant to me. Steve Jobs has called it the replacement for Appleworks - which as yet it is not. But wait and see.
    For writing and publishing with graphics capabilities, and sufficient token of those other bits and pieces the private user may occasionally want, it's already the only show in town. How soon you become acquainted with it, and share its growing pains is up to you. But give it a little time and patience, whichever way you go. What seems counter-intuitive or fiddly at first begins to flow quite soon - and even quicker once you forget all about whatever else you've used and take it on its own terms.
    But get some decent fonts and source or make fine graphics; and then get to know how Pages can fine-tune them, and I can promise that within a month or so you'll be turning out material that leaves Appleworks or Word in the shade. I used to bet that I can spot a Word document from the other end of a bus. Doesn't matter what you do, they all come out the same.
    iWork on the other hand is a creative tool. It's as good as you can be with it.
    Cheers.

  • How to select data from a table by passing document number from another tab

    How to select data from a table by passing document number from another table.
    for eg:-
    I want to display name, adres, region from ADRC table
    by using field delivery document number
    Kind Regards,
    Shanbagavalli.S

    Hi Shanbagavalli,
    There are multiple solutions to this questions a few i will try to answer and then you can take the best required for your requirements.
    **Consider that you have a Internal table having document number from other table..
    SELECT NAME ADRES REGION FROM ADRC
           INTO IT_ADRC
           FOR ALL ENTRIES IN IT_DOC
           WHERE DOCUMENT_NO = IT_DOC-DOCUMENT_NO.
    **Consider that you have 1 document number then
    SELECT NAME ADRES REGION FROM ADRC
         INTO IT_ADRC
         WHERE DOCUMENT_NO = W_DOCUMENT_NO.
    Hope this solves your problem.
    Regards,
    Kunjal

  • Create a new table style based on an existing table in a document

    Hi,
    In a document I'm working on, there is a specific table. It is made in the past by a colleague, and it has a very suitable format.
    Therefore I would like to use the layout of this table on all future tables in my document (or even in others).
    Is there an option to select my table, and create a new table style with it, so that I can use it over and over again? That would be very helpful.
    I'm working in MS Word, MS Office Professional Plus 2010, on a Windows 7 64-bit OS.
    Best regards, Sietske
    Ps.: I know
    a question like this was already asked, but the answer was quite dissatisfying (because it was not answering the question)
    Pps: Note that I'm now creating a new table style from scratch, so an answer to the above question is not that urgent, but it would still be nice to know for future use.

    you can  use format painter
    i hope that you already know about it.
    Nope, not the right answer. With Format Painter, you can copy the format of the table, but you can't create a new Table Style with it. I am looking for a solution as well.

  • Maintain output condition table for billing documents

    Hi
    I need to create new output condition table for billing document with the key combination of "Billing type and Export Indicator". In Field catalog: Messages for billing documents I am able to find field Export Indicator but the same field i am not able to find creation of new condition table (V/63).. Kindly let me know is there any settings required to show the same in V/63.
    Thnaks
    Srinivas

    Hi Ram
    The filed already is there in in structure" KOMKBV3" ....
    Thanks
    RAO

  • [CS3 JS]Get all the tables in the document

    Hello All,
    I want to return all of the tables in the document, including those in table cells. I am using this:
    var aTables = app.activeDocument.stories.everyItem().tables.everyItem().getElements();
    but it doesn't get tables inside of tables. Is there an easy way to do this without checking each table cell? Thanks in advance.
    Rick Quatro
    585-659-8267

    Hi Robin and Dave,
    Thanks for your replies. This seems to work fine regardless of the nexting level.
    Rick
    var oDocTables = app.activeDocument.stories.everyItem().tables.everyItem().getElements();
    if (oDocTables.length)
      oDocTables = GetAllTables(oDocTables);
    alert(oDocTables.length);
    function GetAllTables(oTables)
      for(var i=0; i < oTables.length; i++)
        var oCells = oTables[i].cells;
        for (var j=0; j < oCells.length; j++)
          var oCellTables = oCells[j].tables.everyItem().getElements();
          if (oCellTables.length)
            oTables = oTables.concat(oCellTables);
      return oTables;

  • Script to resize all tables in a document

    I'm using Framemaker 11, and have tons of tables that need to be resized so that they fit within the text frame. Does anyone know of a script or a fast way to resize all the tables in a document at once?

    TableCleaner does a bunch more than just resizing, and is one of the best values I've seen for a plugin.
    Looks like he's switching his content to a Wordpress site, so here's Rick's direct info:
    rick at frameexpert dot com
    [use link: http://www.frameexpert.com/old/]

  • Linking multiple tables in numbers, how can I sort one table and this follow through on subsequent tables in the document?

    I am a teacher setting up a tracking system using Numbers for the first time. I have set up a summary sheet with puil information, some of which is "looked up" from other tables within the document. It is working brilliantly until we regrouped the pupils.
    When i reorganise the students on the summary page I want the same order to follow on all subsequent tables.
    However the pupil lists on all subsequent pages stay in the original order!
    Hope this makes some kind of sense as I am about to throw macbook out of the window!
    DAve

    davidmilce wrote:
    I want all of the tick boxes in each row to move with the pupil name when they are reorganised (ie the unique data in each row stays with the pupi no matter where they go when sorted.
    Thanks again
    Dave
    Dave,
    I might use Match, Offset and Column in my expressions. There are many approaches to this
    Match will tell you which row your person's data is in, and OFFSET will then take you to the row indicated by Match and the column indicated by COLUMN().
    Let's say you want to access the data for Pupil A. Further assume that the string "Pupil A" is the content of Column A, essentially the title of the record.
    MATCH(A, AF1 :: Table 1 :: A) will return the number of the Row in the source table where Pupil A is found.
    INDEX(Main, MATCH($A, Main :: $A), COLUMN())  will get the content, in your case the checkbox status.
    You are done if you are happy with displaying "TRUE" or "FALSE"
    But if you want, you can substitute graphics, like this:
    =IF(INDEX(Main, MATCH($A, Main :: $A), COLUMN()), "☑", "☐")
    Regards,
    Jerry

  • Which table contains - FI Document Changes?

    Team,
    Which table contains - FI Document Changes?
    Please be specific; For example:
    CDHDR:
    OBJECTCLAS ?
    CDPOS:
    BJECTCLAS?
    ABNAME  
    ABKEY      
    HNGIND  
    Thanks

    Hello
    The OBJECTCLAS is BELEG.
    Use FM CHANGEDOCUMENT_READ_HEADERS
    with objectclass = 'BELEG'
         objectid  = (concatenate client + company code + doc no + fiscal year)
    Then loop at the header and use FM
      CHANGEDOCUMENT_READ_POSITIONS
    to get the CDPOS values
    Hope this helps
    Shounak
    Message was edited by: Shounak Mukherjee

  • What is the procedure to create entry in NAST table for particualr document

    Hello ABAP GURUS,
    I need to know how to create objectkeys in NAST table for particualar document number.
    My requirement is i need to check my smartform output for Goods Receipt.IN nast table,i dont have any entries for Goods Receipt.So i need to create entries in NAST table.Please help me to solve this problem.
    waiting for your replies
    Regards
    Maruthi

    Hi!
    Ususally it is not neccessary to create manual entries in NAST.
    You have to print the document from its transaction. Naturally there may be some other settings which are required after setting transaction NACE.
    If you understand the Letter of delivery on the Goods Receipt, which can be printed from VL02N, then you have to set some automation to your printing using transaction VV22.
    Regards
    Tamá

  • Table of Parked document

    Hi,
    Can you tell me ,when we park any document with any parked t.code , in which FI table it captures.Once posted then data captures in the table but before posting we want to know the table for parked document.
    Thanks,
    Dharmveer

    VBSEGA - Assets parked document details
    VBSEGD - Customers parked document details
    VBSEGK - Vendor parked document details
    VBSEGS - General Ledger  parked document details
    Regards,
    Ravi

  • Importing Tables from Word Documents

    I have a new job where the majority of my colleagues are PC users and we must work on common documents. I have no problem saving documents as a word file and opening word documents. But I have had some issues with Tables coming from a word document. I looked on the forum and learned about inline tables but I have been unable to take a table from a .doc file and change it to an inline table. Basically when the page ends, the table stops, even when there is more text. It is making it really frustrating for work as I have been copying and pasting the text from the table into a new document to edit it and then replacing the new text with the old. Can anyone help me figure out how to see the text in tables from word documents??
    Thanks,
    Amber

    It would be more efficient to use the true Office or one of the free clones: openOffice & neoOffice.
    Yvan KOENIG (VALLAURIS, France) Sunday, September 13, 2009 11:56:23

  • Table for Accounting Document of Invoice Document

    Dear All,
      We have accounting doc. table of material document as BKPF(HEADER) & BSEG(ITEM).
      In the same way, can any one share, whats the accounting doc table for Invoice/MIRO??
    Regards
    Mahesh
    Re

    Hi Dear
    actually what table you have mentioned in your thread that table is for Accounting document, it doesn't matter whether the accounting document is created during good receipt or Invoice receipt
    hence BKPF and BSEG is accounting table for invoice as well
    Thanks

  • Relation between BKPF and EKBE table for reversing document?

    Is there any relation between BKPF and EKBE table for reversing document when STBLG is blank in BKPF.
    AND
    How to differentiate Old Accounting document / Reverse document / New document when in BKPF-STBLG is blank for all three document and BKPF-XBLNR are same for all.

    Hi Varun,
    Table Document no (BKPF-BELNR) is link between Material document no (EKBE-BELNR). If you are looking for validating Material reversal document then please use following logic for your requirement.
    Material Document (MBLNR) & Material Document Year (MJAHR). Pass material document (MBLNR) to MSEG-SMBLN to read MSEG-MBLNR with MSEG-MJAHR to MSEG-SJAHR, if record found delete both the documents i.e. MSEG-SMBLN & MSEG-MBLNR (donu2019t consider these documents in the logic) and display Material Document No. (MSEG-MBLNR)
    Regards,
    Santosh

Maybe you are looking for