Merge data to WORD using Java

How to format data into WORD format?
Planning to do to formatting it in Unix server, and once done download the WORD file to the window client.
Tq!

hi
You can use J-Integra as con bridge as connectiong tool.
Prashant

Similar Messages

  • Interaction with Microsoft Word using Java Programming

    writing Text ON TO MICROSOFT WORD USING java Programming Urgently required

    Go throuh jakarta POI(hssf) to do..No! HSSF which stands for Horrible SpreadSheet Format can be used for Excel (spreadsheets as the name suggests). For Word, you would need to lok at HPSF.

  • How to retrieve data from MDM using java API

    hi experts
    Please explain me the step by step procedure
    how to retrieve data from MDM using java API
    and please tell me what are the
    important classes and packages in MDM Java API
    thanks
    ramu

    Hi Ramchandra,
    You can refer to following links
    MDM Java API-pdf
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2d18d355-0601-0010-fdbb-d8b143420f49
    webinr of java API
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/89243c32-0601-0010-559d-80d5b0884d67
    Following Fourm Threads will also help.
    Java API
    Java API
    Re: usage of  java API ,
    Matching Record
    Need Java API for Matching Record
    Thanks and Regards,
    Shruti.
    Edited by: Shruti Shah on Jul 16, 2008 12:35 PM

  • How to get the system date and time using java

    hi,
    I want system date in my out put. how to access system date. can v use utill packaegs (or) sql. which one is the best to get.
    Thanks & Regards,
    Kenny.

    import java.util.Date;
    import java.util.Calendar;
    import java.util.GregorianCalendar;
    public class MyClass {
    public void setTimeStamp() {
    int hour, minute, second, time = 0;
    Date dt=new Date();
    System.out.println(dt.getDate());
    System.out.println(dt.getMonth());
    System.out.println(dt.getYear());
    Calendar cal = new GregorianCalendar();
    hour = cal.get(Calendar.HOUR_OF_DAY);
    minute = cal.get(Calendar.MINUTE);
    second = + cal.get(Calendar.SECOND);
    System.out.println (hour + ":" + minute + ":" + second);
    public static void main (String args[]){
    MyClass app = new MyClass();
    app.setTimeStamp();
    }

  • Update file date/time stamp using java

    Let me explain you what I am going through:-
    I have created a java based installer using Jexpress tool and after I do the installation of my files, the files takes the current date rather then taking the date when it was created or modified.
    Everything goes into JAR and I heard that Jar file do not retain the date/time stamp of the file.
    I would like to know if we can change the date and time stamp of the files using Java.
    Is there any method to do that or can we do this by writing the java class?
    Thank You
    Mehul

    Did you check it?
    I did.
    $ jar cvf ~/ui *.m3u
    added manifest
    adding: Amollhgv.m3u(in = 42) (out= 24)(deflated 42%)
    adding: Brand1.m3u(in = 56) (out= 27)(deflated 51%)
    adding: Brand2.m3u(in = 42) (out= 24)(deflated 42%)
    adding: Brand3.m3u(in = 42) (out= 24)(deflated 42%)
    adding: Brand4.m3u(in = 42) (out= 24)(deflated 42%)
    adding: Brand5.m3u(in = 42) (out= 24)(deflated 42%)
    adding: Brand6.m3u(in = 42) (out= 24)(deflated 42%)
    adding: Edurhgv.m3u(in = 42) (out= 24)(deflated 42%)
    $ unzip -l ~/ui
    Archive:  /home/ijbalazs/ui
      Length     Date   Time    Name
            0  12-04-03 17:53   META-INF/
           71  12-04-03 17:53   META-INF/MANIFEST.MF
           42  08-26-02 01:03   Amollhgv.m3u
           56  11-22-98 01:15   Brand1.m3u
           42  08-26-02 01:04   Brand2.m3u
           42  08-26-02 01:04   Brand3.m3u
           42  08-26-02 01:04   Brand4.m3u
           42  08-26-02 01:04   Brand5.m3u
           42  08-26-02 01:04   Brand6.m3u
           42  08-26-02 01:04   Edurhgv.m3u
          421                   10 files

  • Upgrade to 18.0 has disabled Java even though plugin checker says Java 7 Update 10 is up to date, yet webpages using java display "missing plug in" error

    Attempting to install the "missing plug-in" using the Firefox prompts results in Java 7 Update 10 being installed, re-installing it is successful and does not resolve the issue, Firefox 18 refuses to allow/display java content even with the proper updated version of Java installed.
    This problem ONLY occurred immediately following this mornings update to Firefox 18.0.

    Context:
    Yesterday: Java working fine.
    This morning: Update to Firefox 18.0
    Java will not work, not at all even with Java 7 Update 10 installed, not even the "verify java version" applet at http://www.java.com/en/download/installed.jsp will display.
    When attempting to view/display any java content the "missing plug-in" error bar at the top of the page displays and attempting to install the required plug-in via that method does not resolve the issue even though the correct version of Java is installed and the plug-in checker verified it was "up-to-date".

  • How to get server date and time using java code

    Hi,
    I'm new to java. I have one doubt about getting date and time of the server. can anyone give some sample code to get that.
    thanks in regards
    Gopi.

    you need 2 things
    1. something on the application server which exposes the servers time/date
    2. something on the client which makes use of your time service
    for instance, you could write a ServerTimeServlet that clients can call to get the time according to the server. or, if you've got a database in the server, often database software will provide a Time procedure or similar that does this, so you can use a simple SQL query to get the latest time

  • Help: writing large data to excel using java

    Hi All
    I had a question writing a 6000 rows of data with 20 colums to a excel sheet. I am using Apache POI
    When we are writing some data to a file we store the data in an stringbuffer and then write the data to the file all at once.
    Is the same possible with excel? if so how?
    And what is the best way of wring data to an EXCEL file considering the above data into consideration.
    Please guide me thanks in advance.
    Regards
    Diana

    Text Files and Excel formatted files treat things differently--basically no, you cannot group multiple fields into one string: Excel has the concept of cells that you need to write the data into and will act similar to fields in a DB. On the other hand, you can drop the Excel formatting and write CSV files and Excel will load them just fine. With a CSV file you can write it all to a String, StringBuffer, StringBuilder or what ever String type of object you want and write an entire line at a time.

  • Show the page set up as in  MS word using java

    Hi all,
    I am working to show the page setup as in MS Word ,i.e when ever we change the paper size then the image of the paper had to be changed and seen there itself.Please provide some valuable code and tell me how to proceed .
    Thanks in advance.

    Sarvananda, please do not post rude responses. Why be so hostile? Just be helpful, not elitist.
    As far as the topic question, I believe what you are trying to is provide some kind of graphical representation of the page, that updates as the user changes margins and other page-related settings? (See Sarvananda its not that hard to read a question, now is it?)
    You should look into using PrinterJob and its default page dialog. You can bring this up with the following:
    PageFormat pf = new PageFormat();
    PrinterJob pj = PrinterJob.getPrinterJob();
    pf = pj.pageDialog(pf);This has the visual appeal you are looking for I believe?
    Good luck.

  • Access microsoft word doc using java

    how can i access microsoft word using java .
    I want to select text from the word in the same format as it is.
    if possible can u all help me

    By using an appropriate library. JText, whatever.
    Google, man.I think Rene meant iText!Whatever. :) Never used it, I just remembered there was something named like that. Thanks.

  • Merging data into PDF

    Hi,
    I am trying to merge data into PDF using FDF toolkit and seem to be having trouble viewing the document in IE 6.0. I tried setting the content type on the response to 'application/vnd.fdf'
    Would appreciate if i can get some input on this.
    Thanks.

    There is a good library to create pdf from a java program or a servlet in this page:
    http://www.lowagie.com/iText/download.html
    It's easy to use and there are different examples. It also allow you create the pdf document on-line in the client.
    If you need some help me I have used it and I can send you an example if you need.

  • How to modify the content of a xml element using java?

    Hi all,
    In my usecase I need to export some data from the database to the external file (Ms Word) using java.
    The data which I get from the database will be in the form of a xml file. In that xml file
    I got to modify the content of an attribute of a xml element in the java class. Kindly comeup with your help
    to achieve this.
    Thanks,
    Phanindra.
    Edited by: 887737 on Dec 5, 2011 5:52 AM

    Why don't you try Xerces2?Why don't you tell him to use the javax.xml APIs that are already built in? And that use Xerces2 under the hood? Instead of throwing out a suggestion that might lead to him adding another copy of Xerces into his application?
    @OP there are several techniques:
    - string replacement as suggested by jschell
    - XML parsing to a DOM and then use the DOM API
    - XSLT
    Which you should use depends on the complexity of your requirement.

  • Creating Merge Data

    Has anyone found a way to create merge data to be used in wp application by querying a table?

    Depends on the document. ISSUU - 2015 Kayak Gear Guide by Wild Coast Publishing. This went live unpublished for client proofing requiring two separate sessions, so three reflows of the database. If it worked properly, the clients submit the revised spreadsheets that are dropped into a database. The revised database is then loaded into inDesign. If the update worked as it should, it wouldn't require a single extra piece of work in the inDesign document. It would be: import client spreadsheet into the database, export the database into csv file, update csv into inDesign and update the fields. Five minutes. Now look at that document and you have 60 of 604 records to change and it can't be automated. You're telling me it's no deal reflow that document and build it from scratch again? I don't think so. The problem is this would be SO easy to work properly. Some initial finessing of the headings and bam, done for the year. We could take client updates and reflow it live online in minutes of effort. It should work properly. I paid Adobe to have it work properly. It doesn't work properly. I lost days of productivity trying to overcome the shortfalls and apparently I'm hearing I can't resolve the issue without an expenditure of hundreds potentially thousands of dollars for another system. If that was the case I wouldn't have upgraded to CC. CS4 worked fine and it was paid for. (As an aside, there was an additional error that the links didn't work as they pointed to the spreadsheet rather than the URL. Plus the issuu.com publisher turned all links live, including the database links that pointed to the database, so there were suddenly 10 links or so per record, none of which worked. This version of the document was saved as a PDF without hyperlinks as we decided that no links temporarily was better than 10 that didn't work. So that part remains to be done, another problem to overcome, as the autodetect hyperlinks seems to have a flaw as well when dealing with merged data).  

  • How can we make the ms-word data as read-only using java code?

    How can we make the ms-word data as read-only using java code?

    MVSK wrote:
    By using java code i opened a file in ms-word. But the data i want to display as read-only. that means should not change it.I don't think you can do that. Display pdf documents instead.

  • Merge LiveCycle Form with XML using JAVA

    Hello.
    I am trying to find out how to merge non-interactive form with XML (using JAVA) so the users can see the final output form with the data filled in.
    What are my choices..?
    So far, I have created the interactive forms as template using LiveCycle 8 and wrote ASP.NET code to extract data and store it in SQL database when the user fill out and submit the form.
    It works great but another agency wants to access the form as well.
    They told us that they will create the XML themselves from the database, so they just need to combine the form with XML to display it (non-interactive form).
    They want to use JAVA but I am not sure how to do that...
    Any suggestion?

    Assuming that you start with XML in an org.w3c.dom.Document that stores the XML data. Before you can merge it into a form, you have to convert it to a com.adobe.idp.Document object. TO convert a org.w3c.dom.Document to a com.adobe.idp.Document object -- use the following Java code:
    private Document convertDataSource(org.w3c.dom.Document myDOM)
    byte[] mybytes = null;
    try
    //Create a Java Transformer object
    TransformerFactory transFact = TransformerFactory.newInstance();
    Transformer transForm = transFact.newTransformer();
    //Create a Java ByteArrayOutputStream object
    ByteArrayOutputStream myOutStream = new ByteArrayOutputStream();
    //Create a Java Source object
    javax.xml.transform.dom.DOMSource myInput = new DOMSource(myDOM);
    //Create a Java Result object
    javax.xml.transform.stream.StreamResult myOutput = new StreamResult(myOutStream);
    //Populate the Java ByteArrayOutputStream object
    transForm.transform(myInput,myOutput);
    // Get the size of the ByteArrayOutputStream buffer
    int myByteSize = myOutStream.size();
    //Allocate myByteSize to the byte array
    mybytes = new byte[myByteSize];
    //Copy the content to the byte array
    mybytes = myOutStream.toByteArray();
    catch (Exception e) {
    System.out.println("The following exception occurred: "+e.getMessage());
    //Create a com.adobe.idp.Document object and copy the
    //contents of the byte array
    Document myDocument = new Document(mybytes);
    return myDocument;
    THen you can merge myDocument into the Form using renderPDFFOrm:
    FormsResult formOut = formsClient.renderPDFForm(
    formName, //formQuery
    myDocument, //inDataDoc
    pdfFormRenderSpec, //PDFFormRenderSpec
    uriValues, //urlSpec
    fileAttachments //attachments
    Hope this helps!

Maybe you are looking for

  • I need to restore an iphone 4 to 7.0.6 not the current 7.1

    I need to restore an passcode locked CMDA iPhone 4 to 7.0.6 not the current 7.1. This is due to a mobile management application that our company uses that has not been verified to work with 7.1 yet. This iPhone is current on 5.1.0. I am trying to do

  • BAPI for cost centers in ALE scenario

    Hello All, We have a requirement to get the list of cost centres from target system when we do F4 on the cost centre field in IT 0001 PA30 transaction or F4 on the cost centre field in cost assignment tab of PPOME transaction. Is there any BAPI that

  • Cancellation process

    hi experts Pls explain the cancellation for sales, Created Excise invoice Thanks Basavaraj

  • Performance OO ABAP v/s Procedural ABAP

    Hi Experts, I want to know if the performance of any particular program is enhanced by the use of OO ABAP over Procedural ABAP. Please let me know if there are any articles (books, blogs and forum threads...) which discuss the same.  Thank you -Joe

  • Macbook Pro...will work for a few minutes, then power goes out all together

    Hey guys, tried finding an answer to this somewhere else on the forum, but came up empty. If this has been answered elsewhere, feel free to direct me there. I have an older macbook pro (2011) that's in rough shape, but worked well up until recently.