Fill the word template using Java

I have a MS word template .. and 3 MS word file chunks ... i arrange these 3 file contents in the template
mean i have to combine 3 MS word files in to the template . Or you can suggest how to combine 3 word files into one
can any one please suggest how to do that ?

emcjava wrote:
Do you mean that i have to use a java webservice ?I think he means tying a windows program and Java together with JNI code.
Can you please give me a sample code in java to invoke the VB program on my machine ?It's not quite that simple. You'll need to study up on JNI, and if you're not that familiar with C or C++, this may take a while.
Good luck.

Similar Messages

  • Can I create a XSL function and use it in the Word Template

    I have a complicated logic (complicated if i have to repeat it 400 to 500 times) for determining if I should show a null expression. If the value is null or equal to 0 show N/A else show the value.
    If I have to repeat this over and over again and it turns out to need an update this would be a nightmare. But I don't have time to waste on a wild goose chase either. If I have to do something a couple thousand times i better get started basically.
    Can I create a function in the word template then call it throughout the word template for each field I have to check?
    Have a link to a tutorial that is doing this?

    If you really want to have a function, you have choice of using subtemplates (either RTF or XSL)
    You can check for steps here
    http://www.oracle.com/technetwork/middleware/bi-publisher/overview/bip-subtemplate-1-132933.pdf
    But if you have functions or use the code directly you anyway need to modify your 400-500 fields.
    i.e. either
    <?xdoxslt:ifelse(COLUMN='','NA',COLUMN)?>
    or <?call:template_name?>

  • Writing to word document using java

    hi,
    i want to retrieve the values from database and then write to .doc file. how can i write to a word document using java?
    thanks in advance

    Google for "java write to word file"
    and behold the magic results

  • How to do exact word search using Java API

    Hi,
    Can someone tell me how can I write a search query using Ultra Search Java API to return data containing a full word that is sent as a search
    parameter. e.g. If I want to search for a word 'Dictionary' I need to get all the results conatining full word Dictionary for example if I
    have following 4 records
    1. Dictionary
    2. English Dictionary
    3. French Dictionary
    4. AllDictionary
    How can I write a query that returns me first 3 records only as they contain the word 'Dictionary' and not the fourth record as it's not a word.
    Here is what I need to get back and ordered in that way as the 'Dictionary' needs to be first record because the search is on Dictionary.
    1. Dictionary
    2. English Dictionary
    3. French Dictionary
    Any help is appreciated.
    Thanks

    Looks like we can not do an exact word search using Java API.

  • How to find bpel instance in 11g based on the index values using Java APIs

    Hi ,
    In SOA10G we had option to find the instances based on the index value using Java APIs like below.
    WhereCondition criteria= new WhereCondition(SQLDefs.CX_index_1 + " = ?");
    criteria.setString(1, "indexValue");
    Locator mLoc = getLocator();
    IInstanceHandle[] foundInstances = mLoc.listInstancesByIndex(criteria);
    Please tell me how to achieve the same functionality in SOA 11G using Java APIs
    Regards,
    Saba

    I have multiple bpel in my composite. I checked in ci_indexes table and it shows the instance number of the bpel process. But the em console is showing only the composite instance number. when I opened composite instance, I could see all the bpel process with instance number in the audit trail. How can I find the the actual composite instance number that I should search for in the em console ???

  • How to get the context data using java script in interactive forms

    Hi All,
    How to get the context data using java script in interactive forms by adobe,  am using web dynpro java
    thanks.

    Hi venkat,
    Please Refer this link.
      Populating one Drop-Down list from the selection of another Drop-down list
    Thanks,
    Raju.

  • Display pop ups in the jsp by using Java script

    Hi
    can any body say ,how to display pop ups in the jsp by using Java script ?

    that's correct. You can use the below code for AJAX request.
    <script type="text/javascript">
    var httpObject = getHTTPObject();
    //create XMLHttpRequest object
    function getHTTPObject() {     
         var xmlhttp;
         if (window.XMLHttpRequest) // if Mozilla, Safari etc
              xmlhttp = new XMLHttpRequest();
         else if (window.ActiveXObject){ // if IE
              try {
                   xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
              catch ( e ){
                   try{
                        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
                   catch ( e ){}
         return xmlhttp;
    //define the function to send the request
    function sendRequest(){
        var currDesc = document.getElementById("description").value;
        var URL =  "manageMaintAction.do"; //action mapping in your struts-config
        var queryString = "currDesc="+escape(currDesc); //get the currDesc value in your action class like request.getParameter("currDesc")
        httpObject.open( "Post", URL, true );
        httpObject.onreadystatechange = cbFn;
        httpObject.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded");
        httpObject.send(queryString);
    //callback fn
    function cbFn() {
        if (httpObject.readyState == 4)
             if (httpObject.status == 200)
              var result = httpObject.responseText;
              alert(result);
    </script>

  • Display Error: The display template had an error. You can correct it by fixing the template or by changing the display template used in either the Web Part properties or Result Types. $(...).slick is not a function (OnPostRender: )

    Hi Team,
    I implemented news carousel using display template concepts.
    Its working.
    But some times it shows like some thing went wrong
    when clicke on show details
    it showing the error like
    Display Error: The display template had an error. You can correct it by fixing the template or by changing the display template used in either the Web Part properties or Result Types.
    $(...).slick is not a function (OnPostRender: )
    some times showing result and while refreshing the page am getting the error like below
    How to fix the issue
    Regards,
    Dhayanand

    Hi Wendy Li,
    Finally we fixed.
    The prob is that we referring two different version of jquery files in master page and page layout.
    We corrected by referring same version of jquery files in both pages
    Regards,
    Dhayanand

  • How to import the image by using java application

    1.how to import the image by using java APPLICATION and display it on the textarea that you have been created.
    2.how to store the image into the file.
    3. what class should i used?
    4. how to create an object to keep track the image in java application.
    * important : not java applet.
    plzzzzzzz.
    regards fenny

    follow the link:
    http://java.sun.com/docs/books/tutorial/2d/images/index.html

  • Live type files look grainy and do not fill the background when used for green screen backgrounds.

    live type files look grainy and do not fill the background when used for green screen backgrounds. Ideas?

    What I want to do is somehow make my entire iMovie project smaller by compressing it somehow but without losing any footage or audio or quality. At the moment the project is a 56GB iMovie project lasting approx 1hr. I have a mixture of miniDV footage, titles created in Live Type (they are better quality than anything available in iMovie) and audio.
    The miniDV footage is automatically compressed when it transfers from my camcorder to my Mac, no worries there.
    The LiveType titles contain a motion background (imported into LT) and then text which appears and disappears at set points. The titles vary in length but are about 5 seconds each.
    The file size for the LT titles is approx 180MB per clip, the movie requires about 20 or so of these clips, making a very large file size overall.
    Is there a way that I can save something in LT so that the file size is smaller yet still keep the quality and use the clip in my iMovie ?

  • COM object model not functioning after encrypting the word document using office extention

         After encrypting A word document using office extention, it seems like the COM object model becomes unusable. I cannot not manipulate the encrypt document through COM interface, nor can I write macro VBScript to do some operation on the docuent.
         For example, I create a word Macro with some simple code.
    Sub hi()
        Dim i As Integer
        i = ThisDocument.Fields.Count
        MsgBox i   
    End Sub
         If the document is not encrypt, then we will see a msgbox which tells us the number of bookmarks in the current document.
         Now, encrypt the word document using the office extention, running the macro code will fail with error code " 80004005" and error message:Method 'Fields' of bject 'ThisDocument' failed.
    It is very important for us to manipulate word documents through COM interface in our system, I want to know why the COM interface does not work anymore after the document is encrypted.

    I take macro script as an example to demonstrate that word COM object model cannot be used after encripted. Actually you can reproduce the same problem when you manipulate word document through COM interface using any programming language.
    For example, you can create a text document  with the following VBscript:
    set a = createobject("Word.Application")
    set doc = a.Documents.Open("E:\temp\test.docx")
    msgbox doc.Fields.count
    doc.close
    a.quit
    Save the document with ".vbs" file extention and then run it by double clicking it. it will fail if the document is encrypted using the office extention. 

  • [svn] 4176: Make the team app use Java 1.5.

    Revision: 4176
    Author: [email protected]
    Date: 2008-11-24 13:42:21 -0800 (Mon, 24 Nov 2008)
    Log Message:
    Make the team app use Java 1.5.
    Modified Paths:
    blazeds/trunk/apps/team/build.xml

    Did you try this?
    http://docs.info.apple.com/article.html?artnum=302412
    Hope it helps ya!

  • Automatically complete a word template using the oracle database

    I have a Microsoft office word template and I would like to automatically complete some fields using data from my Oracle 10g database. For example where I have the text “Dear Mr.” I want to get the name of that person from a table in the database. Also by pressing a button in Oracle forms I want to open the word document to see the result. Any ideas how to do that? Thank you.
    Message was edited by:
    Flomaster

    Hello,
    There are lot of code pertaining to your requirement(OLE) in forms forum,a search will give you the required code.
    Regards
    Mohan

  • How to find a word and copy the phrase containing the word without using the mouse

    I am using a macro to fill in a form and select fields in the form. The fields are titled and i want to use the field title to select the field and thus need to copy the name to compare with the search text and tab to the next requested field.

    Ctrl+f opens the search in page feature. However, the result is not automatically selected and ready for copying. And since you already typed the query, you wouldn't really save any time that way...
    Firefox has some accessibility features you could explore: [[Accessibility features in Firefox - Make Firefox and web content work for all users]]. These include placing a movable cursor into the page, or searching/selecting using / and other possibly useful items. Maybe between them you can find a good workflow. If not, maybe an add-on?
    ''Edit: Here's an example of how to select the word accessibility in this post:''
    Type:
    /acce
    Press:
    Esc, Ctrl+Shift+right
    ''Edit: Actually it works with Ctrl+f as well, and that might be better if the word is common so you can use Next/Previous.''
    Press:
    Ctrl+f
    Type:
    acce
    Press:
    Esc, Ctrl+Shift+right

  • How to change the font size of the string by using java?

    I wish to change the font size of the text, read from a text file by using java. Please send me the sample codes. By using ActiveX component for word we can do it. Please give me any other solution to suit the platform independ. Thanks in advance.
    thanks,
    Karthik.

    Text is displayed in some kind of text component - JTextField, JTextArea, JTextPane....To change the font of the text you change the font associated with the text component:
    textComponent.setFont( .... );

Maybe you are looking for

  • ITunes 10.6.3 Not Permitting Purchases

    As of today, I can no longer buy iTunes items via my desktop Mac running 10.5.8 and iTunes 10.6.3. For some reason, the post filter would not let me post about it, so here is a screen shot of my original post:

  • How do I give access to a windows vista to the Time capsule 2 TB drive?

    I just got a time capsule, I have set it up on my mac,  I was able to share printing between time capsule and windows via Bonjour for windows. How do I get the windows vista pc to see the 2 tb hard drive in the Wi-Fi or Airport network?  I have read

  • Dual / External Monitor Problems

    I have recently purchased a NB200/007 netbook, and wish to use dual monitors (mainly for displaying photos etc on larger screens) It came preloaded with Windows 7 starter, after finding out that the Starter edition did not support dual monitor i upgr

  • Advance Return to vendor

    Dear All , I have a scenario how to send  advance return material to vendor (this is like third party procurement ) EX- I procure one material 10 qty from one vendor than i send to customer site if  material get faulty at customer site then customer

  • Several Pending orders

    I have tried to purchase credit on my Skype account but the order is pending and instead of one order I have several.  I would just like to purchase order order for credit.  How do I cancel the other pending orders?