How to display Doc file format in the JEditPane?

At this time , JEditPane supports RTF and HTML file format ,but
Could anyone tell me how to display DOC file format using JEditPane
or other JTextComponents?
Thx a lot!
Caton

Hi,
there is no support for doc files (M$ Word?) in Java. You would have to create your own classes for that eventually subclassing JEditorPane, EditorKit, Document etc. As well you'd need your own reader for the doc format.
The problem I see with that however is that there is nothing such as thedoc file format. Microsoft just saves anything produced by MS Word into files ending with .doc. But, if there is anything such as a .doc file format, it changes more often than the weather in April.
Ulrich

Similar Messages

  • How to display the PPT, PDF, XL, DOC files with in the Windows store app?

    Hi,
    I would like to display the PPT, PDF, XL, DOC files with in the Windows store app? is there any controls provided by Microsoft to view these files with in the app?
    Or
    Any workaround to achieve the desired functionality?
    Kindly provide your inputs if any one has.
    Regards
    Prasad

    Hi Prasad,
    As I know currently there is no in-build functionality to display the PPT, XLS or DOC file directly on the Windows Store App, but you can always open these files by
    Launcher class
    However a good news is we can display PDF on Windows Store App by
    Windows.Data.Pdf class, see this for more information:
    https://code.msdn.microsoft.com/windowsapps/PDF-viewer-showcase-sample-39ced1e8/
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do we display .doc files or .pdf files inside flex containers like Panel or Canvas?

    How do we display .doc files or .pdf files inside flex containers like Panel or Canvas? (i am talking about Flex web browser application and NOT air)
    thanks in advance.

    Perhaps I was not clear...
    We have a Word doc.
    We want to create a PDF doc from it.
    We want, in Word/VBA, to add content (annotation/text note=sticky) to the PDF from Word via VBA macro.
    What is the best way to do this?
    1. Use a VBA call to the PDF doc to execute the AcroJS (we would pass the content, location, etc for the note in the call) - what is this VBA call that will execute AcroJS in an PDF doc?
    2. Use AIC OLE objects to access the PDF doc.
    From your last answer - it sounds like I cannot add the annotation to the PDF from the Word VBA macro - is that correct?
    Our content is already in the Word doc - We want to execute a macro in Word that will add content to the PDF doc  - can this not be done in Word?

  • How to display RTF file and .doc file in JTextPane

    How to display RTF file and .doc file in JTextPane??

    Duplicate post
    http://forum.java.sun.com/thread.jsp?forum=57&thread=567029&tstart=0&trange=30

  • How do you add a format to the "Date Picker Format Mask" available formats?

    Hi,
    When I select the Date Picker Format Mask or "Number / Date Format" they doen't have YYYYMMDD or others that may be desired...
    How do you add a format to the available formats?
    Thank you, Bill

    Bill - From the popup help text:
    If you need to create a Date Picker item, but the format you need does not appear in the Display As list, select Date Picker (use application format mask). When an application uses this type of date picker, the Application Express engine derives the date format from an item named PICK_DATE_FORMAT_MASK. You can populate this item in two ways:
    - By defining an application substitution string named PICK_DATE_FORMAT_MASK
    - By creating an application-level item named PICK_DATE_FORMAT_MASK
    See the doc for more details.
    Scott

  • How to attach doc file in email

    How to attach doc file in email

    Hi and Welcome to the Community!
    Since you have balance, and the issue is in your Work domain, you need to work with your server admins, as it's possible they are forbidding (via IT Policy) the ability to do as you desire.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to display Pdf file in iPad site

    Hi
    How to display Pdf file in web page which can able to view in iPad safari?
    Thanks,
    Arun

    You can't really.
    You need to use DHTML in the swf-wrapper HTML file, usually a
    division wrapped iFrame, and load the PDF into the iFrame as an
    overlay to the Flash.

  • How to open a file created at the server through form/report at client end

    How to open a file created at the server through form/report at client end
    Dear Sir/Madame,
    I am creating a exception report at the server-end using utl file utility. I want to display this report at the client end. A user doesn't have any access to server. Will u please write me the solution and oblige me.
    Thanks
    Rajesh Jain

    One way of doing this is to write a PL/SQL procedure that uses UTL_FILE to read the file and DBMS_OUTPUT to display the contents to the users.
    Cheers, APC

  • CG36 - Import report - No file format in the key file?

    Hi all,
    Transaction CG36: .Key files are successfully checked by u2018Check directoryu2019 in transaction CG36. The second step is the import process. The Import shows u2018greenu2019 successfully. But the Job description shows the following message:
    No file format in the key file test.key
    Number of errors: 0
    Job Finished:
    More details:
    No file format in the key file test.key
    Message no.C114
    Diagnosis:
    No entry for the document file type was found in the key file test.key
    System response:
    The report for the key file test.key is not imported.
    Procedure:
    Ensure that a document category is entered in the key file test.key
    TEST.KEY - Key file structure:
    CPN=TEST
    DTY=SDB
    SID=000000000492
    PRN=TEST PROD
    CTY=GB
    LAC=E
    STA=V
    DAT=19.03.1996
    FNA=1.PDF
    FTT=PDF
    During the report import (CG36, Dok-X), the workstation application is defined using the FFT entry in the key file, as displayed above, the key file as FTT=PDF defined correctly.
    We have processed the customizing settings which are required and described under: Report Import: Check Additional Settings (under EH&S u2013 Product Safety > Interfaces > Import and Export > Basis Settings for Import and Export).
    Is anybody familiar with the issue: No file format in the key file?
    What do I do wrong? Is the above Key file structure incorrect?
    Is configuration in SAP DMS required?
    Thank you in advance.
    Kind regards,
    Roy Derks

    Hello Roy
    my assumption would be: there is a typing error in the key file. If the content of the key files is like what you have published you must use in the key file
    FFT=PDF
    and not
    FTT=PDF.
    No further information is necessary and the other data seems to be perfect.
    With best regards
    C.B.
    PS: if necessary my be you could check DMS customizing. By standard EH&S implemenation a document type "IBD" should be there whiich is used for e.g. pdf file.
    PPS: I have no idea why the reimport check does not show up this issue.
    Edited by: Christoph Bergemann on Apr 8, 2010 8:49 PM
    Edited by: Christoph Bergemann on Apr 8, 2010 8:50 PM
    Edited by: Christoph Bergemann on Apr 8, 2010 8:54 PM

  • How to upload pdf file format in unix file directory?

    how to upload pdf file format in unix file directory?

    Hi Karthikeyan,
    If you have PDF internal table with you, You can follow the below method to upload into Unix directory.
        DATA:file_path TYPE char100 VALUE '/usr/sap/tmp/rep_out.PDF'.
        OPEN DATASET file_path FOR OUTPUT IN BINARY MODE.
        IF sy-subrc EQ 0.
          LOOP AT it_pdf.
            TRANSFER it_pdf TO file_path.
          ENDLOOP.
        ENDIF.
        CLOSE DATASET file_path.
    Thanks
    Venkat.O

  • How convert pdf,xls file format into swf

    Hi friends
                   i am making a tool for wducation site and there i need to convert doc xls and pdf file in swf in runtime and show that in container with cropping and panning functionality.so i do it for doc file format but having no idea how to convert .pdf file format and .xls file format into swf.So please guide me how to do it.
    Thanks And Regards
        Vineet Osho

    QuickTime cannot do this of iteslf: you need to add Flip4Mac:
    http://www.telestream.net/flip4mac-wmv/overview.htm

  • How to display flash file in adf pages

    how to display flash file in adf pages need help

    Thanks all,
    It is resolved.
    the code i am using to display a flash is below.
    <f:verbatim>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version
    =10,0,0,0" width="300" height="300" id="11gR1_aniH_grey" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="false" />
    <param name="wmode" value="transparent" />
    <param name="movie" value="mx2004demo.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#4d5c64" />     
    <embed src="../Images/mx2004demo.swf" quality="high" width="300" height="300" name="mx2004demo.swf" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false"
    type="application/x-shockwave-flash" wmode="transparent"
    pluginspage="http://www.adobe.com/go/getflashplayer" />
         </object>
    </f:verbatim>

  • How to display XSL file to ASPX in dreamweaver

    Hi,
    Just wondering how to display XSL file in ASPX page?
    I normally do it in ASP page by using server behaviour XSLT transformation and bind it to ASP page and this works very well.
    Now I am trying to use the same method and using ASPX page this time but this time there is no option from server behaviour where I can bind it to my ASPX.
    Can someone help or perhaps let me know where I can find the information how to do it?
    Thanks,
    Rush O

    You mean you want to see the XML source?
    You need to replace the characters '<' and '&' with corresponding entities '&lt;' and '&amp;'. You can use replaceAll, but do the ampersands first.
    Then I suggest you probably want to put them in a <PRE> block.

  • How to call DOC file using web.show_documents

    Hi friends ,
    If I use the built-ins web.show_documents for open the *.doc file
    I am getting the following error
    ORA-06550: line 5, column 2:
    PLS-00201: identifier 'README.DOC' must be declared
    ORA-06550: line 5, column 2:
    PL/SQL: Statement ignored
    DAD name: WebDB
    PROCEDURE : readme.doc
    URL : http://132.148.160.3:80/WebDB/readme.doc?
    PARAMETERS :
    ===========
    ENVIRONMENT:
    ============
    SERVER_PORT=80
    SERVER_SOFTWARE=Oracle WebDb Listener 2.1
    SERVER_NAME=132.148.160.3
    GATEWAY_INTERFACE=CGI/1.1
    SERVER_PROTOCOL=HTTP/1.0
    REMOTE_HOST=132.148.160.251
    REMOTE_ADDR=132.148.160.251
    REQUEST_METHOD=GET
    QUERY_STRING=
    SCRIPT_NAME=
    PATH_INFO=/WebDB/readme.doc
    HTTP_ACCEPT=*/*
    HTTP_ACCEPT_LANGUAGE=en-us
    HTTP_ACCEPT_ENCODING=gzip, deflate
    HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)
    HTTP_HOST=132.148.160.3
    HTTP_CONNECTION=Keep-Alive
    Please advice How to call Doc file in web.
    Thanx
    null

    The syntax to execute web.show_document:
    web.show_document('http://server_ip_or_server_name/virtual_path/filename.doc')
    The virtual path has been defined in Apache (if you run on web with Apache) or has been defined in Internet Inoformation Server (if you are runing with Internet Information Server.)
    null

  • Mac OS X 1073.  I also run 2008 MS Office. I am recently unable to open doc files.  Is the fault with Lion or Mackeeper?

    I run a Mac OS X 1073.  I also run 2008 MS Office.  I am recently unable to open doc files.  Is the new Lion or Mackeeper stopping me?

    Briartor wrote:
    Is the new Lion or Mackeeper stopping me?
    Not sure, but MacKeeper is trash and could be the source of it, among any other problems you may be having.  I suggest you uninstall it immediatley: http://applehelpwriter.com/2011/09/21/how-to-uninstall-mackeeper-malware/

Maybe you are looking for