How to design a Java viewer to show MS Word

Hello,
I want to design a Java viewer to show MS Word document, and I don't know
how to start, or where I can find the resource for reference.
Anyone can help me?
Martin

Dear DrClap,
^ ^ Thanks.
Firstly, I think it's not difficult, but now I knew it's not easy.
I check Jakarta POI project, but unfortunately its sub-project HDF about Word
file format is just starting. So only can find is about Excel now.
Actually, I just want to show the document as like showing picture, and I don't
hope users to modify it. Do you have any other good suggestion.

Similar Messages

  • How to design a java program to java supported mobile phone

    I need to know how to design a java program to java supported mobile phone and how to install it on mobile phone? also i need to know how to create a ".jar" file, because my mobile phone is require '.jar' files. if anyone know please let me know.

    I need to know how to design a java program to java
    supported mobile phone and how to install it on
    mobile phone? also i need to know how to create a
    ".jar" file, because my mobile phone is require
    '.jar' files. if anyone know please let me know.http://java.sun.com/j2me/index.jsp
    http://java.sun.com/docs/books/tutorial/deployment/jar/index.html

  • How to create a tree view to show hierarchy

    Hi all,
    i am new in plugin development.i need help in creating a tree view to show hierarchy.i gone through sdk\paneltreeview example.but not getting clear idea how to create child node.and how to display it..i want to create a simple tree view which displays my custom data as root\child in hierarchy as i want.
    thanks..

    I did this in CS3 a few weeks ago...
    1. subclass NodeIDClass to create your node id class.
    2. subclass ITreeViewHierarchyAdapter to create the adapter
    3. subclass CTreeViewWidgetMgr
    4. in your .fr file, define two "Class"'es based on kTreeViewWidgetBoss (with Interface IID_ITREEVIEWWIDGETMGR and IID_ITREEVIEWHIERARCHYADAPTER) and kTreeNodeWidgetBoss.
    Btw, I put down "persistentlistui" in my note so I guess I looked at that sample instead of the paneltreeeview.
    Good luck.

  • How to use a Text View to show the current user

    Hi Experts,
    I am using a Text View to show the current logged on user.
    Also i need to retrieve the date of creation of proposal and show it as output parameter.
    I am using the following code but it is not working properly.
    Please help me out regarding the same.
    Method technicalDescription()
    //Attribute User to store user name
    IGPAttributeInfo user = output.addAttribute("USER", IGPAttributeInfo.BASE_STRING);
                user.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
    //Attribute date to store current system date           
    IGPAttributeInfo date = output.addAttribute("DATE", IGPAttributeInfo.BASE_DATE);
                date.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
    Method execute()
    //getting current system date
    Date currDate = new Date(System.currentTimeMillis());
              contextElement.setDate(currDate);
    //Retrieve Current User Details
    try {
    IWDClientUser user = WDClientUser.getCurrentUser();
    String firstName = user.getFirstName();
    String lastName = user.getLastName();          
    String userName = lastName + " " + firstName;
    contextElement.setUserName(userName);
    } catch (WDUMException e1) {
    // TODO Auto-generated catch block
    e1.printStackTrace();
    Method complete()
    output.setAttributeValue("USER", wdContext.currentContextElement().getUserName());
    output.setAttributeValue("Date", wdContext.currentContextElement().getDate());
    Thanks a lot.
    Cheers
    Gaurav Raghav

    There are a few ways, for example declare an IBOutlet for the text field and then use it with NSControl's stringValue: method (inherited by the NSTextField), or bind the value of the text field to a property, etc.  What have you got so far?

  • How to use a Text View to show the current user in WDJ

    Hi Experts,
    I am using a Text View to show the current logged on user.
    Also i need to retrieve the date of creation of proposal and show it as output parameter.
    I am using the following code but it is not working properly.
    Please help me out regarding the same.
    Method technicalDescription()
    //Attribute User to store user name
    IGPAttributeInfo user = output.addAttribute("USER", IGPAttributeInfo.BASE_STRING);
    user.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
    //Attribute date to store current system date
    IGPAttributeInfo date = output.addAttribute("DATE", IGPAttributeInfo.BASE_DATE);
    date.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
    Method execute()
    //getting current system date
    Date currDate = new Date(System.currentTimeMillis());
    contextElement.setDate(currDate);
    //Retrieve Current User Details
    try {
    IWDClientUser user = WDClientUser.getCurrentUser();
    String firstName = user.getFirstName();
    String lastName = user.getLastName();
    String userName = lastName + " " + firstName;
    contextElement.setUserName(userName);
    } catch (WDUMException e1) {
    // TODO Auto-generated catch block
    e1.printStackTrace();
    Method complete()
    output.setAttributeValue("USER", wdContext.currentContextElement().getUserName());
    output.setAttributeValue("Date", wdContext.currentContextElement().getDate());
    Thanks a lot.
    Cheers
    Gaurav Raghav

    You can use a text string as the reference.
    If you use the VISA Find Resource function, it will return an array of strings which you can index in your code, and store either the index, or store the string itself. You can even use strings like COM1 and COM2, assuming those ports are available.
    The challenge is when you move from one machine to another, where the serial ports may be different on the other machine.
    Message Edited by LabViewGuruWannabe on 01-07-2008 06:33 AM
    Message Edited by LabViewGuruWannabe on 01-07-2008 06:37 AM
    Attachments:
    VISA find.png ‏5 KB

  • How to design a Java-basedNetworkLayoutTool for specifying networktopology?

    hi,
    i had given a project which is a webbased project where the user can design their whole network topolgy.
    the technolgy is ultimately java only because it is web based.
    technologies are java,swing,xml.
    The GUI or front end should be designed in such a way that clients or end users can specify their whole network technology and can simulate it.
    The GUI components are:-
    1)Menu
    2)Dockable or Movable tool bar
    3)Tool bar should contain elements or components like(WAN,NODE,VR(virtua router),Frame Relay,UNI Directional,Bi Directional Links)
    4)A drawable area where the user can draw whole network using elements of the toolbar.
    5)designing property pages for all the elements like(for node(ipaddress,port),for Wan(some properties))
    i have to do this in just a few days.iam not getting any idea how to approach?so please any body give me a suggestion of how to approach?
    please also suggest me if i get any source code or samples or atleast articles on all related topics??
    please help me..
    regards
    varma

    Hehehe, it is nice with school assignments.
    Well, it is not easily solvable as a webproject since the interaction demanded is higher than could easily be provided by a webbrowser.
    Recomendations:
    Assess the requirements on your system. What you probably will find that to achive that sort of interaction, you will have to switch to one of the following technologies: DHTM+javascript, Flash or deratives or java applet/webstart. All have advantages and drawbacks. Since you are posting here, I presume you are planning to go for the applet/webstart approach.
    For the application:
    1) Go through the swing tutorial to familiarise yourself to the swing components.
    2) Read extra on LayoutManagers as you probably will be doing one of them if you want extra points. Otherwise a null-layout is usuable as well for your assignment.
    3) For your different sorts of nodes and their definitions, for extra points, read about visual-proxies on javaworld ( http://www.javaworld.com/javaworld/jw-07-1999/jw-07-toolbox.html ).
    4) Run to the store and buy anything that contains caffiene, guaruana or any other revitilasing content.
    5) Design the application in a nice CASE tool. Don't do any of the normally important sequence diagram because of the time constraints.
    6) Define a nice XML interface to be used by your application, based upon the requirements.
    7) Draw your initial UI design on paper. And, yes, I do mean paper. If you can't draw it roughly, you will never be able to implement it. Also, since drawing is a pain, the UI usually seem to end up being simplier and more understandably by the users.
    8) Code! I would start with the GUI and applet. The communication back to the webserver should be straigth enough and will not take so much time.
    9) Test! Why did you think you where finished already, you must have missed something.
    10) Deliver product, reap rewards.
    Regards,
    Peter Norell

  • How can I change the view in Show Page Source from one long line to a more readable view

    When using Develop --> Show Page Source in Safari 6.0.1 I get a view of the html that is just one long line. I can scroll along to the right but it is not very easy to use.
    It seems to me that when I first used this feature I had a formatted view, that is the text was broken into separate lines and was easier to read.
    But I think I clicked on something and it change to one line. I can't find a way to change it back.
    Is anyone familiar with this? Or can point me to more information about Show Page Source formatting?
    Thanks.

    Oh, I see the problem.
    The one long line view only occurs when I'm viewing a page locally on my own computer. (When I choose Show Page Source for any page on the internet the display is formatted normally.)
    So obviously if I want to see the code in my own files I can just go open them in the text editor. I used to use View Page Source (previous version of Safari) as a shortcut for a quick peek. If there is a solution to this formatting thing for local files I'd love to know it, otherwise I'll just put it on the you-can't-do-that-anymore list.

  • How can i transfer and view tv shows purchase on my iPad to my IMac?

    I have tv shows both downloaded and in the cloud on my Ipad. I want to watch them on thy Imac.
    How can I have these two devices share?

    If you purchased them, connect your iPad to your computer, open iTunes and go to File>Devices>Transfer Purchases.  This will transfer them to your iTunes library.

  • How to design a tree view

    I want to design a binary tree the nodes of the tree depends on database(Microsoft Access). This tree is shown in the web page. Help me please.

    Hello Ravi,
    Does this blog helps you?
    HTH,
       Horst

  • How to design a mutliple view's in SAP ui5 similiar to TabStrip.

    I have created two views both should be displayed in the below mentioned format
    view1   view2 (Similiar to tabstrip)
    But in my case view2 is displayed below the view1
    view1
    view2
    i have added my index.html file  and screenshot is available on attachment
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv='Content-Type' content='text/html;charset=UTF-8' />
    <script src="resources/sap-ui-core.js" id="sap-ui-bootstrap"
        data-sap-ui-libs="sap.ui.commons"
        data-sap-ui-theme="sap_goldreflection">
    </script>
    <!-- add sap.ui.table,sap.ui.ux3 and/or other libraries to 'data-sap-ui-libs' if required -->
    <script>
        sap.ui.localResources("mutipleview");
        var view = sap.ui.view({
            id : "idmultiple1",
            viewName : "mutipleview.multiple",
            type : sap.ui.core.mvc.ViewType.JS
        var view = sap.ui.view({
            id : "idmultiple",
            viewName : "mutipleview.anotherview",
            type : sap.ui.core.mvc.ViewType.JS
        view.placeAt("content");
        view.placeAt("content1");
    </script>
    </head>
    <body class="sapUiBody" role="application">
        <div id="content"></div>
        <div id="content1"></div>
    </body>
    </html>

    Hi Abdul,
    You can use Float CSS property in div tag to arrange the views in a single row. I mean you can do this,
    <body class="sapUiBody" role="application">
        <div id="content" style="float:left"></div>
        <div id="content1" style="float:left"></div>
    </body>
    Thanks & Regards,
    Vishwa

  • How to sync ipad to view tv show

    I'm home and would like to sync husband's ipad, who is away with it to view Le Tour de France daily.

    Welcome to the Apple Community.
    The Apple TV and iPad will need to be on the same network for AirPlay to work.

  • How do I get dreamweaver cs4 to show foreign word strings properly?

    Hi.  I'm trying to view a php file written in English but with strings of Korean words in dreamweaver cs4.  The Korean words look like gibberish.  How do I make dreamweaver show them correctly?

    Open Preferences from the Edit menu (Windows) or Dreamweaver menu (Mac), and select New Document. Set Default encoding to Korean, and make sure the checkbox labelled "Use when opening existing files that don't specify an encoding" is selected.
    The problem with doing that is that all your files will be stored using Korean encoding.
    The alternative is to open the file, and then select Modify > Page properties. In the Title/Encoding section, select Korean. You need to do this each time you open a file, but it preserves your default encoding for all other files.

  • How to design a template without Template Builder in Word 2007?

    How can i design a template in Word 2007 without Template Builder, since i am using Vista that does not support BI Publisher Desktop.
    Is it possible to desgin a template in Open Office ?

    Yes. It is possible. But the template would not look as clean.
    For your xml data, use direct tags in your template. like for field that appears in xmlp as <DATA>Value</DATA>, enter this in template - <?DATA?>. Also, for other tags, like for-each etc, u can write them directly, you can not preview it as such, but u may directly copy it to server and run there. It Will work.
    Regards
    Varun

  • How do design database object

    Please let me know how to designed table,index,views,sysnonyms,sequence
    1. What is considered to design those object from bussiness point of view and how it influnced it?
    2. What are the oracle paremeter need to be considered to design those object and how it benifit/degrade?
    3. Anything which you think it is important?
    4. Do we have any tool to do this JOB?
    Please help me understanding this.
    Thank you.

    Hi,
    go through the following link.It may be helpful to u.
    http://stanford.edu/dept/itss/docs/oracle/10g/appdev.101/b10799/adobjdes.htm
    Thank you

  • From a Technical Architect point of view, how to design a web application?

    Hi to all,
    I am writing this issue here because I this question is not related on how to program, but on how to design a web application. That is, this question is not related to how to program with the technologies in J2EE, but how to use them correctly to achieve a desired outcome.
    Basically I know how to develop a simple web application. I like to use SpringFramework with AcegiSecurity and Hibernate Framework to persist my data. I usually use JBoss to deploy my web applications, however I could easily use Tomcat or Jetty (Since I am not using EJB�s).
    However I have no idea on how to develop (or a better word would be �design�) a website which is divided into different modules.
    Usually when you develop a website, you have certain areas that are public, and other areas that are not. For example, a company would want anyone on the Internet to download information about the products they are selling, however they would only want their employees to download certain restricted information.
    Personally I try to categorise this scenario in to common words; Extranet and Intranet.
    But � (and here starts the confusion in my mind) should I treat these two as two projects, or as one project? The content to be displayed on the Extranet is much different then the content to be displayed on the Intranet and definitely clients should not be allowed to the Intranet.
    First approach would be to treat them as the same project. This would be perfect, since if the company (one day) decides to change the layout of the website, then the design would change for both the Intranet and the Extranet version. Also the system has a common login screen, that is I would only need to have employees to have a certain Role so that they have access to the intranet, while clients would not have a certain Role and thus they would not be allowed in. But what about performance and scalability? What if the Intranet and Extranet have to be deployed on the different Hardware!?
    The second approach is to threat them as two separate projects. To keep the same layout you just copy & paste the layout from one project to another. However we would not want to have two different databases to store our users, one for the employees and the other one for the clients. Therefore we would build a CAS server for authentication purposes. Both the Intranet and the Extranet would use the same CAS server to login however they could be deployed on different hardware. However what if we want to change the design. Do we really want to have to just copy and paste elements from one project to another? We all know how these things finish! �We do not have time for that � just change the Extranet and leave the Intranet as it is!�
    The third approach (and this is the one I like most) is to have a single project built into different WAR files. The common elements would be placed in all WAR files. However in development you would only need to change once and the effects would show in the different war files. The problem with this approach is that the project will be very big. Also, you will still need to define configuration files for each one of them (2 Web.config, 2 Spring-Servlet.config, 2 acegi-security.config, etc).
    Basically I would like something in the middle of approach 2 and approach 3! However I can identify what this approach is. Also I can not understand if there is even a better approach then these three! I always keep in mind that there can always be more then two modules (that is not only Intranet and Extranet).
    Anyways, it is already too long this post. Any comments are more then welcome and appreciated.
    Thanks & Regards,
    Sim085

    Hi to all,
    First of all thanks for the interest shown and for the replies. I do know what MVC or Multi-layered design is and I develop all my websites in that way.
    Basically I have read a lot of books about Domain-Driven Design. I divide my web applications into 4 layers. The first layer is the presentation layer. Then I have the Facade layer and after that I have a Service layer (Sometimes I join these two together if the web application is small enough). Finally I have the Data Access layer where lately I use Hibernate to persist my object in the database.
    I do not have problems to understand how layering a web application works and why it is required. My problem is how to design and develop web applications with different concerns that use same resources. Let me give an example:
    Imagine a Supermarket. The owner of the Supermarket want to sell products from the website, however he wants to also be able to insert new products from the website itself. This means that we have two different websites that make use of the same resources.
    The first website is for the Supermarket clients. The clients can create an account. Then they can view products and order them. From the above description we can see that in our domain model we will have definitely an object Account and an object Product (I am not mentioning all of them). In the Data Access layer we will have repository objects that will be used to persist the Account and Products.
    The second website is for the Supermarket employees. The employees still need to have an account. Also there is still a product object. This means that Account and Product objects are common to the two websites.
    Also important to mention is the style (CSS). The Supermarket owner would like to have the same style for both websites.
    Now I would not like to just copy & paste the objects and elements that are common to both websites into the two different projects since this would mean that I have to always repeat the changes I make in one website, inside the other one.
    Having a single WAR file with both websites is not an option either because I would not like to have to deploy both websites on the same server because of performance and scalability issues.
    Basically so far I have tought of putting the common elements in a Jar File which would be found on the two different servers. However I am not sure if this is the best approach.
    As you can see my problem is not about layering. I know what layering is and agree with both of you on its importance.
    My question is: What is the best approach to have the same resources available for different websites? This includes Class Files, CSS Files, JavaScript Files, etc.
    Thanks & Regards,
    Sim085

Maybe you are looking for

  • InDesign CS3 JS

    I admit I am simply trying to understand JS for InDesign. I have written this small script to try out a few things: or(a = 0; a < NumberOfPages; a++) apage = app.activeDocument.pages.item(a); $.writeln("The page: ", apage.name); myPageItems = apage.p

  • How do I connect?

    I have just purchsed a Pavilion p7-1226s PC, and I'm wondering how I connect to my dial-up internet service, and to my very old HP Laser Jet 4V printer? This question was solved. View Solution.

  • Java graph library

    Hi all, I am developing a web application.In one of the jsp pages i need to display a tree with some nodes. Is there any library (preferrably open source) which will take inputs and construct a tree and capable of creating a image file. Hashin

  • Cta 2.0.1 - wireless enviroment?

    Hi, currently we are implementing a NAC (framework) lab on a customer. So far, with dot1x and cta 2.0.1 we have no problems. My issue is we started testing with wireless, cta is no good for it, we started using cisco secure services client, but someh

  • UWC + time zone + system time zone

    Hello, I have messaging server 7 running on solaris 10 x86. when I change my system time zone, the time stamp related to messages received and sent is getting changed, regardless of the time zone set in UWC (global setting). Is it a correct behaviour