Mail merging Number table

I'm using Pages '09. I am trying to merge a Numbers table. When I choose the Numbers table I receive the following message.
Please select a Numbers document that has one or more named header columns and one or more rows of data.
The table has 38 records and 5 columns.
The number table was create by exporting a query out of FMPro to Excel opening in numbers and then saving as numbers.

What you describe doesn't prove that the table matches the Numbers requirements which are defined in tha User Guides and which where completed here several times.
The table must be the first one in its sheet (result of my practice of the tool).
The row 1 of the table MUST be a header row (a true one).
The cells of this header row must contain the name of the fields which must be grabbed during the merge process.
Go to my iDisk:
<http://idisk.me.com/koenigyvan-Public?view=web>
Download:
For_iWork:iWork '09:forNumbers09:forlabels.sparseimage.zip
You will be able to study a true set of files.
Yvan KOENIG (from FRANCE mercredi 8 juillet 2009 20:57:38)

Similar Messages

  • When I mail merge a message that incudes a table with an excel spreadsheet, the table disappears and the data appears in list form

    I've tried both creating the table using Thunderbird, as well as creating the table in Word first and the problem is the same. I've reinstalled and updated both the mail merge add on and Thunderbird.

    If you do not need all the excel specific items you can just write it to a spreadsheet using the write to spreadsheet file vi's.
    If you want to go the excel route you will have to use active x. you can see a lot of examples on the excel board under the breakpoint forum. please post a sample of how you want your data to look and I can maybe help explain what options you have. and also oyu do not necesarily need the report generation toolkit.
    Joe.
    "NOTHING IS EVER EASY"

  • Email mail merger - apostrophe changes to the number 1

    Good morning
    I have created an email mail merge in Word to be sent via Outlook. Some apostrophes (not all - only those 2/3 down the document) appear in the sent email as the number 1.  I have tried saving the Word document as an HTM and then sending but the same thing occurs.  The email is being sent as an HTML (text does not present well).
    Any solutions?
    Thanks
    Judi

    Have you tried restarting or resetting your iDevice?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after It shuts down, press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds).

  • IWork 09 Pages Mail Merge Reference 2 Tables

    I am using Pages 09 and creating a mail merge file from tables in Numbers I want to merge data from several different tables in the numbers into one document in Pages has anyone been able to do this?
    Brenda

    Hi Brenda,
    Chapter 11 of the Pages '09 User Guide, , starts on p. 243 of the guide. This excerpt from p. 245 describes adding merge fields referencing a Numbers table:
    To insert merge data for one or more contacts using a Numbers document: 
    1 Choose Edit > Mail Merge, and then click Numbers Document.
    2 Choose a Numbers document in the window that appears, and click Open.
    3 For each merge field, click the Target Name pop-up menu in the Merge window, and
    select a target.
    4 Print the document.
    5 To reuse the document with other Numbers data, select another Numbers document,
    and repeat steps 1 through 4.
    (emphasis added)
    My reading of this, with particular attention to the bolded parts, is that the merge data can come only from a single Table on a single Numbers document. Wording of references to Numbers through the rest of the chapter is consistent with that interpretation.
    The Pages '09 User Guide may be downloaded through the Help menu in Pages.
    Regards,
    Barry

  • Mail merge with MS Word

    I currently have an on-premise SQL server which I intend to migrate to Azure SQL database. We have a number of Word (2013) documents which pull data from the on-premise server and use for mail merge runs. However, I cannot seem to create a DataSource connection
    to perform the same operation from Azure SQL database. I have tried SQL Native Client 11.0 and various others - whilst the test connection performs correctly, no data is pulled from the table or view.

    Hi Graham,
    Did you receive any error message ? some thing like  40552 : The session has been
    terminated because of excessive transaction log space usage. etc., Please share if any to isolate the issue.
    Regards,
    Shirisha Paderu
    Disclaimer : This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or
    information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and
    Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

  • What WordStar 3.01 can do in Mail Merge that Pages '09 can't.

    I have a Bento database. I want to print contra dances from it on 3x5 index cards. I can save the database as a Numbers worksheet with all the data I want on it. I SHOULD be able to use the fields from that Numbers file to create a Pages document that merges, using that data, to print on the index cards.
    Meanwhile, Apple apparently thinks that addresses are the only kind of data anybody could ever want to merge in a document. This is a stupid limit. Your programmers are unnecessarily standing between me and a reasonable expectation of what your software ought to do.
    I could do this in WordStar in the mid 1980s on a Commodore 128 running CP/M. I could do it in WordPerfect under DOS. I can do it in Word in Windows, and I HATE Windows.
    Why can't I do it in Pages on my Mac?

    Sarris2 wrote:
    I hacked my way to the answer before reading your good advice. I see three problems here:
    1. As you say, the tutorial materials are vague and fail to explain how the feature works or how to get to the feature.
    Agreed
    2. The "Edit:Merge" menu option is greyed out until you add a Merge Field, so you can't connect to a Numbers data source until AFTER you have chosen your first Merge field, which presumes you are using the address book, so the first field has to be an Address Book field even if the eventual document doesn't have any Address Book fields in it.
    No.
    Have you tried my instructions?
    All you need is a Numbers spreadsheet with the appropriate headers in it. Link to that and then you can merge to those revealed headers.
    3. There is apparently a "magic number" bug in Mail Merge in Pages. Since I couldn't connect to a data source until after inserting the first Address Book field and I was working with bad advice from the tutorial, I inserted 14 fields, creating my own cross-reference table in a separate document to tell me which Address Book Field to map each Numbers file Merge Field to.
    Again, why are you insisting on barking up the wrong tree, and arguing with the koalas that they aren't pandas?
    When I actually got around to mapping the fields, I hit the magic number 13 and instead of seeing Numbers fields to map to, I saw Address Book fields again. I tried deleting the field and creating a new one and got a repeat of the Edit:Merge window now pointing to the Address Book. When I once again pointed it to the Numbers file, all the fields I had mapped changed their names to the actual Numbers fields, and when I went to create the new field, the list of choices were from the Numbers file instead of the Address Book.
    Haven't a clue what this is supposed to mean, and why you are still futzing about in Address Book.
    So, I got what I wanted, though I wasted a lot of time unnecessarily using Address Book fields and remapping them to the Numbers fields, and I'm still hampered by the lack of Conditional Merge Fields. From Bento, I have a field named "Becket" that has either a "0" or a "1". I'd like to type the word "Becket" on the card if it is "1" and not type anything if it is "0". I could do that in Wordstar, etc.
    Why?
    It seems that in Pages, I have to tweak the data itself, wrestling with Numbers to replace all "1"s in that column with "Becket" and replace all the "0"s with empty cells. It's a lot more of a tedious process in Numbers than it would be if I just had a conditional Merge field.
    Can't follow what this has to do with a simple merge which is where you started.
    Peter

  • Mail Merge & cell references

    Hi @all,
    I have several tables in numbers (09). On is for users input, the other for calculating values I need in a mail merge.
    In the first table, the user types a date in this format "DD.MM.YYYY hh:mm" (german datetime). In the second table, there is only a mapping A{i}={first table} :: A{i}.
    Now using the second table for mail merge in Pages, the results are strange. The merge-mapping is: "date" = {file}{table}{column name} (made with the inspector). But Pages takes the values for date in this order: first replacement is taken from column 1 line 1, second replacement is taken from column 2 line 2, third is taken from col 3 line 3 and so on... In effect, pages traverses the numbers table diagonally rather than vertically.
    If I replace (in Numbers) the reference by direct values (not A{i}={first table} :: A{i} but A1 = "01.01.2009 09:00", A2 = "02.01.2009 08:30", and so on) everything works fine!
    Is this a known bug in Numbers / Pages?

    If you are interested to see merge at work, I uploaded a disk image with two examples into my idisk:
    <http://idisk.me.com/koenigyvan-Public?view=web>
    Download:
    For_iWork:iWork '09:forNumbers09:forMerge.sparseimage.zip
    You will see at work what is described in this thread.
    Here is the bug report:
    Your tracking number for this issue is Bug ID# 7254413. You may check status on this report via the 'My Originated Problems' tab.
    +25-Sep-2009 09:21 PM Yvan KOENIG:+
    Hello
    +Attached is a demo of an oddity in the merge function in iWork '09.+
    +Tested with the revision 2 under 10.4.11 but behave the same in other operating systems.+
    +the pair 4merge behaves flawlessly. In the spreadsheet, the dateTime values are typed in the cells.+
    +the two pairs 4merge2 and 4merge2- fail.+
    +This is due to the fact that the field date contain dateTime objects resulting of formulas.+
    +the pair 4merge3 use also calculated dates but this time, as I concatenate them to a nil string, the cells contain strings, not dateTime objects and this time the merge behaves flawlessly.+
    +It seems that what we get with merge2 and merge2- resemble to what we call a bug. Isn't it ?+
    +'4merge.dmg.zip' was successfully uploaded+
    Yvan KOENIG (VALLAURIS, France) vendredi 25 septembre 2009 21:11:33

  • Mail Merge error - ?

    I am getting an error when doing a mail merge.
    I have a FM database that has been exported to excel (Why ... FM is owned by Apple for goodness sake).  I have then opened the xls file in Numbers and I am getting the error
    "Please select a Numbers document that has one or more named columns and one or more rows of data."
    Please help.
    Thanks,

    You need to designate a row as a header row in the Numbers table. Imported spreadsheets don't mark the first row as a header row. If the top row does contain the labels, hover the cursor over the row number, click the down-facing arrow that appears & choose conver to header row.
    If you don't have a row with labels to convert, add a header row using the Table menu or click the icon (middle icon) in the format bar then type in the labels.

  • 6i Forms Word 2003 Mail Merge

    We have mail merge working from 6i forms with Word 97. We are going to Word 2003, but I am having trouble getting the mail merge to work. The example on Metalink, note 297410.1, seems to be directed at data files in row format. Our data file is in table format. Below is part of our current working code. When it is run in 2003, the merge is not performed. I do not receive any errors. Any suggestions or examples would be greatly appreciated. Thank you.
    PROCEDURE create_AL01 IS
    word_handle ole2.obj_type;
    docs ole2.obj_type;
    doc ole2.obj_type;
    tables ole2.obj_type;
    range ole2.obj_type;
    sel ole2.obj_type;
    NewMailMerge ole2.obj_type;
    arglist ole2.list_type;
    i number;
    <cursor definition>
    BEGIN
    <count of letters for loop>
    word_handle := ole2.create_obj('word.application');
    ole2.set_property(word_handle,'Visible',1);
    docs := ole2.Get_Obj_Property(word_handle,'Documents');
    ole2.invoke(docs,'Add');
    sel := ole2.get_obj_property(word_handle,'Selection');
    range := ole2.get_obj_property(sel,'Range');
    doc := ole2.get_obj_property(word_handle,'ActiveDocument');
    tables := ole2.get_obj_property(doc,'Tables');
    arglist :=ole2.create_arglist;
    ole2.add_arg_obj(arglist,range);
    ole2.add_arg(arglist,i);
    ole2.add_arg(arglist,7);
    ole2.invoke(tables,'Add',arglist);
    ole2.destroy_arglist(arglist);
    FOR AL01_rec in AL01_cur LOOP
    arglist :=ole2.create_arglist;
    ole2.add_arg(arglist, AL01_rec.sys_date);
    ole2.invoke(sel, 'TypeText', arglist);
    ole2.destroy_arglist(arglist);
    ole2.invoke(sel,'MoveRight');
    arglist :=ole2.create_arglist;
    ole2.add_arg(arglist, AL01_rec.name);
    ole2.invoke(sel, 'TypeText', arglist);
    ole2.destroy_arglist(arglist);
    ole2.invoke(sel,'MoveRight');
    arglist :=ole2.create_arglist;
    ole2.add_arg(arglist, AL01_rec.mail_address);
    ole2.invoke(sel, 'TypeText', arglist);
    ole2.destroy_arglist(arglist);
    ole2.invoke(sel,'MoveRight');
    arglist :=ole2.create_arglist;
    ole2.add_arg(arglist, AL01_rec.mail_cityst);
    ole2.invoke(sel, 'TypeText', arglist);
    ole2.destroy_arglist(arglist);
    ole2.invoke(sel,'MoveRight');
    arglist :=ole2.create_arglist;
    ole2.add_arg(arglist, AL01_rec.salute);
    ole2.invoke(sel, 'TypeText', arglist);
    ole2.destroy_arglist(arglist);
    ole2.invoke(sel,'MoveRight');
    arglist :=ole2.create_arglist;
    ole2.add_arg(arglist, AL01_rec.test_date);
    ole2.invoke(sel, 'TypeText', arglist);
    ole2.destroy_arglist(arglist);
    ole2.invoke(sel,'MoveRight');
    ole2.invoke(sel,'MoveRight');
    ole2.invoke(sel,'MoveRight');
    end loop;
    arglist := ole2.create_arglist;
    ole2.add_arg(arglist, 'C:\PROGRAMS\AL01SF.DOC');
    ole2.invoke(doc, 'SaveAs', arglist);
    ole2.destroy_arglist(arglist);
    arglist := ole2.create_arglist;
    ole2.add_arg(arglist, 'C:\PROGRAMS\AL01PRI.DOC');
    ole2.invoke(docs, 'Open', arglist);
    ole2.destroy_arglist(arglist);
    doc := ole2.get_obj_property(word_handle,'ActiveDocument');
    arglist:=OLE2.CREATE_ARGLIST;
    OLE2.INVOKE(doc, 'Activate', arglist);
    OLE2.DESTROY_ARGLIST(arglist);
    NewMailMerge :=OLE2.GET_OBJ_PROPERTY(doc, 'MailMerge');
    arglist:=OLE2.CREATE_ARGLIST;
    OLE2.INVOKE(NewMailMerge, 'Execute',arglist);
    OLE2.DESTROY_ARGLIST(arglist);
    doc := ole2.get_obj_property(word_handle,'ActiveDocument');
    arglist := ole2.create_arglist;
    ole2.add_arg(arglist, 'C:\PROGRAMS\AL01MF.DOC');
    ole2.invoke(doc, 'SaveAs', arglist);
    ole2.destroy_arglist(arglist);
    arglist := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(arglist,0);
    OLE2.Invoke(doc, 'PrintOut', arglist);
    OLE2.Destroy_Arglist(arglist);
    OLE2.INVOKE(docs,'Close');
    OLE2.INVOKE(word_handle,'QUIT');
    END;

    We have mail merge working from 6i forms with Word 97. We are going to Word 2003, but I am having trouble getting the mail merge to work. The example on Metalink, note 297410.1, seems to be directed at data files in row format. Our data file is in table format. Below is part of our current working code. When it is run in 2003, the merge is not performed. I do not receive any errors. Any suggestions or examples would be greatly appreciated. Thank you.
    PROCEDURE create_AL01 IS
    word_handle ole2.obj_type;
    docs ole2.obj_type;
    doc ole2.obj_type;
    tables ole2.obj_type;
    range ole2.obj_type;
    sel ole2.obj_type;
    NewMailMerge ole2.obj_type;
    arglist ole2.list_type;
    i number;
    <cursor definition>
    BEGIN
    <count of letters for loop>
    word_handle := ole2.create_obj('word.application');
    ole2.set_property(word_handle,'Visible',1);
    docs := ole2.Get_Obj_Property(word_handle,'Documents');
    ole2.invoke(docs,'Add');
    sel := ole2.get_obj_property(word_handle,'Selection');
    range := ole2.get_obj_property(sel,'Range');
    doc := ole2.get_obj_property(word_handle,'ActiveDocument');
    tables := ole2.get_obj_property(doc,'Tables');
    arglist :=ole2.create_arglist;
    ole2.add_arg_obj(arglist,range);
    ole2.add_arg(arglist,i);
    ole2.add_arg(arglist,7);
    ole2.invoke(tables,'Add',arglist);
    ole2.destroy_arglist(arglist);
    FOR AL01_rec in AL01_cur LOOP
    arglist :=ole2.create_arglist;
    ole2.add_arg(arglist, AL01_rec.sys_date);
    ole2.invoke(sel, 'TypeText', arglist);
    ole2.destroy_arglist(arglist);
    ole2.invoke(sel,'MoveRight');
    arglist :=ole2.create_arglist;
    ole2.add_arg(arglist, AL01_rec.name);
    ole2.invoke(sel, 'TypeText', arglist);
    ole2.destroy_arglist(arglist);
    ole2.invoke(sel,'MoveRight');
    arglist :=ole2.create_arglist;
    ole2.add_arg(arglist, AL01_rec.mail_address);
    ole2.invoke(sel, 'TypeText', arglist);
    ole2.destroy_arglist(arglist);
    ole2.invoke(sel,'MoveRight');
    arglist :=ole2.create_arglist;
    ole2.add_arg(arglist, AL01_rec.mail_cityst);
    ole2.invoke(sel, 'TypeText', arglist);
    ole2.destroy_arglist(arglist);
    ole2.invoke(sel,'MoveRight');
    arglist :=ole2.create_arglist;
    ole2.add_arg(arglist, AL01_rec.salute);
    ole2.invoke(sel, 'TypeText', arglist);
    ole2.destroy_arglist(arglist);
    ole2.invoke(sel,'MoveRight');
    arglist :=ole2.create_arglist;
    ole2.add_arg(arglist, AL01_rec.test_date);
    ole2.invoke(sel, 'TypeText', arglist);
    ole2.destroy_arglist(arglist);
    ole2.invoke(sel,'MoveRight');
    ole2.invoke(sel,'MoveRight');
    ole2.invoke(sel,'MoveRight');
    end loop;
    arglist := ole2.create_arglist;
    ole2.add_arg(arglist, 'C:\PROGRAMS\AL01SF.DOC');
    ole2.invoke(doc, 'SaveAs', arglist);
    ole2.destroy_arglist(arglist);
    arglist := ole2.create_arglist;
    ole2.add_arg(arglist, 'C:\PROGRAMS\AL01PRI.DOC');
    ole2.invoke(docs, 'Open', arglist);
    ole2.destroy_arglist(arglist);
    doc := ole2.get_obj_property(word_handle,'ActiveDocument');
    arglist:=OLE2.CREATE_ARGLIST;
    OLE2.INVOKE(doc, 'Activate', arglist);
    OLE2.DESTROY_ARGLIST(arglist);
    NewMailMerge :=OLE2.GET_OBJ_PROPERTY(doc, 'MailMerge');
    arglist:=OLE2.CREATE_ARGLIST;
    OLE2.INVOKE(NewMailMerge, 'Execute',arglist);
    OLE2.DESTROY_ARGLIST(arglist);
    doc := ole2.get_obj_property(word_handle,'ActiveDocument');
    arglist := ole2.create_arglist;
    ole2.add_arg(arglist, 'C:\PROGRAMS\AL01MF.DOC');
    ole2.invoke(doc, 'SaveAs', arglist);
    ole2.destroy_arglist(arglist);
    arglist := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(arglist,0);
    OLE2.Invoke(doc, 'PrintOut', arglist);
    OLE2.Destroy_Arglist(arglist);
    OLE2.INVOKE(docs,'Close');
    OLE2.INVOKE(word_handle,'QUIT');
    END;

  • What's simpler than mail merge?

    I have a Pages '09 document which will be used again and again by multiple people. Rather than make them perform a find and replace for each string like, "<%FirstName%>, <%LastName%>, <%Email%>" I wish I could attach a form to the file so that when someone openned it they would have to populate a few text fields one time and upon submition the find and replace would happen for all the various placeholder texts.
    The mail merge feature would be great if I needed a form letter but I don't. The benefit of mail merge would be creating several copies of a pages document populated by the data from rows a numbers file. I don't want to have to teach people how to change the data in a numbers file and make sure that they have it in the proper location on their machine.
    Does anyone know of a simple way to do this? I've looked at several applescript options but the find and replace scripts seem to only apply to body text. My document has body text, text boxes, tables and other types of text that I need replaced.
    Any answers would be greatly appreciated. Even if they are complicated. I'm comfortable trying to figure out Applescript or Automator if those are the only option but I definitely need a push in the right direction.
    Thanks.
    Pete

    Here is the edited script.
    --[SCRIPT open_a_Pages_custom_template_and_fill_fields]
    Enregistrer le script en tant que Script ou Application : open_a_Pages_custom_template_and_fill_fields.xxx
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:
    Aller au menu Scripts, choisir “open_a_Pages_custom_template_and_fill_fields”
    --=====
    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 or an Application : open_a_Pages_custom_template_and_fill_fields.xxx
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:
    Go to the Scripts Menu, choose “open_a_Pages_custom_template_and_fill_fields”
    --=====
    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)
    2011/04/29 -- modified at 23:00:06 according to OP's request
    --=====
    true = open a predefined custom template
    false = open the custom template selected thru Choose From List
    property use_predefined_template : true
    Edit this property to fit your needs. You may change the strings or their number.
    The unique requirement is to keep the first two and the last two characters.
    property field_names : {"<%Error Title%>", "<%Error Type%>", "<%Unit ID%>"} --
    --=====
    on run
              my activateGUIscripting()
      run script do_your_duty
      --my do_your_duty()
    end run
    --=====
    script do_your_duty
      --on do_your_duty()
              local templates_loc, myTemplates_loc, chemin_des_modeles, le_modele, mon_modele
              local nb_chiffres, entire_contents, indx, chemin_de_mes_modeles, noms_de_mes_modeles, le_conteneur, i, un_element, le_titre, mon_choix
              set field_values to {}
              repeat with i from 1 to count of field_names
                        set field_name to item i of field_names
                        set le_prompt to "Enter the string to fill the field " & field_name
                        set maybe to text returned of (display dialog le_prompt default answer (text 3 thru -3 of field_name))
                        copy maybe to end of field_values
              end repeat
    Grab the localized names of the templates folders *)
              tell application "Pages"
                        my close_palettes()
                        set templates_loc to localized string "Templates"
                        set myTemplates_loc to localized string "My Templates"
              end tell -- to application a
    Define the path to the folder storing custom templates *)
              set chemin_des_modeles to "" & (path to library folder from user domain) & "Application Support:iWork:Pages:" & templates_loc & ":" & myTemplates_loc & ":"
              if use_predefined_template then
    Here, use a predefined custom template
                        set le_modele to "merge_in_it.template" --<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
                        set mon_modele to chemin_des_modeles & le_modele
              else
    Here, use a Choose from list dialog to define the template to use
                        set nb_chiffres to 3 (* 
    2 = allow 99 templates
    3 = allow 999 templates *)
    Grab the list of every items stored in the folder *)
                        tell application "Finder"
                                  set entire_contents to entire contents of folder chemin_des_modeles
                        end tell
    Build two lists. One contain the path to every custom templates.
    The other contain the names of these templates and the names of subfolders *)
                        set indx to 1
                        set chemin_de_mes_modeles to {}
                        set noms_de_mes_modeles to {}
                        set le_conteneur to ""
                        tell application "System Events"
                                  repeat with i from 1 to count of entire_contents
                                            set un_element to item i of entire_contents as text
                                            try
                                                      if type identifier of disk item un_element is in {"com.apple.iwork.Pages.template", "com.apple.iwork.Pages.sfftemplate"} then
                                                                if name of container of disk item un_element is not le_conteneur then
                                                                          set le_conteneur to name of container of disk item un_element
                                                                          copy (text 1 thru nb_chiffres of "---") & space & le_conteneur to end of noms_de_mes_modeles
                                                                end if
                                                                copy un_element to end of chemin_de_mes_modeles
                                                                copy text -nb_chiffres thru -1 of ("00" & indx) & space & name of disk item un_element to end of noms_de_mes_modeles
                                                                set indx to indx + 1
                                                      end if
                                            end try
                                  end repeat
                        end tell
                        if my parleAnglais() then
                                  set le_titre to "Pages’s custom templates"
                        else
                                  set le_titre to "Modèles personnalisés de Pages"
                        end if
    Choose the template to use.
    If you select a subfolder name, the script beep and ask one more time *)
                        repeat
                                  set mon_choix to choose from list noms_de_mes_modeles with title le_titre
                                  if mon_choix is false then error number -128
                                  try
                                            set mon_choix to text 1 thru nb_chiffres of (item 1 of mon_choix) as integer
                                            exit repeat
                                  on error
                                            beep 1
                                  end try
                        end repeat
                        set mon_modele to (item mon_choix of chemin_de_mes_modeles)
              end if
    Create a new document from the selected template *)
              tell application "Pages"
      open file mon_modele
                        tell document 1
                        end tell
                        repeat with i from 1 to count of field_names
                                  my Rechercher_Remplacer(item i of field_names, item i of field_values)
                        end repeat
              end tell -- Pages
      --end do_your_duty
    end script
    --=====
    on parleAnglais()
              local z
              try
                        tell application "Pages" to set z to localized string "Cancel"
              on error
                        set z to "Cancel"
              end try
              return (z is not "Annuler")
    end parleAnglais
    --=====
    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
    --=====
    on Rechercher_Remplacer(avant, |après|)
              local nom_du_dialog
              tell application "Pages" to activate
              tell application "System Events" to tell application process "Pages"
      keystroke "f" using {command down}
                        set nom_du_dialog to title of window 1
                        tell window nom_du_dialog to tell (first UI element whose role is "AXTabGroup")
                                  set value of first text area of first scroll area to avant
                                  set value of first text area of last scroll area to |après|
                                  if (count of checkbox) = 0 then
    Simple dialog *)
                                            set {X_bouton, Y_bouton} to position of last button
                                  else
    Advanced dialog *)
                                            set {X_bouton, Y_bouton} to position of button -3
                                  end if
                        end tell -- window nom_du_dialog…
                        click at {X_bouton + 5, Y_bouton + 5}
      keystroke "w" using {command down} -- Close the dialog
              end tell -- System Events…
              return
    end Rechercher_Remplacer
    --=====
    on close_palettes()
              local w, buttonX, buttonY, buttonW, buttonH
              tell application "Pages" to activate
              tell application "System Events" to tell application process "Pages"
                        set frontmost to true
                        repeat with w from (count of windows) to 1 by -1
                                  tell window w
                                            if (subrole is not "AXStandardWindow") then
                                                      tell first button to set {{buttonX, buttonY}, {buttonW, buttonH}} to {position, size}
                                                      click button 1 at {buttonX + (buttonW div 2), buttonY + (buttonH div 2)}
                                            end if
                                  end tell
                        end repeat
              end tell
    end close_palettes
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) vendredi 29 avril 2011 23:01:47
    Please :
    Search for questions similar to your own before submitting them to the community

  • Mail Merge -  Generate Invoices

    For a client, I'm transfering a WINDOWS-XP app. to a MAC PRO OS X (10.x). The
    application uses MS-WORD mailmerge with a MYSQL table as datasource. I link to the MYSQl table using ODBC. I would like to use the PAGES mail-merge and a NUMBERS spreadsheet as datasource, since, at least to my knowledge, PAGES mail-merge can not connect with a MYSQL db. The number of invoices generated can range from 1 to many hundreds. Can PAGES somehow be linked directly to a MYSQL table - as datasource ?
    thanks
    mansail

    The merge feature accepts only two sources of datas :
    (1) AddressBook
    (2) Numbers
    To fit your needs you must grab the MYSQL table in a Numbers one.
    Yvan KOENIG (VALLAURIS, France) mercredi 30 décembre 2009 22:12:59

  • Mail Merge From Within Professional 8

    Hi,
      Is there any function in Professional 8 similar to Word's Mail Merge?  I work for a company that has a need to "stamp" unique copy numbers on certain documents.  Here's what we presently do:
    We have a Word file of a testing procedure (we have a number of different testing procedures), and we receive a request for x number of controlled copies so that the analysts in the labs can conduct testing. An example of the number for the first controlled copy for this year would be: TD125-09-0001 (TD=Testing Document, 125=the main document number (which never changes, we have about 130 of these documents), 09=the year, and 0001=unique controlled copy number.  So we would issue TD125-09-0001, TD125-09-0002, TD125-09-0003, TD125-09-0004 and so on depending on a given request.
    Now the problem:  We are going to be switching to an Electronic Document Management System (EDMS) in which the documents, when printed from within the EDMS system will print with the EDMS Headers and Footers, and therefore cannot be brought outside of the system.
    My workaround was to print out the Testing Document from within EDMS, therefore it will print with all the appropriate Headers and Footers that the system generates upon printing...then scan the document as a PDF to use as a template, and apply the controlled copy numbers to the PDF version.  The only problem is that Acrobat doesn't seem to have functionality similar to Word's Mail Merge....the beauty of which is you choose which "recipients" you would like to merge, and regardless of the length of the document, it will imprint the same number on every page, print another copy with the next sequential number, etc.  I've looked around in the Professional 8 application and the closest I've come is forms, but then you have no functionality to generate sequential copy numbers except to do each one manually.
    Does anyone know of a plug-in or scripting that will mimic the functionality of Mail Merge but from within Adobe?
    Much Appreciation In Advance!,
    Paul

    Hi Rick
    To explain in brief, the main master table (OCRD) is replicated in fields in the audit trail table (ACRD). A few additional fields are available in the ACRD such as Instance which is a numeric incremental number for each update to a master. Instance 1 is of course the Add action when it is created. Therefore you can pull the information of the BP straight from the ACRD table without having to join and using the MAX number of Instance to get the latest "snapshot" of the master. Then there are fields such as update date and time which can be used to determine if any records have been updated in say the last 5 minutes for example.
    Another suggestion would be to add an activity to the BP rather for each letter that must be created, as this will give you history of each letter that was sent. What can work quite nicely will be to change the layout of the activity to be some letter format and then possibly save this to PDF or print to a Document generator printer as a TIFF file and then attach these back to the activity. From the activity you could also fax, email or print the letter.
    The above scenarios are just a suggestion, and I guess a way of trying to impress on you that SAP Business One is still a good choice, despite a few shortcomings. The important thing to remember with SAP Business One is it's flexibility in terms of User Defined Fields, Formatted Searches, SDK, UDO's, DI API, etc. which can in many cases overcome functional gaps. The best advise is to consider how big the gap is and what it will cost to fill it in terms of project time line and cost.
    Hope this helps
    Kind regards
    Peter Juby

  • Mail-merging from Oracle HRMS - Web ADI vs BI Publisher

    Hi
    I'm currently involved in a project to automate the production of candidate offer letters and contracts from HRMS for our shared HR service centre. The solution I've built to date uses custom database tables and PL/SQL to select the relevant text for the candidate based on a set of criteria, and views to supply the necessary data to Web ADI which then performs the actual merge into a template Microsoft Word document on demand from the end-user.
    The issue we're facing is that the Web ADI to Word interface can't handle more than 64 merge fields (Word basically throws up an error saying the maximum number of fields has been exceeded) so I'm looking at alternatives which will still provide the same (or nearly the same) functionality in terms of mail-merging. From the looks of things it seems like BI Publisher could be a potential alternative; I do however have a few questions which I hope someone can answer!
    1) How easily can BI Publisher be integrated with HRMS to provide such mail-merge functionality on demand? How would such integration be achieved e.g. concurrent program, button on the toolbar in HRMS?
    2) How many merge fields can BI Publisher handle? Our largest letter has nearly 100 unique fields, a number which could go up or down over time.
    3) I understand from looking at some of the tutorials and demos that an RTF template could be used as the basis for the mail merge - where would this be stored, on the database or the file system?
    4) Are there any case studies out there which cover such an implementation of BI Publisher? This would be really useful as it would help in formulating a recommendation to my project manager!
    Many thanks
    Geoff Butler

    metalray wrote:
    Well, glad you got soemthing. Now I try to be more "properly" for you :)
    Good that you are trying.
    The LDAP users do not show up in my Web Logic console. Is a functionality available to allocate the LDAP users to Oracle user groups in web logic or do I expect too much?LDAP = what in your case, do you mean Active Directory .? or any other LDAP directory .?
    You need to configure that in weblogic as one of the authentication providers if you have not done so yet, otherwise they cannot magically appear in WLS console.
    So I am assuming you are expecting too much if you have not configured and trying to look for LDAP users. Let us know if you have already configured one but having trouble managing these users.
    If the functionality (allocating LDAP users to groups) exists in the oracle web logic console,Even though you configure LDAP users in WLS , you cannot assign LDAP users to LDAP groups in WLS since you have to do that in your LDAP not in WLS.
    why does this functionality also in the Oracle BI Publisher Admin screen?Oracle BI Publisher security is managed by Fusion middleware security model not Weblogic , so to get the LDAP users to BIP you need to integrate OBIEE security to BI Publisher.
    Hope this helps. ! Mark if it does.
    Thanks,
    SVS

  • Mail Merge from Numbers with long text fields

    I'm having trouble doing a Mail Merge that's reading fields from a Numbers spreadsheet. Everything is working as expected except for my one field that contains several sentences of text for each record. Nothing from that field gets transferred into the merged document and there is no error message (the courtesy of an error message would be much appreciated if I'm hitting some limit of the feature!).
    If I make fairly short text fields, it will merge successfully, but it would be tedious to go through my large text field and break each one into multiple shorter ones, and I haven't been able to figure out the limit on text length if there is one, so there would be a lot of trial and error. It doesn't seem to be by number of words, so perhaps it is by number of characters?
    I have tried cutting and pasting into a new table in Numbers, pasting as values in case there was any weird formatting at issue.
    I can't find anything to help me either fix this or at least know what the limitations are on Mail Merge. The only discussion I found here suggested either splitting the text fields or creating a new document, and those haven't worked for me.
    Thanks for any leads people can give me on this!

    mezzaluna wrote:
    Luckily I'm only merging a few dozen records, so I can go through by hand and pick out the odd spaces. But I'm open to any ideas for saving me that work, too!
    Numbers can do a character count, but unfortunately can't do that 'live' as you are entering characters into the entry box; only when the string has actually been entered into a cell.
    You can, however, make an estimate of the number of characters by entering them into a text frame of fixed width using a mono-spaced font. In the examples below, the font is Andale Mono 10pt, and the text boxes are 4.50 inches wide.
    The top example shows the result when exactly 254 characters from the first paragraph of your previous post are entered in the box. For this example, leaving off the two words that wrapped onto line six and including only the first five lines of text would leave a 'headroom' of nine (or ten, depending on whether the space after "but" was included) characters.
    To use: Enter your text into the text box using Andale Mono 10 pt. Select and Cut the first five lines. Click on the table cell to receive this chunk. Go Edit > Paste and Match Style to use the font set in the table, or simply Paste to use Andale Mono in this cell.
    Repeat until all text has been transferred.
    More below.
    You can also get the actual character count using the LEN() function. In the table on the left, each of the cells B3, B4 and B5 contain the formula
    =LEN(A)-254
    A3, A4 and A5 contain part or all of the text shown in the two text boxes. I've set the alignment of these cells to 'Align right' to show the end of each string.
    The Conditional formatting rules below are applied to cells B4 and B5. They set the background colour of the cell to 'amber' when the cell in column A is within 10 characters of the maximum and to red when the maximum is exceeded. The numbers in the cells show how many more characters may be added (negative numbers) or how many excess characters (positive numbers) are in the cell to the left.
    These check cells may be placed in a separate table, and the formula revised to include the table name of the data table.
    Regards,
    Barry

  • Looping in Word mail merges/ checking for missing fields

    I am trying to convert a project that uses WordPerfect merges to use Word mail merges.  One issue that I am encountering is that I cannot find a way to use any looping structures in Word mail merges. Specifically, my data file is a csv text file. 
    I control the contents of the file but its current structure is that it will consist of a single record (not counting the header row).  The number of fields will vary but it will contain a field named Person1.  There may or may not be a field named
    Person2, Person3 etc.  There are several of these types of fields in the record so it is not an option to make a separate record for each person ie for the record I will have Plaintiff1, Plaintiff2... and Defendant1, Defendant2....
    I am having trouble with two things:
    1. how can I test for a blank or missing field ie I want to have a statement like {if {MERGEFIELD Defendant2}="" "Defendant is" "Defendants are"}.  That statement works but it throws error messages to the user that the
    field Defendant2 is missing and prompts them to substitute another field.  That sort of statement occurs multiple times during a merge so asking the users to ignore the errors is not an option.
    2. is there some sort of looping mechanism in Word mail merges.  I need to be able to do two things with a loop:
    a.  I need to be able to list each of the Persons, Defendants, Plaintiffs ie. While {MERGEFIELD Defendant{#}<> "" " {MergeFIELD Defendant{#}" (increment variable # by 1).
    b.  I some circumstances I need to create full documents based on a loop i.e.  While {MERGEFIELD Defendant{#}<> "" <<merge a defendant summons here>>(increment variable # by 1)

    For clarification: In a Word mailmerge, if any of the field headers are missing from the data source, you will get an error. Thus, you can't have a mailmerge main document that references «Plaintiff2» or «Defendant2» and not have the corresponding headers
    in the data source. The fields may be empty, but the headers must exist.
    Re 1:
    You can indeed use an IF test along the lines of:
    {IF«Defendant2»= "" "Defendant is" "Defendants are"}
    or:
    {IF{MERGEFIELD Defendant2}= "" "Defendant is" "Defendants are"}
    Re 2a:
    Creating a list is as simple as inserting the mergefields one after the other:
    «Defendant1»
    «Defendant2»
    «Defendant3»
    This will, of course, result in empty lines when fields have no data. To cater for this, Word provides the mergefield \b and \f switches.Given you can have one or more defendants, you could suppress the extra lines via, say, an \b switch:
    1. select the
    «Defendant2» field and press Shift-F9 so that you get {MERGEFIELD Defendant2};
    2. edit the field code so that you get {MERGEFIELD Defendant2 \b "¶
    3. delete the paragraph break or line break after the field, so you get:
    «Defendant1»
    {MERGEFIELD Defendant2 \b "¶
    "}«Defendant3»
    where ¶ is a real paragraph/line break
    4. Do the same for the «Defendant3» field and so on, till all are done.
    The following construction can be used to manage data where one or more related fields («Defendant2», «Defendant3», «Defendant4», «Defendant5», & «Defendant6») may or may not be populated, so you can get commas before all except the last in a multi-defendant
    sequence, which is preceded by 'and'.
    «Defendant1»{IF«Defendant3»= "" " and «Defendant2»" ", «Defendant2»{IF«Defendant4»= "" " and «Defendant3»" ", «Defendant3»{IF«Defendant5»= "" " and «Defendant4»" ", «Defendant4»{IF«Defendant6»= "" " and «Defendant5»" ", «Defendant5» and «Defendant6»"}"}"}"}
    Note: It is assumed that none of the fields after the first empty one will be populated.
    Re 2b:
    It's not clear what you're after here. However, in addition to using an IF field as per 1, above, they can also be used to conditionally output multiple pages, including text, tables and images, together with additional mergefeilds on those pages. For example:
    {IF«Defendant2»= "" "«Defendant2» is a nasty fellow ... plus the rest of defendant 2's content & mergefields"}
    Note: The field brace pairs (i.e. '{ }') for the above examples are created in the document itself, via Ctrl-F9 (Cmd-F9 on a Mac); you can't simply type them or copy & paste them from this message. Nor is it practicable to add them via
    any of the standard Word dialogues. Likewise, you can't type or copy & paste the chevrons (i.e. '« »') - they're part of the actual mergefields, which you can insert from the mailmerge toolbar. The spaces represented in the field construction are all required.
    Instead of the ¶, you should use real line/paragraph breaks.
    For more Word mailmerge tips, see:
    http://www.msofficeforums.com/mail-merge/21803-mailmerge-tips-tricks.html . That page also includes a macro for turning the above field representations into working field codes.
    Cheers
    Paul Edstein
    [MS MVP - Word]

Maybe you are looking for

  • XE web service stopped working

    I installed XE 10g rel 2 on a Ubuntu Linux server a few weeks ago (so that's how much experience I have). I've been using the web service (server:8080/apex from one Vista and one XP client) for a few days. After a few hours of light work today, a cou

  • Won't display odd page on right in two-up view

    thanks in advance for reading this: I self publish several books of my own. Using InDesign CS3 I've exported them (for years, all the way back to Pagemaker) as a 'book' pdf and with ID's wonderful view pdf feature, I've been able to review them 'two-

  • Issue with XML form builder

    Hi All, 1 ) My XML form builder is hanging up very very frequently (other than this, my portal is very fast). when I save the project its hangs up at "50% saving internal model". then I have to close the xml form builder and reopen it and save it aga

  • RD (Rogue Detector) or RLDP (Rogue Location Discovery Protocol)

    Hi all, Cisco documentaion states that there are two ways for detecting Rogues. Rogue Detector Access Point You can make an AP operate as a rogue detector, which allows it to be placed on a trunk port so that it can hear all wired-side connected VLAN

  • New 30Gb Just shows white screen

    I purchased a 30GB on Ebay (yes, I know, bad move) and when I got it and plugged it in, it only shows a white screen, and won't do anything else. Tried to reset, no go. Is there anything else I can do before I return this to the guy I bought it from?