Having problem in displaying the word doc

Hi
i am searching for text in local files by taking as inpt.i am getting the result like in 1st line requested srtring
2nd line whre it occured in text and
3rd line with hyper link
when i click hyper link here i am able see the text file. so i have placed word doc too in my input.here i a getting first and 2nd line fine. when click the 3rd line (hyper link) it is not showing the out put properley.it is not displaying tables and screens.can we open the word file directley?
i am using code here like this
fis = new FileInputStream(aFile );
          byte[] contents = new byte[(int)aFile.length() ];
          fis.read( contents );
          String document = new String(contents, "UTF-8"); is this byte is problem here do i need to write diff code here
any help from u guys

HI thank u for u r reply
my real problem is i am doing search using uima.i have been sending the text files as input.and i am getting result here. with the same code i am trying it for word doc also.
here do i need to download this java 6 then use that desktop.open or can i use it directley. if u want i will post my entire code here

Similar Messages

  • Code for displaying the word doc file from servlet as response.

    Hi can any provide me code for displaying the word document form servlet as response.
    here i have file from file it should ale to read them and display it.
    i have written code but the proble here is in displaying.it ios as not showing as word.can any one help me here
    vijay

    Are we talking of HTTP?
    If yes, you'll need to provide an appropriate content-type and use the binary output stream.
    IE does not trust the content-type header but relies upon the file name, so set it too.
    response.setHeader( "Content-Disposition", "attachment; filename=" etc. Edited by: BIJ001 on Oct 22, 2007 10:10 AM

  • Having problem at displaying RSS Feed

    Hi,
    I am having problem in displaying the RSS feeds at the Global homepage applet in Single tenant Pod. Are there any special settings required/ or could there be any restrictions? I tested the same in one of the multi-tenant pods and is working fine at the same network. However facing issue in displaying the same at Single tenant pod.
    Sample feed that I am trying to check: http://feeds.bbci.co.uk/news/rss.xml

    It doesn't show me any error message, it just displays the blank screen. Waited until the complete page loads, however still the same blank screen. When I access the same link in different tab (Not in OnDemand), can see the screen. What could be the problem?

  • Having problems converting pdf to word. I'm not able to convert the file, what do I need to do?

    having problems converting pdf to word. I'm not able to convert the file, what do I need to do?

    Hi prates77,
    I'm sorry to hear that you're having trouble converting files. Are you receiving the conversion error regardless of the file that you try to convert? Does the error occur whether you use the web interface, or convert via Reader? And an odd question: how many files do you have stored in your Acrobat.com account? We have seen reports of this error when there are a large number of files stored in the root folder of your Acrobat.com account.
    I look forward to hearing back from you.
    Best,
    Sara

  • Display the Word or html doc  which is stored as blob intable and SearchApplication

    Hi All,
    I have two doubts and are as follows....
    1)Created a table name
    create table documents(id number,doc blob);
    I created a form based on the above table. I have two text boxes on the form, one is to enter the id and the other one is upload the document. The default button are insert,query,update,reset ....
    I inserted a word document into the table with id = 1. when i query the table with the id=1. the word document is not displayed whereas when i insert a .bmp file i am able to see the image when i query.
    How can i display the word document when i query the table. Please give me suggestion to do it.
    what is the method to do it...If at all if the document(blob) is a HTMl document..How can i display...
    2) I have to create a search application...
    A text Box: To enter a word
    Serch Button: On click, it should search the documents in the documents Table(as mentioned above)
    And should display the list of documents that matches the criteria.....On click of a result item(link) the doc or html should be displayed....
    Thanks in Advance...
    Sreedhar

    Oliver -
    TestStand does not have any hooks to allow a test system developer to override the internal searching for a file on disk. The only simple option that I see is to to query the database and download the latest sequences ahead of time. This is similar to a Source Code Control mechanism. Keep in mind that once an execution loads a sequence file, the file is typically not released until the last execution completes so you cannot load an updated copy of the sequence file while executing, especially the client sequence file.
    Scott Richardson
    National Instruments

  • After having shut down after installing updates, when I restarted and tried to open a word file, it started opening ALL the word docs and the only way I could stop it was by"force quit"  arted  and tried to open

    After having shut down after installing updates, when I restarted and tried to open a word doc, it started opening ALL the word docs and the only way I could stop it was by"force quit"  . This is REALLY annoying!!

    May be it is the Resume feature.
    System Preference > General > Number of recent items
    Uncheck the box next to      "Restore windows when quitting and re-opening apps".
    Best.

  • Problem in displaying the TaxRate columns .

    Hi Experts,
                            I am having a problem in displaying the 'TaxRate', in this Query there are some different Taxrate's columns  like-  ' 'Basic Excise Duty BED@10 %',  ' Education ces@2% ' , 'Secondary Education Cess @1%',    etc.   only  4 -5  tax's value should display  at a  time  and rest of  the TaxRate's  columns whose value is NULL  should not display.
    So, I want to display only those TaxRate's  columns whose  value  is not NULL  and If there is  no value for any taxrate's column  in the data, then it should Display only 'Excempt' column.
    This is my query...
    SELECT DISTINCT OSTA.Code , ORPC.DocNum AS 'Debit Note No.', ORPC.CardName AS 'Name', ORPC.CardCode AS 'code', ORPC.NumAtCard AS 'Supplier Ref.'  ,
                          RPC1.Dscription AS 'Description of Goods', ORPC.Address, RPC1.Quantity, RPC1.Price AS 'Rate', RPC1.LineTotal AS 'Amount', ORPC.DocDate,
                              (SELECT DISTINCT TaxRate
                                FROM          RPC4
                                WHERE      (staType = - 90) AND (StaCode = 'BED@10') AND (DocEntry = RPC1.DocEntry)) AS 'Basic Excise Duty BED@10 %',
                             (SELECT DISTINCT TaxRate
                                FROM          RPC4 AS RPC4_8
                                WHERE      (staType = - 60) AND (DocEntry = RPC1.DocEntry)) AS 'Education Cess @2%',
                             (SELECT DISTINCT TaxRate
                                FROM          RPC4 AS RPC4_7
                                WHERE      (staType = - 55) AND (DocEntry = RPC1.DocEntry)) AS 'Secondary Education Cess @1%',
                             (SELECT DISTINCT TaxRate
                                FROM          RPC4 AS RPC4_6
                                WHERE      (staType = 4) AND (StaCode = 'CST2') AND (DocEntry = RPC1.DocEntry)) AS 'Central Sales Tax(CST)',
                             (SELECT DISTINCT TaxRate
                                FROM          RPC4 AS RPC4_5
                                WHERE      (staType = 1) AND (StaCode = 'VAT4') AND (DocEntry = RPC1.DocEntry)) AS 'Input VAT@5%',
                              (SELECT DISTINCT TaxRate
                                FROM          RPC4 AS RPC4_4
                                WHERE      (staType = 1) AND (TaxRate = 12.500000) AND (StaCode = 'VAT12.5') AND (DocEntry = RPC1.DocEntry)) AS 'VAT12.5%',
                           (SELECT DISTINCT TaxRate
                                FROM          RPC4 AS RPC4_3
                                WHERE      (staType = 18) AND (StaCode = 'Add2') AND (DocEntry = RPC1.DocEntry)) AS 'ADD Tax 1%',
                                  (SELECT DISTINCT TaxRate
                                FROM          RPC4 AS RPC4_2
                                WHERE      (staType = 7) AND (DocEntry = RPC1.DocEntry)) AS 'Excempt'
    FROM         OSTA INNER JOIN
                          RPC4 AS RPC4_1 ON OSTA.Code = RPC4_1.StaCode CROSS JOIN
                          ORPC INNER JOIN
                          RPC1 ON ORPC.DocEntry = RPC1.DocEntry
    WHERE     (OSTA.Code IN ('BED@10','eCess 2%','HeCess 1%','CST')) AND (ORPC.CardCode = 'V00308') AND (ORPC.DocNum = '9220004')
    Kindly help me to solve this problem
    Regards
    Rahul

    Hi rahul,
    Try this:
    SELECT DISTINCT T0.DocNum AS 'Debit Note No.', T0.CardName AS 'Name', T0.CardCode AS 'code', T0.NumAtCard AS 'Supplier Ref.'
         ,T1.Dscription AS 'Description of Goods', T0.Address, T1.Quantity, T1.Price AS 'Rate', T1.LineTotal AS 'Amount', T0.DocDate,
         (SELECT DISTINCT ISNULL (SUM(RPC4.TaxRate),0)FROM RPC4 WHERE RPC4.StaType = -90 AND RPC4.DocEntry = T0.DocEntry) AS 'Basic Excise Duty BED@10 %',
         (SELECT DISTINCT ISNULL (SUM(RPC4.TaxRate),0) FROM RPC4 WHERE RPC4.StaType = -60 AND RPC4.DocEntry = T0.DocEntry) AS 'Education Cess @2%',
         (SELECT DISTINCT ISNULL (SUM(RPC4.TaxRate),0) FROM RPC4 WHERE RPC4.StaType = -55 AND RPC4.DocEntry = T0.DocEntry) AS 'Secondary Education Cess @1%',
         (SELECT DISTINCT ISNULL (SUM(RPC4.TaxRate),0) FROM RPC4 WHERE RPC4.StaType = 4  AND RPC4.StaCode = 'CST2' AND RPC4.DocEntry = T0.DocEntry) AS 'Central Sales Tax(CST)',
         (SELECT DISTINCT ISNULL (SUM(RPC4.TaxRate),0) FROM RPC4 WHERE RPC4.StaType = 1  AND RPC4.StaCode = 'VAT4'AND RPC4.DocEntry = T0.DocEntry) AS 'Input VAT@5%',
         (SELECT DISTINCT ISNULL (SUM(RPC4.TaxRate),0) FROM RPC4 WHERE RPC4.StaType = 1 AND RPC4.StaCode = 'VAT12.5'AND RPC4.DocEntry = T0.DocEntry) AS  'VAT12.5%',
         (SELECT DISTINCT ISNULL (SUM(RPC4.TaxRate),0) FROM RPC4 WHERE RPC4.StaType = 18 AND RPC4.StaCode = 'Add2'AND RPC4.DocEntry = T0.DocEntry) AS   'ADD Tax 1%',
         (SELECT DISTINCT ISNULL (SUM(RPC4.TaxRate),0) FROM RPC4 WHERE RPC4.StaType = 7 AND RPC4.DocEntry = T0.DocEntry) AS  'Excempt'
    FROM ORPC T0
         INNER JOIN RPC1 T1 ON T0.DocEntry = T1.DocEntry
    WHERE  (T0.CardCode = 'V00308') AND (T0.DocNum = '9220004')
    FOR BROWSE
    Thanks,
    Neetu

  • Problem in opening MS Word doc from CRM back-end.

    Hi All:
    I have a MS Word document stored in my CRM system which opens by passing a transaction number as input. When we try to preview the word
    doc it opens properly from back-end.
    But the real problem exists when i'm trying to open it from my web-dynpro thru java, it never opens in a correct format(i mean it never opens at all). When I stored it in local machine to open it from notepad, i could see all the junk data along with original text.
    If any one have done this successfully before, plz do let me know the way or send me the code sample to read word from webdynpro java. I've implemented with couple of options which didnt worked.
    Munna_SAP

    Hi All:
         I've solved it by my own and it opens the word document properly.
    Solution: I didnt looked at the r\3 end that how it was coded, i've changed my code in java to meet the requirement.
    Tnx,
    Munna_SAP

  • I am having problem while using ms word with anjal( OS X Lion 10.7.5 (11G63))

    i am having problem while using ms word with anjal  is not working properly but its working in facebook and other areas.i need and  its very important to using tamil fonts for my job.can anyone help me out from this problem.
    thanking you
    by
    moses

    Those who are knowledgable in this area (myself not among them) say that Word's support for Asian languages is faulty. The best word processor for that use is "Mellel."

  • I had an iphone 4 and when I downloaded the IOS7 started having problems. Gone the phone keypad, could not type more names of my contacts in the phone search. I decided to buy the iphone 5S and since downloaded the IOS7.1.2 the search of yo

    I had an iphone 4 and when I downloaded the IOS7 started having problems. Gone the phone keypad, could not type more names of my contacts in the phone search. I decided to buy the iphone 5S and since downloaded the IOS7.1.2 the search of your phone contacts it takes to open or write

    dedegodoy wrote:
    I decided to buy the iphone 5S and since downloaded the IOS7.1.2 the search of your phone contacts it takes to open or write
    What does that mean? What is your technical support question?

  • I really need someone to help me. I have been trying to figure out how to select a PDF document to convert to a Word doc. When I go to select a PDF file, all that shows up is the WORD docs. does not show ANY of my PDF files... Please help me figure out wh

    I really need someone to help me. I have been trying to figure out how to select a PDF document to convert to a Word doc. When I go to select a PDF file, all that shows up is the WORD docs. does not show ANY of my PDF files... Please help me figure out what is going on? We have it set on auto renewal so I know its not that we haven't renewed this subscription, because we pay automatically.

    Hi olivias,
    It sounds like there may be some confusion on your system about what application should be associated with PDF files. You can reset filename associations by following the steps in these articles (depending on your operating system):
    How to change the default application for a file type | Macworld
    http://windows.microsoft.com/en-us/windows/change-default-programs#1TC=windows-7
    Please let us know if you have additional questions.
    Best,
    Sara

  • Hi, so I keep having problems logging onto the iTunes store in iTunes and I get this error message: "iTunes could not connect to the iTunes Store. An unknown error occurred (0x80090318) Make sure your network connection is active and try again."

    Hi,
    So I keep having problems logging onto the iTunes store in iTunes where an error message pops up saying: "iTunes could not connect to the iTunes Store. An unknown error occurred (0x80090318) Make sure your network connection is active and try again."
    How do I fix this?

    Hey thatssoivi,
    If you are having an issue with being unable to connect to the iTunes store, I would suggest that you troubleshoot using the steps in this article - 
    iTunes for Windows: iTunes Store connection troubleshooting - Apple Support
    Thanks for using Apple Support Communities.
    Be well,
    Brett L 

  • Why can't I edit the Word doc I converted from a PDF?

    Why can't I edit the Word doc I converted from a PDF?
    Help! That is why I bought this software!

    Hi linda007,
    If you can't edit the file once it's converted to Word, it could be that the PDF was created from a scanned page, and then image text wasn't converted to searchable text. ExportPDF should perform Optical Character Recognition by default, but it can be disabled in Reader. Do you know whether OCR was disabled when you converted the page? If it wasn't, make sure that the correct language was selected for OCR. This option appears at the bottom of the ExportPDF panel in Reader, and in the Document Language (for Text Recognition) pop-up menu that appears after you select your file to convert in the ExportPDF online service.
    If everything seems to have been set correctly, and you still can edit the text, please try triple-clicking to select the text in Word. Did that do the trick?
    Best,
    Sara

  • Iam  gettin a problem in displaying the HTM file in filechooser please help

    Dear Sir,
    Iam working on swing in my project.In tha iam using file chooser Iam gettin problem in displaying the file of types HTM or HTML it taks if it is htm ot html . in filechooser below files of type will be there in that also its not displaying the files of types HTM or HTML. in the code i used
    filter.addExtension("HTML",True);
    but its not working please any body can help me in solving the problem . If possible send me the piece of code also il be very thankful to you. please ill be waiting for the reply.
    regards,
    surya

    this is what I did:    private void dateiNameHolen()
            // create FileChooser
            final JFileChooser pv_fileChooser = new JFileChooser();
            pv_fileChooser.addChoosableFileFilter(new HTMLFileFilter());
            pv_fileChooser.setSelectedFile(new File(iv_dateiTextField.getText()));
            // open chooser and get selected file
            if (pv_fileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {
                File lv_datei = pv_fileChooser.getSelectedFile();
                iv_dateiTextField.setText(lv_datei.getPath());
        }It uses my class HTMLFileFilter:import java.io.File;
    import javax.swing.*;
    import javax.swing.filechooser.*;
    public class HTMLFileFilter extends FileFilter {
        // accept all htm and html
        public boolean accept(File f)
            if (f.isDirectory()) {
                return true;
            String dateiname = f.getPath().toLowerCase();
              if (dateiname != null)
                if (dateiname.endsWith("htm") || dateiname.endsWith("html"))
                    return true;
                else
                    return false;
            return false;
        // description of this filter
        public String getDescription() {
            return "HTML-Dateien (*.htm, *.html)";
    }hope this helps
    koem

  • Customizing the word doc in SAP B1

    Dear all,
                I want to change the link in word doc template .
    regards
    kavitha S

    I already know how to edit the word doc.
    but in that custaccounts.doc
    i want to change the link fixed in the table

Maybe you are looking for

  • How to find out a skype ID from a text?

    Met someone today and gave them my number, but they are from another country so i guess they used skype to text me which i can't reply to because skype is retarded... anyways, is there any way to find out the skype name of the person who sent it? The

  • Reader 9.0 install problem

    I too am having problems with this install. The message is twofold: Network not supported; then it's looking for something called 'sfr.msi file'. I tried the windows cleanup suggestion, got another error from them saying " cannot find script engine f

  • Issue with TestStand 2010 or 2012 hanging on the first step after continuously running TestStand?

    I am having issues with a CVI test sequence hanging in TestStand 2010 & 2012.  Currently, the only way to resolve this is to exit/close TestStand.  Following this we must replace the entire project with a backup project.  This only occurs about once

  • I have deleted one query from production server

    some one have deleted one query from production server. i would like to know who has deleted that query. pls let me ASAP. regards raja

  • ACR update fails-"product not found"

    I have PSE 6/mac & LR.  I get an Adobe Updater notification of ACR 4.6 but when clicked to install, it comes back with error message essentially saying 'the product to be updated can't be found'.  It also says something about this being an update for