Question about  Java and XML  rendering for Word 97 upwards.

Without using the apache POI library, and by sticking to non-pay products,
is it possible to use java or XSLT/XML to turn
an xml formatted file into a
Microsoft Word/Excell/PDF file within one framework?

Look into Apache FOP. But be warned: it will most likely use POI to do any excel conversions. That's how (sane) software development works: you don't reinvent the wheel, you effectively reuse what is already there.

Similar Messages

  • Three questions about Java and Ftp

    Hello, i've the following questions about Java and Ftp:
    1- .netrc file is in $HOME directory but i can't access to this directory from java code. The following line producesan Exception (directory doesn't exists)
    FileWriter file = new FileWriter ("$HOME/.netrc");
    2- .netrc file must have the following permissions: -rw- --- --- but when i create the .netrc file the following permissions are on default: -rw- r-- r--, how can i change this permissions? (In java code, i can't use chmod.....)
    3- Are there any way to pass parameters to a .netrc file? If i get to do this i needn't change the permissions because i can't modify or create/destroy this file.
    Thanks in advanced!!!
    Kike

    1- .netrc file is in $HOME directory but i can't
    access to this directory from java code. The
    following line producesan Exception (directory
    doesn't exists)
    FileWriter file = new FileWriter ("$HOME/.netrc");$HOME would have to be replaced by a shell, I don't
    think you can use it as part of a legal path.
    Instead, use System.getProperty("user.home");
    Ok, thanks
    2- .netrc file must have the followingpermissions:
    -rw- --- --- but when i create the .netrc file the
    following permissions are on default: -rw- r--r--,
    how can i change this permissions? (In java code,i
    can't use chmod.....)Yes, you can: Runtime.exec("chmod ...");
    I need to use estrictly the .netrc with -rw- --- --- permissions
    Yes, i can use Runtime.exec ("chmod ..."); but i don't like very much this solution because is a slow solution, am i right?
    3- Are there any way to pass parameters to a.netrc
    file? If i get to do this i needn't change the
    permissions because i can't modify orcreate/destroy
    this file.I don't think so. Why do you need the .netrc file in
    Java at all? Writing a GUI frontend?I want to use automatic ftp in a java program and FTP server, the files and path are not always the same, so i can:
    - modify .netrc (for me is the complex option)
    - destroy and create a new .netrc (is easier but i have permissions problem)
    - use .netrc with parameters but i haven't found any help about it
    Thanks for your prompt reply!!!!
    Kike

  • Question about java and batik

    i want to make a project using batik.. if i want to animate the svg, can batik do this? i am confused about batik. does it support animation? and how do i read the mouse coordinates in an svg using batik? please help..

    thanks for the reply! what i mean in the second question is does the canvas in batik support mouse coordinates?
    from what i understand is i can add interactivity to a svg by using batik and java and no javascript.. am i right? i am asking because i am doing a gis project and i want to do it in batik and java. after creating the svg file in the web, it will be downloaded from a phone fow viewing. in orer to do that i have to do a program for the phone, right?

  • Question about Sender and Receiver Structure for JDBC

    Dear All,
    I want to know why there is a fixed format for sender and receiver structure for JDBC. why cant we use the structure like what we want? explain me in detail.
    Thanks

    Good Question:
    We have to create our data structure based on the existing database table structure. While reading or writing , JDBC adapter convert our data type structure in to SQL Query Statements that matches Table structure.

  • Question about voice and data plan for Europe

    I am in New York and my boss is going to France for a week and a half. He told me he will not have access to the internet there. He asked me to find out if it would be possible to get a voice and data plan for the month that he will be there, and if so, could someone show me where I could look at the different plans available?
    If it's not possible to do that for just a month, then could someone tell me where I could find the rates are for voice and data in France?
    Thanks

    Hi kevindrosario,
    I appreciate your interest in our International Services.  France, is a GSM country and will only support a Global capable device. Unfortunately, its not clear if your boss has a Global capable device.  If so, here are the details for the voice and data rates for France.
    If your boss doesn't not have a Global capable device, no worries!  We offer an Occasional Global Traveler program, in which we will loan you a Global device for up to 21 days.  I hope this information is helpful.  Please let me know if you have any any additional questions or concerns.
    Thank you,

  • Few question about Java and MySQL connection

    Hi!
    I have some problems with creating connection between Java and MySQL.
    I followed the restrictions in mysql-connector-java.jar' readme, I set the CLASSPATH :
    CLASSPATH=.;D:/mysql/mysql-connector-java.jar;
    I copied this jar file to the right place (descripted above), and I used the right steps to load it:
    Class.forName('com.mysql.jdbc.Driver"); and it throws a ClassNotFoundException
    Why? All the paths are correct, everything is on the right place.... I dont know why.
    When I installed the JBuilder8, and copied the jar file to JBuilder8/jdk4/jre/lib/ext it worked without any CLASSPATH in enviromental variables.
    If I want to run my program on machines where are not JBuilder, what should I do?
    Please help, if you can.
    Thanks,
    henpanta

    Yeah. So if I compiled my program with JBuilder to an .exe file, I cant run it on other machines, if the jar file isnt in the same place?
    If I tried your advice, java -classpath mymainclass I got the next message:
    main class not found. Believe me, its there. :(

  • A few questions about Memory and Power Supply for MSI 975X Platinum Powerup Edit

    Bought this Motherboard: MSI 975X Platinum Powerup Edition
    975X Platinum V.2(7246-020)
    I have a P4 CPU HT in it with 2 512mb sticks of DDR2 memory (533mhz).
    I am upgrading to a Core 2 Duo 6600 CPU which has a 1066mhz FSB
    What memory speed should I purchase to achieve the fastest bus speed without overclocking???
    I get confused as my current memory is 533 which I guess on a Pentium 4 with HT cuts the FSB speed in 1/2 to 266mhz.
    Any recommendations?
    Do I need to buy Dual Channel or can I just buy 2 sticks?
    Thank you
    Peter

    Quote from: /dot on 07-February-07, 15:46:41
    Great info again guys!
    I'll stay away from OCZ (I read it's more for overclockers).
    @DryHeat:
    I watched your sig, great setup! I'm planning for about the same setup (MSI 975x PUE, P180, C2D, ...). But will try a Scythe Ninja for CPU cooler and use an MSI graphic card (maybe 2 cards for 4 monitors in total).
    Is your setup silent or just quiet? Makes a big difference for me.
    What would you change now? And what is the most noisy component?
    Sorry for all the questions but I'm not an expert and by budget does not permit me from making any mistakes.
    The case fans create the most noise.  When they are all on "low" I an hardly hear them and have to shake the mouse to see if it's on, but on medium it sounds like a "standard" computer.  Not terrible, but not quite.  On high they are down-right loud.

  • Specification/Architectural question about EJBs and XML

    Hello,
    My problem is as follows: I would like for a session ejb to retrieve information from xml files (other that the ejb DDs of course...). I prefer the XML-file solution to the relational-database solution as it is more lightweight. (We haven't got the resources nor the skill to administrate a native xml database.) Am I allowed to read from the filesystem? What is the best architectural solution you would advise bearing in mind I need the information contained in the xml files to be available in java (in the session bean). Ideally I would drop xml files in a directory and they would automatically be parsed and taken into account by an ejb.
    I am available to provide more details if needed.
    Any clue welcome,
    Julien Martin.

    Hello,
    My problem is as follows: I would like for a session ejb to retrieve information from xml files (other that the ejb DDs of course...). I prefer the XML-file solution to the relational-database solution as it is more lightweight. (We haven't got the resources nor the skill to administrate a native xml database.) Am I allowed to read from the filesystem? What is the best architectural solution you would advise bearing in mind I need the information contained in the xml files to be available in java (in the session bean). Ideally I would drop xml files in a directory and they would automatically be parsed and taken into account by an ejb.
    I am available to provide more details if needed.
    Any clue welcome,
    Julien Martin.

  • Question about 3D and XML

    Hallo,
    I want to embed in a custom java Application, 3D visualizations that represents some data stored in xml form.
    Does any body knows if there is any existing opensource (java) API that uses XML to produce 3D visual graphs(any, ex. 3D balls,...)?
    Thanks

    I'm trying to put the data I get from the javabean into a file and read this file in the program I create the xml format. But I get an ClassCastException on the javabean class.
    Please help!!!*********Its URGENT***************

  • Question about javabeans and xml !!!

    Hi all,
    I created a java bean in which I will read data from the database and create a table of that data. Now I need to transform this data into xml format. Please can anyone give me some idea how to transform it.
    Thanks a lot.
    Jahnavi.

    I'm trying to put the data I get from the javabean into a file and read this file in the program I create the xml format. But I get an ClassCastException on the javabean class.
    Please help!!!*********Its URGENT***************

  • QUestion about Java and GC

    Hello, I have a question regarding the garbage collection in java
    When can GC be called upon a class?
    Right now, I have a linked list of entities which when an entity is removed, it simply removes the reference of that monster (thus meaning the monster is non-existent as far as the server knows), however, after removing/adding around 25k new entities, the memory usage does not seem to go down
    Here is the code to remove the entity
                Entity current = first;
                //check if there is a next monster
                Entity next = null;
                while (current.hasNext()) {
                    //if there is, look at the next monster, see if it's id is equal to this id
                    next = current.getNext();
                    if (next.getID() == id) {
                        //now, if the id is equal to the id we are suppose to remove, simply remove the reference from that monster
                        current.setNext(next.getNext());
                        next.finish();
                        next = null;
                        size--;
                        return true;
                    } else {
                        current = current.getNext();
                }The finish code, nulls any classes
        public void finish() {
            equip = null;
            next = null;
            location = null;
            name = null;
            parent = null;
        }Now, at around 25k entities (being removed, then added), it adds around 2mb , so it's getting quite bulky

    Naki wrote:
    Hello, I have a question regarding the garbage collection in java
    When can GC be called upon a class? When that class' classloader is GCed.
    I assume you meant on an object though, not on a class. An object is eligible for GC when it cannot be reached through any root reference in any thrad.
    The finish code, nulls any classesNo, it doesn't. It sets variables to null, not classes. The notion of "nulling a class" does not exist in Java. Also, that code is most likely unnecessary, though I haven't looked at the rest of you post that closely.

  • Question about EJB and Poject Management for a Company

    In my Company we have some problems with the management of Java Projects and
    EJB Projects. Alot of code is not reused but written again, cause noone manages it.
    Are there any programs or guides (guidelines) who can support us with these problems?
    How do you handle these problems?
    Thanks

    In my Company we have some problems with the
    management of Java Projects and
    EJB Projects. Alot of code is not reused but written
    again, cause noone manages it.
    Are there any programs or guides (guidelines) who can
    support us with these problems?
    How do you handle these problems?I guess you should take a look at core J2EE patterns during the design. :)
    http://java.sun.com/blueprints/corej2eepatterns/Patterns/index.html

  • Question about Java,XSLT and XML

    I am new to Java and XML. I'm not quite clear the relationship between Java,XSLT and XML.
    To exercise, I am going to write a Java program that makes embedded calls to an XSLT processor(XALAN), to produce results for several constrained transformations from a given XML document(x.xml) such as:
    1.Transform the x.xml (which satisfies d1.dtd) in such a way that it now conforms to the DTD d2.dtd. Output the resulting xx.xml document.
    2.query some information from the x.xml and then form an Html output.
    3.summary some information, do some statistics from the x.xml and then form an Html output.
    I don't konw which java classes and XSLT functions might be used.(Actually I don't know how/where to start).
    Can anyone give me some clue ?
    thanks a lot!

    You must provide XSLT stylesheeds to specify transformations (1), (2),
    and (3); let's call those stylesheets task1.xsl and so on.
    The following code will transform x.xml into xx.xml according to task1.xsl. It gives you an idea which packages and classes to use, but it doesn't teach you proper Java programming technics :)
    import java.io.File;
    import javax.xml.transform.*;
    import javax.xml.transform.stream.*;
    public class Test
        public static void main(String[] args) throws Exception
            TransformerFactory factory = TransformerFactory.newInstance();
            Source config = new StreamSource(new File("task1.xsl"));
            Transformer transformer = factory.newTransformer(config);
            Source source = new StreamSource(new File("x.xml"));
            Result result = new StreamResult(new File("xx.xml"));
            transformer.transform(source, result);
    }To read about XSLT, see:
    http://www.w3.org/TR/xslt
    there is a tutorial on using XSLT with Java:
    http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/xslt/index.html.

  • One question about Pricing and Conditions puzzle me for a long time!

    One question about Pricing and Conditions puzzle me for a long time.I take one example to explain my question:
    1-First,my sale order use pricing procedure RVAA01.
    2-Next,the pricing procedure RVAA01 have some condition type,such as EK01(Actual Costs),PR00(Price)....,and so on.
    3-Next,the condition type PR00 define the Access Sequences PR00 as it's Access Sequences.
    4-Next,the Access Sequences PR00 have some Condition tables,such as:
         table 118 : "Empties" Prices (Material-Dependent)
         table 5 : Customer/Material
         table 6 : Price List Type/Currency/Material
         table 4 : Material
    5-Next,I need to maintain Condition tables's Records.Such as the table 5(Customer/Material).I guess the sap would supply one screen for me to input the data of table 5.At this screen,the sap would ask me to select one table,such as table 5.When I select the table 5,the sap would go to the screen to let me input the data of table 5.But when I use the T-CODE VK31 or VK32 to maintain Condition tables's Record,I found it's total different from my guess:
    A-First,I can not found one place for me to open the table,such as table 5,to let me input the data?
    B-Second,For example,when I select the VK31->Discounts/Surcharges->By Customer/Material,the sap show the grid view at the right side.At the each line of the grid view,you need to select the Condition Type at the first field.And this make me confused very much.Why the sap need me to select one Condition Type but not the Condition table?To the normal logic,it ought not to select Condition table but not the Condition Type!
    Dear all,I'm a new one in sd.May be this is a very stupid question.But it did puzzle me for a long time.If any one can  explain this question in detail and let me understand the concept,I will appreciate him/her very much.Thank you.

    Hi,
    You said that you are using the T.codes VK31 or VK32.
    These transaction codes are used to enter condition records for standard condition types. As you can see a grid left side having all the standard condition types like price, discounts, taxes, frieghts.
    Pl check using T.code VK11 OR VK12 (change mode)
    Here you can enter the required condition type, in the intial screen. (like PR00, MWST, K004, K005 .....etc)
    After giving the condition type, press enter or click on Combinations icon on top of the screen. Then you can see all the condition tables which you maintained for that condition type. Like as you said table 118, table 5, table 6 and table 4.
    You can select any table and press enter, then you can go into the screen in which you have all the field cataglogues you maintained for that table. For example you selected combination of Customer/Material (table 5) then after you press enter then you can see customer field on top, and material fields.
    You can give all the required values and save the conditon record.
    Hope this is clear.
    REWARD IF HELPFUL.
    Regards,
    praveen

  • Question about Java's HttpServer: Threading? Backlog?

    Hello,
    I have two questions about Java's HttpServer (com.sun.net.httpserver). From the JavaDoc:
    >
    Management of threads can be done external to this object by providing a Executor object. If none is provided a default implementation is used.
    >
    How can I get information about the default implementation in 1.6.0_13? Do you know the behavior? From my observations, the default implementation uses no Threads, meaning every request is handled in the same Thread, this results in handling the requests to the HttpServer one after another.
    Is this right?
    The second question is about this, also from the JavaDoc:
    >
    When binding to an address and port number, the application can also specify an integer backlog parameter. This represents the maximum number of incoming TCP connections which the system will queue internally. [...]
    >
    When setting the backlog to -1, it uses the systems default backlog. How can I determine the systems default backlog? Can some lines of Java code reveal it (there is no getBeacklog() method)? Or is it up to the Operating System (we use Redhat Linux)?
    Thanks a lot for your help!
    Regards,
    Timo

    How can I determine the systems default backlog?You can't. There is no API for that even at the C level.
    Can some lines of Java code reveal itNo.
    Or is it up to the Operating System (we use Redhat Linux)?Yes. Linux provides a large default. It seems to be at least 50 on most platforms. This is not something you should be worrying about.

Maybe you are looking for

  • Shopping cart directly picking up the contract in the backend

    Hello All when a shopping cart is created in Classic scenario with a product category , the system is picking up the Contract directly from the backend. There is a contract maintained in the backend for the Product category that has been used in the

  • Yet another cant send mail issue

    Hi, I am going nuts here!! At home I have Comcast and my dotmac account works via port 25 no set up, perfect. I am now in another house with comcast and I cannot send anything. I telnetted port 25, nothing shows, so I contacted Comcast and they sent

  • HELP URGENT Inserting Text problem!

    Can anyone tell me where I have gone wrong with my INSERT statement? I want to add user input into my Access 2000 Database when clicking on the button. The code compiles with no errors and when I run it I can get the connection to the database but wh

  • How to jump Back and Forth?

    In C, we can use the "goto" keyword in combination with a label to jump back and forth to anywhere within a method. However, how do I implement this mechanism in Java?

  • Why are my iphoto scans so small?

    My scanned pictures are being imported to iphoto at a very small size (396x261 for example). I have an HP7310 all in one. Prior to upgrading to Mountain Lion, they were importing at 3 times that size. Any suggestions?