Converting Excel Output to Text File (Text(MS-DOS)) in oracle 6i

I have been able to save Excel Output to Text File (.txt) using OLE. However, I need to save it as TEXT(MS-DOS) specifically due to certain formatting issues.
Kindly suggest some solution.
I need it very urgently.
Thanks!

Hello Sandy,
does this mean that you created an Excel file using OLE and named it *.txt?
And what do you mean by saving as TEXT(MS-DOS)? A csv file?
Regards
Marcus

Similar Messages

  • How to display text file text in aTextArea component

    Hello
    ive managed to display the text file text in the console, but i want it to show up in the textArea component i have in a frame,
    it seems to display the last character . in the text area
    wheres the rest of the text...this was a lot easier in VB.NET
    any help would be much appreciated
    heres my code...
    private void openButtonActionPerformed(java.awt.event.ActionEvent evt)  {//GEN-FIRST:event_openButtonActionPerformed
    // TODO add your handling code here:
         FileNameExtensionFilter filter = new FileNameExtensionFilter("Text Files Only","txt");
         editorFileChooser.setFileFilter(filter);
         int returnVal = editorFileChooser.showOpenDialog(this);
         if (returnVal == JFileChooser.APPROVE_OPTION){
              System.out.println("You chose to open this file: " + editorFileChooser.getSelectedFile().getName());
              openFileName = editorFileChooser.getSelectedFile().getName();
              openFile = new File(openFileName);
              try {
                   this.readFile = new FileReader(openFile);
              } catch (FileNotFoundException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              int inputCharacters;
         try {
         while ((inputCharacters = readFile.read()) != -1){
              System.out.print((char)inputCharacters);
              char[]CHARAARAY = {(char)inputCharacters};
              s3 = new String(CHARAARAY );
              this.editorTextArea.setLineWrap(true);
         this.editorTextArea.setText(s3.toString());
         readFile.close();
         catch(IOException ex){
              System.out.println();
    }//GEN-LAST:event_openButtonActionPerformed

    >
    wheres the rest of the text...this was a lot easier in VB.NET>If you only need to code for Windows, use VB. For code that works on computers, learn the Java idioms, especially with regard to X-plat issues with Files.
    >
    heres my code...>That was a code snippet. You will get better chance of help around these parts, if you can prepare an SSCCE. The code below* is an SSCCE.
    There was a basic problem in the logic of that code, that resulted in the assumption (by the JRE) that every file the user attempted to load, was located in the 'current directory'. It was fixed by abandoning the String based file name of the file, and instead setting openFile to the selected file in the chooser. I also demolished the loading code by replacing the JTextArea with a JEditorPane (much easier).
    * Altered code;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.filechooser.*;
    import java.io.*;
    class TestLoadFile extends JPanel {
      JFileChooser editorFileChooser;
      File openFile;
      JEditorPane editorTextArea;
      TestLoadFile() {
        super(new BorderLayout());
        editorTextArea = new JEditorPane();
        add(
          new JScrollPane(editorTextArea),
          BorderLayout.CENTER );
        JButton load = new JButton("Load File");
        load.addActionListener( new ActionListener() {
            public void actionPerformed(ActionEvent ae) {
              openButtonActionPerformed(ae);
        add( load, BorderLayout.SOUTH );
        editorFileChooser = new JFileChooser();
      public static void main(String[] args) {
        TestLoadFile tlf = new TestLoadFile();
        JOptionPane.showMessageDialog(null, tlf);
      Dimension preferredSize = new Dimension(600,400);
      public Dimension getPreferredSize() {
        return preferredSize;
      private void openButtonActionPerformed(java.awt.event.ActionEvent evt)  {
        //GEN-FIRST:event_openButtonActionPerformed
      // TODO add your handling code here:
        FileNameExtensionFilter filter = new
          FileNameExtensionFilter("Text Files Only","txt");
        editorFileChooser.setFileFilter(filter);
        int returnVal = editorFileChooser.showOpenDialog(this);
        if (returnVal == JFileChooser.APPROVE_OPTION){
          System.out.println("You chose to open this file: " +
            editorFileChooser.getSelectedFile().getName());
          // wrong!
          //openFileName = editorFileChooser.getSelectedFile().getName();
          //openFile = new File(openFileName);
          // right!
          openFile = editorFileChooser.getSelectedFile();
          try {
            editorTextArea.setPage(openFile.toURI().toURL());
          } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
      }//GEN-LAST:event_openButtonActionPerfor
    }

  • Exporting text files in earlier editions of Oracle

    I'm not familiar with Oracle, but hope someone might be able to help me out. I have filed an access to information request with a public agency for data that I'm told is in an Oracle database.
    I have asked for the information to be released in flat text files but was told by the agency that they have an old edition (I'm not sure which one) and cannot export the information in that format as a result. As part of conditions for releasing any data to me, certain fields in their database will have to be severed to strip out personal information etc.
    The agency says it can only provide the data in pdf, which I don't believe I will be able to use.
    I'm wondering if this sounds like a valid argument - if there are earlier versions of Oracle that cannot export raw data in the format I requested. Or are there add-ons or aspects of each edition of Oracle that should make the severing and export possible?
    Thanks for any help you're able to provide...

    Any version of Oracle going back at least into the 1980s has the ability to output text files while simultaneously stripping out confidential/personal data.
    Not one of them is capable of producing that output as a .PDF file.
    Keep in mind that the people you are talking to may not know enough about Oracle to spell it correctly. If they need help they can contact me.
    Refer them to:
    SPOOL and UTL_FILE.

  • Regarding Excel output of XML file

    When i am trying to open the output of XML file. I am getting the below dialogue boxes before report getting openend. Can any one help to resolve this issue.
    Dailogue box 1
    Open XML
    Please select how you would like to open this file:
    As a XML table
    As a read-onlyworkbook
    Use the XML Source task pane
    Dialogue box 2
    Microsoft office excel
    The Specified XML Source does not refer to a schema. Excel will create a schemabased on the XML source data.

    plz see
    How To View / Open Concurrent Requests With The Excel Application [ID 377424.1]
    How to Control the Name and the Application that Opens the Concurrent Request Output File on the Client? [ID 316752.1]
    How to Setup The Report Output to Different Viewer Types in Oracle Applications [ID 184375.1]
    http://sairamgoudmalla.blogspot.com/2009/04/concurrent-program-output-in-ms-excel.html

  • Fetching a text file into CLOB column in Oracle!

    Can anyone please help me to find out how to fetch a text file present on the network on to the CLOB column in Oracle 8i?
    I dont want to use BFILE for this.
    Please help its urgent.
    Love
    Prathab
    null

    Prathab,
    This is an example from the SQL package doc for DBMS_LOB, that reads from a bfile, and store in a lob.
    CREATE OR REPLACE PROCEDURE Example_l2f IS
    lobd BLOB;
    fils BFILE := BFILENAME('SOME_DIR_OBJ','some_file');
    amt INTEGER := 4000;
    BEGIN
    SELECT b_lob INTO lobd FROM lob_table WHERE key_value = 42 FOR UPDATE;
    dbms_lob.fileopen(fils, dbms_lob.file_readonly);
    dbms_lob.loadfromfile(lobd, fils, amt);
    COMMIT;
    dbms_lob.fileclose(fils);
    END;
    Hope it helps.
    Eric
    null

  • Loading Data From a Text File Through an Application into Oracle

    Hi There,
    I have a web application that allows the user to upload a text file. This file is then processed by my application. Each line in the file is a new row I need to insert into my table.
    Currently, I batch 200 updates together and insert them into the DB.
    For about 3 million records this is taking much longer than I would like it to.
    Any suggestions for optimization?
    thanks.

    I put here a simplest demo (file has whitespace)
    I think it may help to start.
    --Structure of your file test1.dat (put in your directory)
    a1 b1
    a2 b2
    a3 b3
    a4 b4
    CREATE OR REPLACE DIRECTORY
    test_dir AS
    'C:\oraclexe\DIR' --or anywhere
    --GRANT READ, WRITE ON DIRECTORY  test_dir TO your_user
    --external table:
    DROP TABLE test_ext
    CREATE     TABLE test_ext
       (col1      CHAR(5),
        col2      CHAR(5)
    ORGANIZATION EXTERNAL
       (TYPE oracle_loader
        DEFAULT DIRECTORY test_dir
        ACCESS PARAMETERS
          (RECORDS DELIMITED BY NEWLINE
           FIELDS TERMINATED BY WHITESPACE)
           LOCATION ('test1.dat')
    SELECT * FROM test_ext
    COL1  COL2 
    a1    b1   
    a2    b2   
    a3    b3   
    a4    b4   
    Insert into another_table(another_col1, another_col2) (select col1, col2 from test_ext) if needed                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Not able to convert spool output to PDF file properly

    Hi guys,
    i have got spool which contains russian characters which needs to be converted to PDF file.
    Note: ******Assuming user enters only one spool in S_Spool*******
    I am using following code to do this:
    **---- Get Spool ID Details from TSP01
    select * from tsp01 into table i_tsp01 where rqident eq s_spool.
    **---- Sort Table in Ascending order based on Spool Id
    sort i_tsp01 by rqident.
    **---- Get information about Multiple spools
    loop at i_tsp01.
    **---- Get Multiple Spool information
      call function 'RSPO_RETURN_SPOOLJOB'
        exporting
          rqident              = i_tsp01-rqident
        tables
          buffer               = i_spool_table
        exceptions
          no_such_job          = 1
          job_contains_no_data = 2
          selection_empty      = 3
          no_permission        = 4
          can_not_access       = 5
          read_error           = 6
          type_no_match        = 7
          others               = 8.
      if sy-subrc = 0.
      endif.
    **---- Get the Last line index (Number of Lines)
      describe table i_spool_table lines v_lines.
      i_otf[] = i_spool_table[].
    endloop.
    **---- Convert the OTF information to PDF.
    call function 'CONVERT_OTF_2_PDF'
      importing
        bin_filesize           = v_size
      tables
        otf                    = i_otf
        doctab_archive         = i_doc
        lines                  = i_pdf
      exceptions
        err_conv_not_possible  = 1
        err_otf_mc_noendmarker = 2
        others                 = 3.
    if sy-subrc <> 0.
      message i002(sy) with 'Cannot convert to PDF, exiting....'.
      leave program.
    endif.
    DATA: v_numbytes TYPE i.
    DATA : v_return1(128).
      CONCATENATE 'C:\' 'F_spool' '.pdf' INTO v_return1.
      CONDENSE v_return1.
      CALL FUNCTION 'WS_DOWNLOAD'
           EXPORTING
                bin_filesize = v_size
                filename     = v_return1
                filetype     = 'BIN'
             IMPORTING
                  filelength = v_numbytes
             TABLES
                data_tab     = i_pdf
         EXCEPTIONS
           file_open_error               = 1
           file_write_error              = 2
           invalid_filesize              = 3
           invalid_type                  = 4
           no_batch                      = 5
           unknown_error                 = 6
           invalid_table_width           = 7
           gui_refuse_filetransfer       = 8
           customer_error                = 9
           OTHERS                        = 10 .
      IF sy-subrc NE 0.
        EXIT.
      ENDIF.
    i have already tried standard pgm : RSTXPDFT4. But it does not work.
    Suitable answers will be rewarded.
    Thanks,
    GURU

    Hi Guru,
    Use FM 'CONVERT_ABAPSPOOLJOB_2_PDF'.
    Refer this code:
    CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
           EXPORTING
                src_spoolid              = gd_spool_nr
                no_dialog                = c_no
                dst_device               = c_device
           IMPORTING
                pdf_bytecount            = gd_bytecount
           TABLES
                pdf                      = it_pdf_output
           EXCEPTIONS
                err_no_abap_spooljob     = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_destdevice       = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                OTHERS                   = 12.
      CHECK sy-subrc = 0.
    Transfer the 132-long strings to 255-long strings
      LOOP AT it_pdf_output.
        TRANSLATE it_pdf_output USING ' ~'.
        CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
      ENDLOOP.
      TRANSLATE gd_buffer USING '~ '.
      DO.
        it_mess_att = gd_buffer.
        APPEND it_mess_att.
        SHIFT gd_buffer LEFT BY 255 PLACES.
        IF gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    Regards,
    Hemant

  • Convert ALV output to PDF file , DXF and DWG format

    hi,
        How to convert a ALV report to PDF file, DXF and DWG format, I developed a ALV report which has to be converted as per the selections of above formats,
    Reward points for good & with example answers
    Thanks in advance
    RK

    Hello RK,
       Check this link. It has an example code for PDF Conversion.
    http://www.erpgenie.com/abap/code/abap51.htm
    Regards,
    Deepu.k

  • Loading multiple text files from a folder into oracle clob field

    I would like to load about 300 word documents into a oracle clob field with each document inserted as a separate record.
    I'm not quite sure how to go about doing this. Is there a utility in oracle that would do this?
    I've looked at sql loader and utl_file but both require the name of the file. Is there a way I can do this?
    If its not possible using just oracle, does anyone know how I can do this in combination with perl?
    Many Thanks
    Sam

    I have no experience with this, but pl see if MOS Doc 73787.1 (How to Read A Binary File into BLOB Using PL/SQL) can help.
    Essentially, you will have to write code to loop thru all 300 files to load them into the database
    HTH
    Srini

  • BI Publisher text file gettin unexpected DOS characters

    We just implemented R12 and seem to be getting unexpected DOS characters added to the end of each line : “^M” when we run a report using an etext template. Has anyone run into this?

    check the xmlp version you are in, and try to upgrade it to latest for R12 .
    unexpected DOS characters, appears only when the font/character is not understood.
    if this was due to upgrade then, better get the latest XMLp for r12 patched.

  • Need to send the text file using webservice

    Hi,
    I want to send the text file with contains data through oracle pl/sql using webservice. How can i handle this program?
    Kindly share with your details.
    Thanks in advance,
    Maran

    user8732035 wrote:
    I want to send the text file with contains data through oracle pl/sql using webservice. How can i handle this program?Web services supply XML structured data. Not text files.
    PL/SQL supports web services (XML output) and web procedures (text and binary output).
    You need to clarify your requirements.

  • How to use as3 in flash cs3 to add dynamic text from a text file into a flash file

    let me start out by saying today is my first day of scripting
    in flash.
    I have a text file text.txt
    it contains
    text1=hello world
    can someone please show me how to display this text in a
    flash file
    i have been searching for this for hours and there are
    solutions with flash mx and actionscript 2.0 but i would like to
    see how to do this in as3.
    just a simple frame that loads that file and displays it when
    you test run the program
    much apreciated
    RC

    I'm not up on AS3 yet, but many things are still similar. You
    need to use the LoadVars class to accomplish this, You can find
    information this in Flahs Help>Actionscript>Actionscript
    Language Reference>Actionscript classes.
    rem: the text.txt file and the text.fla file must be in the
    same directory.
    The code will look something like this:

  • How to generate a Text file from a Report

    Hi Friends,
    I need to generate a Text file foramat from my Report.My client is having a text file in a standard format.I need to Generate this Text file according to that text format.
    My requirement is For one production order there will be so many line items and for each line item based on its Quantity i need to generate serial numbers.
    For Ex for Production order 100 there r 3 line items.If 1st line item is of Quantity 20.I need to Generate 20 serial numbers for the 1st line item and the same for the remaining line items also.
    How can i proceed.I need to do dis based on the production order Number.
    In d selection screen i need to put the fields Production order Number and From:----
    To:----
      and u button Generate Text file.If I click on Generate Text file Text file should be generated.
    Thanks & Regards,
    Chitty.
    Edited by: chitty d on Mar 12, 2009 5:44 AM

    Hi,
    As far as i understand from your requirements, it like you need all the data item leve into a text file.
    You can fetch all the relevant data from variuos tables and then use  GUI_Download into a text file.

  • Text file to database

    hi all.
    please i need to read data seperated by coma from a text file and insert it in oracle database. how can i do this
    thanx

    Use this function (with Forms : TEXT_IO)
    (Change PIPE-delimited line with comma -delimited )
    create a FUNCTION in Program Unit
    FUNCTION TOKEN (LINEBUF IN OUT VARCHAR2) RETURN VARCHAR2 IS
    /* Returns the first token from the PIPE-delimited line */
    /* passed as linebuf. Linebuf then has that token stripped */
    /* so that subsequent calls return the second, third, etc. */
    FIRST_TOKEN VARCHAR2(70);
    PIPE_POS NUMBER;
    BEGIN
    PIPE_POS := INSTR(LINEBUF, ',');
    IF PIPE_POS = 0 THEN
    FIRST_TOKEN := LINEBUF;
    LINEBUF := null;
    ELSE
    FIRST_TOKEN := SUBSTR(LINEBUF, 1, PIPE_POS - 1);
    LINEBUF := SUBSTR(LINEBUF, PIPE_POS + 1);
    END IF;
    RETURN FIRST_TOKEN;
    END;
    Or If you are using 10gR2
    Look
    http://www.oracle.com/technology/products/forms/htdocs/webutil/webutil.htm
    or
    http://www.oracle.com/technology/sample_code/products/forms/index.html
    or Francois Degrelle Blog(There is a example)
    http://fdegrelle.over-blog.com/
    Regards

  • Text file over 200 external email addresses to add to outlook client - Can I import these email addresses to a Group Contact in outlook

    Can i import from a text file (text file only has smtp address) over 200 external email addresses to 2010 outlook client - specifically group contact. I did not see an import button on outlook client.  It would be very convenient if users can manipulate
    a text file which has all their external email addresses import these addresses to one group contact (mailing list)

    Hello Christopher,
    Please follow :-
    Step 1
    Open the text file in a text editor, such as Notepad. Each address should reside on a separate line or be separated by a semicolon. You can include multiple fields, such as names and addresses, by separating the fields by a space or tab.
    Step 2
    Press "Ctrl-A" to select all contacts on the list and then "Ctrl-C" to copy them.
    Step 3
    Click "New Items" from the main Outlook window, "More Items" and then "Contact Group."
    Step 4
    Click "Add Members" and then "From Address Book."
    Step 5
    Click the "Members" field, press "Ctrl-V" to paste the list of emails and click "OK."
    Step 6
    Click the "Name" field and type a name for the group.
    Step 7
    Click "Save & Close" to save your changes.
    Step 8
    Click "New Email" and type the name of the group in the "To" field. You can then compose and send email as usual.

Maybe you are looking for

  • My Photoshop has stopped working?

    I recently upgraded my Macbook Pro with 2,2 GHz Intel Core i7 to the new OS Yosemite 10.10. Next thing, Photoshop stops working. I have a Creative Suite CS5.1 with Illustrator, Indesign and Photoshop. Now InDesign and Illustrator still works fine...

  • Restored Ipod Nano 1st gen. and nike + icons do not appear in itunes 7.0.2

    I have a ipod nano 1st gen. I recently purchased the nike+ reciever and shoes and they worked great. I had not problems installing the latest version of ipod software version 1.3. On my latest run I got soaked and the nike+ receiver stopped working a

  • "Project is not under source control" Prompt.

    Hello, When I create a simple dictionary type, I get a prompt "Project is not under source control", with following message: Could not check package name. Do you want to continue ? Yes/NO This started happening today as I started working on a new DC.

  • Rotated transparent images Muse CC 2014 not compatible with IE8....  they all appear with a black box behind them.

    IE 8 is supposed to be supported by muse CC 2014 but its not in the case of rotated transparent images.. Did not have this problem in the previous version of Muse.  The code did not have progid:DXImageTransform.Microsoft.Matrix... now it does... Had

  • How can we show only display name with out showing email adress

    Guys Can you please tell me as to How we can show only display name with out showing email adress Thks&Rgds --Venkat