How to mail merge a document with in database?

Dear All,
I would like to know how to implement mail merge functionality in side pl/sql body. I could open, edit a document using the package ORDWord. Morethan, that anybody know, how to merge the documents ?
Or please let me know any other workaround apart from this?
Regards
Balaji

Hi,
There are tow ways :
The first one is :
- load the list of tables of the Database in a Vector for exemple by using methode DatabaseMetaData.getTables () and you can test if the table exist or not in the vector by using methode Vector.contains(Object o).
The code seems Like that :
// Loading List Of Tables
// you need to load the list of tables at the begening of
// your class
Vector listOfTables = new Vector();
try
rs = yourConnection.getMetaData().getTables();
while (rs.next())
listOfTables.addElement(rs.getString(3));
catch(SQLException exp)
// When you need to test the existance of table name
// you add this line
if(listOfTables.contains(tableName))
// your code
The second one :
try
//execute your query
catch
//Create your default JTable
I hope that my response can help you!
Ciaou,
Anis

Similar Messages

  • HP Officejet 6500A How do I scan a document with multiple pages into one file?

    HP Officejet 6500A Plus e-All-in-One Printer - E710n
    Windows 7 (64 bit)
    How do I scan a document with multiple pages into one file?  My old printer (psc 2110) asked after each scan if I wanted to scan another page.  At the end I had one pdf file with multiple pages.
    This new one creates one file for each page and I cannot find a way to create one pdf file with multiple pages.
    This question was solved.
    View Solution.

    Hi mpw101,
    If you load the papers into the ADF - Automatic Document Feeder, and then select Document to PDF then they will all be scanning into one file. Let me know if this works for you?
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"

  • Help! How do I create a document with an imported PDF in 300dpi using a FOGRA27 colour profile?

    I am a new Indesign user and I have been working with GIMP for the last year creating single colour print-ready PDFs. But now I need to create a document with a FOGRA27 CMYK colour profile and a resolution of at least
    How do I create a document with an imported PDF in 300dpi using a FOGRA27 colour profile?
    I can import the PDF by creating a new document and finding the PDF in places, but it's bad quality.
    The only colour profile I can find under View - Proof Setup is FOGRA39, but I need FOGRA27!
    Help help help, I need to get these files printed in two days!
    Thanks so much..
    xx

    Proof Colors doesn't change the file's color management, it just lets you see what the color values would look like if they are printed unchanged on different output devices. If you want to actually convert the color from one CMYK space to another, it's probably better to do that in Acrobat—Tools>Print Production>Convert Colors.
    There's very little difference between Fogra27 and Fogra39—Fogra27 allows more total ink 350 vs. 330.
    There's nothing you can do to improve the quality of low res images

  • HT5232 does ipad mini have a usb port? if not then how can i share my documents with devices other than apple?

    does ipad mini have a usb port? if not then how can i share my documents with devices other than apple?

    Wireless Flash Drive (tap to enlarge image)

  • How to update the posted documents with Business Area wise

    Dear experts
    Please suggest me how to update the posted documents with Business Area wise
    Ajeesh.s
    Moderator message: please do more research before asking, show what you have done yourself when asking.
    Edited by: Thomas Zloch on Nov 2, 2011 2:26 PM

    Hi,
    Select all your folders in Disco Administrator,ALT+ENTER to go to properties, then change the database from the default database to the remote database.
    Hope that helps,
    Rod West

  • How do I open dual documents with windows8?

    How do I open dual documents with windows8? whenever I have one adobe doc open and i need to reference another, it will only open one at a time...I want to view with a split screen...HELP!
    Message was edited by: big_bubber

    Adobe Reader Touch for Windows 8 doesn't support more than one document opened at a time. Good feature request! Thanks.

  • How do I print .pdf documents with reader for windows 8?

    I have Reader for windows 8.  How can I print .pdf documents with it? 

    See FAQ: Printing from Adobe Reader for Windows 8 Tablets.

  • HT204406 how do i merge my account with my husbands account so that my music library can be used on our apple tv?

    how do i merge my music with my husbands apple tv?

    Click here and ask the iTunes Store staff for assistance.
    (104159)

  • How can I open a document with applescript without the doc. window opening.

    How can I open a document with applescript without opening the document window and speak the text of the document?  I can get it to open the file but the doc window always opens up. 

    try
              set pathToMyFolderOnDesktop to ("Macintosh HD:Users:jodyconnor:Desktop:") & "Dsource:" as alias
              set rnd to (random number from 1 to 6)
              set rndFileName to (rnd as text) & ".scpt"
              set FullPath to pathToMyFolderOnDesktop & rndFileName as text
              set myScript to load script (FullPath as alias)
      run script myScript
    on error the error_message number the error_number
              display dialog "Error: " & the error_number & ". " & the error_message buttons {"OK"} default button 1
              return
    end try
    This code answered my question:  Hats off to Digimonk from stackoverflow and Darrick Herewe from stackoverflow.

  • How i can Create Master Repository with MySQL Database?

    How i can Create Master Repository with MySQL Database? i need to using MySQL Database to Master & Work Repository.
    I try to add mysql libary jar file to drivers . But , can't display MySQL Technology in Database List for Create Master Repository ?
    Please..
    Edited by: MadoatZ on Feb 19, 2011 1:47 AM

    Creation of ODI master repository is limited to few relational databases only. Check certification matrix for ODI 11g
    Oracle 10.2.0.4+
    Oracle 11.1.0.7+
    Oracle 11.2.0.1+
    Microsoft SQL Server 2005
    Microsoft SQL Server 2008
    IBM DB2/UDB 9.7 and later FixPaks
    IBM DB2/400 (V5R4+)
    Hypersonic SQL 1.7.3+
    Sybase AS Enterprise 15.0.x
    thanks

  • Merging word document with pdf file how do you renumber pages?

    After merging a word document with pdf file, how do you renumber pages?  The pdf has more pages than the word document.  I first converted the word document to a pdf, using Acrobat Standard 9.

    Hi Petek ,
    After you merge the files or combine files ,click on the Page Thumbnails panel on the left hand side.
    In the Page Thumbnail panel ,right click and you will get a drop down list .Select the option "Number Pages".
    You will see a dialog box with several options .You can renumber the pages from there as per your requirement.
    Regards
    Sukrit Dhingra

  • Mail Merge not compatible with Firefox 31.01. How do I fix this problem?

    Hi everyone currently seeing this.
    I downloaded Mail Merge from the add-ons for Thunderbird.
    I tried to install it from file in the add-ons page and a message appeared saying Mail Merge could not be installed because it is not compatible with Firefox 31.01.
    Can anyone please tell me what I can do to fix this problem.
    Many thanks.
    J

    Install it in Thunderbird perhaps
    Try the ideal case here http://chrisramsden.vfast.co.uk/3_How_to_install_Add-ons_in_Thunderbird.html

  • I am trying to mail merge a document but the inspector icon has gone missing

    I am trying to perform a mail merge with a pages document but the inspector icon has gone missing

    Jerrold
    That keyboard shortcut is for Pages '09.
    jackahirst
    Inspector > Link > Merge
    but you need to have inserted merge fields into your document.
    Menu > Insert > Merge Filed/Sender Field
    Peter

  • How to Mail Merge?

    I need a program that uses text from two .txt files and creates a third text file.
    There is non interactive but rather it uses all the info from text files.
    It uses the command line etc, java TestHarness template list letter where template is the template, list is the customer list and letter is the resulting text file.
    The template file is like:
    Name <Name>
    Address <Address>
    Hello, <Name> you are invited to a party this week located at <Address>
    The list of people is like
    Michael Roo%n%
    1 Mark Road%a&
    the %n% and %a% are the delimeters.
    This may seem simple but I am really unsure of how to exactly 'merge' them.
    Please help :)

    OK here is what I have done. I use the command Java Assign1 template.txt studentlist.txt output.txt to get it to work. Basicall it reads from the studentlist.txt file, stores their name etc into first index of the array, then it goes through the template.txt file, adding their name etc to the place holders.. then adding the lines into one big string file called text. Note this is only the class file not the main/test harness.
    I always get a
    "java.util.NoSuchElementException"
    The template.txt file is
    <full name>
    <address>
    Hello <title> <last name>,
    Congratulations! On Winning a prize.
    <nickname>, you are invited to accept your present and will required to attend the office to retrieve your prize later on
    This is an exclusive offer to select <subject> students only. Come and collect your prize.
    Congrats,
    John Black
    <subject> party organiser.
    My List file is
    Paul%f%
    Black%l%
    Paulie%n%
    79 Cardgan St
    Carlton%a%
    Dr%t%
    Java%s%
         %f% first name
         %l% last name (full name in the output will be first and last names together).
         %n% nickname
    %a% address
    %t% title
         %s% subject.
    This is the class no the main method
    import java.io.*;
    import java.util.*;
    class Mail
        String line = null;
        String line1 = null;
        String text = null;
        String token1 = null;
        String token2 = null;
        String token3 = null;   
        int max = 9;
        String [] fname = new String[max];
        String [] sname = new String[max];
        String [] nname = new String[max];
        String [] address = new String[max];
        String [] title = new String[max];
        String [] subject = new String[max];
        public void readTemplate(BufferedReader inputTemplate, BufferedReader inputList) throws IOException
            try
                line1 = inputList.readLine();                          
                while (line1 != null)
                    StringTokenizer st = new StringTokenizer(line1,"%");
                    while (st.hasMoreTokens())
                        token1 = st.nextToken();
                        token2 = st.nextToken();
                        for (int i = 0; i < max; i++)
                             if (token1 != null && token2.equals("f"))                   
                                 token1 = fname;
    if (token1 != null && token2.equals("l"))
    token1 = sname[i];
    if (token1 != null && token2.equals("n"))
    token1 = nname[i];
    if (token1 != null && token2.equals("a"))
    token1 = address[i];
    if (token1 != null && token2.equals("t"))
    token1 = title[i];
    if (token1 != null && token2.equals("s"))
    token1 = subject[i];
    i++;
    line1 = inputList.readLine();
    line = inputTemplate.readLine();
    while (line != null)
    StringTokenizer st1 = new StringTokenizer(line,"<>");
    while (st1.hasMoreTokens())
    token3 = st1.nextToken();
    for (int j = 0; j < max; j++)
    if (token3.equals("full name"))
    token3 = fname[j] + " " + sname[j];
    if (token3.equals("address"))
    token3 = address[j];
    if (token3.equals("title"))
    token3 = title[j] + " " + nname[j];
    if (token3.equals("subject"));
    token3 = subject[j];
    j++;
    line = inputTemplate.readLine();
    text += line;
    catch (FileNotFoundException d)
    System.out.println("Unable to proceed because the student list file is empty");
    catch (IOException e)
    System.out.println("A problem with reading from an input file or writing to the output file has occurred");
    public void mergeLetter(PrintWriter output) throws IOException
    try
    output.println(text);
    catch (Exception f)
    System.out.println("Critical error occurred, the program has to be abandoned");

  • 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

Maybe you are looking for