XML to XLS

DECLARE
   xsldoc    XMLTYPE
      := xmltype (
            '<?xml version="1.0" encoding="iso-8859-15"?>
<xsl:stylesheet version="1.0" 
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 xmlns="urn:schemas-microsoft-com:office:spreadsheet" 
 xmlns:o="urn:schemas-microsoft-com:office:office" 
 xmlns:x="urn:schemas-microsoft-com:office:excel" 
 xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet">
 <xsl:output method="xml" version="1.0" encoding="iso-8859-15" indent="no"/>
 <xsl:template match="/">
  <xsl:processing-instruction name="mso-application">progid="Excel.Sheet"</xsl:processing-instruction>
  <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" 
            xmlns:o="urn:schemas-microsoft-com:office:office" 
            xmlns:x="urn:schemas-microsoft-com:office:excel" 
            xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" 
            xmlns:html="http://www.w3.org/TR/REC-html40">
   <Styles>
    <Style ss:ID="h">
     <Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/>
    </Style>
   </Styles>
   <xsl:apply-templates/>
  </Workbook>
 </xsl:template>
 <xsl:template match="ROWSET">
  <Worksheet ss:Name="{@CONSTANT}">
   <Table>
    <Row>
     <xsl:for-each select="ROW[1]/*">
      <Cell ss:StyleID="h">
       <Data ss:Type="String">
        <xsl:value-of select="translate(local-name(), ''_'', '' '')"/>
       </Data>
      </Cell>
     </xsl:for-each>
    </Row>
    <xsl:apply-templates/>
   </Table>
   <x:WorksheetOptions>
    <x:FrozenNoSplit/>
    <x:SplitHorizontal>1</x:SplitHorizontal>
    <x:TopRowBottomPane>1</x:TopRowBottomPane>
    <x:ActivePane>2</x:ActivePane>
    <xsl:if test="@COLOR">
     <x:TabColorIndex><xsl:value-of select="@COLOR"/></x:TabColorIndex>
    </xsl:if>
   </x:WorksheetOptions>
  </Worksheet>
 </xsl:template>
 <xsl:template match="ROW">
  <Row>
   <xsl:apply-templates/>
  </Row>
 </xsl:template>
 <xsl:template match="ROW/*">
  <Cell>
   <Data ss:Type="String">
    <xsl:value-of select="."/>
   </Data>
  </Cell>
 </xsl:template>
</xsl:stylesheet>');

   xmldoc    CLOB;
   xmldoc1   CLOB;
BEGIN
     SELECT XMLTRANSFORM (
               XMLELEMENT (
                  "ROOT",
                  XMLAGG (
                     XMLELEMENT (
                        "ROWSET",
                        xmlattributes (1 AS "CONSTANT"),
                        XMLAGG (
                           XMLELEMENT ("ROW",
                                       XMLELEMENT ("ID", A),
                                       XMLELEMENT ("Job", 1)))))),
               xsldoc).getclobval ()
       INTO xmldoc
       FROM (SELECT 1 A FROM DUAL
             UNION ALL
             SELECT 2 FROM DUAL)
   GROUP BY 1;


   DBMS_XSLPROCESSOR.clob2file (xmldoc,
                                'DIR',
                                'tst.xls',
                                NLS_CHARSET_ID ('UTF8'));


     SELECT XMLTRANSFORM (
               XMLELEMENT (
                  "ROOT",
                  XMLAGG (
                     XMLELEMENT (
                        "ROWSET",
                        xmlattributes (1 AS "CONSTANT"),
                        XMLAGG (
                           XMLELEMENT ("ROW",
                                       XMLELEMENT ("ID", A),
                                       XMLELEMENT ("Job", 1)))))),
               xsldoc).getclobval ()
       INTO xmldoc
       FROM (SELECT 3 A FROM DUAL
             UNION ALL
             SELECT 4 FROM DUAL)
   GROUP BY 1;



   DBMS_XSLPROCESSOR.clob2file (xmldoc,
                                'DIR',
                                'tst.xls',
                                NLS_CHARSET_ID ('UTF8'));
END;
How to go below output in a spreadsheet?

Job ID

1 1
2 1

Job ID

1 of 3
4 1

time to enter

A job

1 of 3
4 1

This will do what you want, but I suggest you try to understand how it works first:

DECLARE

  xsldoc  XMLType := xmltype(
'
 
 
  progid="Excel.Sheet"
  
   
    
   
   
    
    
'); xmldoc1 XMLType; xmldoc2 XMLType; xmldoc CLOB; BEGIN -- 1st query SELECT XMLElement("ROWSET", XMLAgg ( XMLElement ("ROW", XMLElement ("Employee_No", e.empno), XMLElement ("Employee_Name", e.ename), XMLElement ("Job", e.job) ) ) ) INTO xmldoc1 FROM scott.emp e ; -- 2nd query SELECT XMLElement("ROWSET", XMLAgg( XMLElement("ROW", XMLElement("Department_No", d.deptno), XMLElement("Department_Name", d.dname) ) ) ) INTO xmldoc2 FROM scott.dept d ; -- Transformation SELECT XMLTransform( XMLElement("ROOT", XMLAttributes('My Sheet Name' as "wsname"), XMLConcat(xmldoc1, xmldoc2) ), xsldoc ).getClobVal() INTO xmldoc FROM dual; DBMS_XSLPROCESSOR.clob2file(xmldoc, 'TEST_DIR', 'test.xml', nls_charset_id('AL32UTF8')); END; /

Tags: Database

Similar Questions

  • Export data from the table

    Hello. Is it possible to export data from a table in Oracle using SQL Loader? If Yes, can you tell a good examples?

    Hello

    Hello. Is it possible to export data from a table in Oracle using SQL Loader?

    No, with SQL * Loader, you can load data from external files into tables not export.

    coil c:\temp\empdata.txt
    sqlplus abc.sql (assumes that abc.sql runs select * from emp)
    spool off

    It cannot work like this, because the declaration of the COIL is not recognized outside the SQL * Plus the term.

    But, you can include the statement of the COIL in abc.sql like this:

    spool c:\temp\empdata.txt
    select * from emp;
    spool off
    

    Then, you just have to run the SQL script as follows:

    sqlplus  @abc.sql 
    

    However, I advise you to use Oracle SQL Developer, this is a free tool and with it you can export a Table in several types of format (html, xml, csv, xls,...).

    Please find attached a link to this tool:

    http://www.Oracle.com/technetwork/developer-tools/SQL-Developer/Overview/index.html

    Hope this helps.
    Best regards
    Jean Valentine

  • Slides from Captivate export notes

    The notes section under each slide Captivate in my project corresponds to the script for the audio of this slide.

    I need to send these notes/script to someone who doesn't have a Captivate, so that they can translate my notes/script.

    I can publish the project as a word document and send them, but before I do that I was wondering if there is a smarter solution available (xml, html, xls, etc)?

    Noel

    Captivate v4

    That is right. You will need to re - import the XML file into Captivate using the file-> import-> XML option.

  • I can't comment total or statistics?

    I have a document that has about 3 500 comment on a dozen of editors.  Is there a way to get an accurate count by the examiner, or even a total? I don't see the comment summaries.

    The only place where I saw a total is when I'm followed by a review, but I can't find a way to get a review that is not followed.

    If Acrobat cannot do this directly, is there a way to the list of comments of a .fdf file or convert it into xml or .xls?  I was able to a count of one, and it would be useful to have for other purposes.

    Thank you

    Phil

    Forty-two,
    try67 is (as usual) on the money.
    Yes, you want to run the task with Acrobat JavaScript.
    As I do not work with PDFs commented much I forgot a gem that may be what you are looking for.

    Visit
    http://www.Adobe.com/devnet/Acrobat/?view=documentation
    Scroll to the bottom of the page. Acrobat 8 > others
    Download (PDF, 282 K) batch sequences
    Download batchseq.zip, extract the files in sequence.
    You want to "Comments to file.sequ delimited by tabs.

    (most of the time the example sequences work in Acrobat 9)

    Note: Using the batch sequence is limited to the professional version of Acrobat.

    In XP - copy to:
    C:\Documents and Settings\\Application Data\Adobe\Acrobat\8.0\Sequences
    In Vista - copy to:
    / AppData/Roaming/Adobe/Acrobat //Sequences

    Open Acrobat.
    Select Advanced > Document processing > batch processing
    The batch sequence dialog opens; you will see "Comments to delimited file.
    Prior to use, close the batch sequence dialog box.
    Select Advanced > Document processing > JavaScript debugger
    Type "delete global.startBatch" (without the quotes).
    Press ENTER.
    Return to the batch sequence dialog box.
    Select "Comments to delimited file. Click the execution sequence. Click OK. Find and select a PDF file with comments.
    Click Select.

    A *.tmp file appears in Acrobat - only page is empty.
    This save in PDF format. Click the attachments (trombone).
    "mySummary.xls" is attached. Open it & save it to your HARD drive.

    This look it over to see if it could be something that you can use.

    Do not look on what is discussed in the file 'batch_sequences.pdf '.

    Be well...

  • Need help to use InputStream on my code

    Hello world

    I'm working on JDev11g U2 with ADFRC

    I use af:inputFile to download read my file. to do this, I'm getting my InputStream files on af valueChangeListener: inputFile.

    Now for the first time when I click on a button to read the content of this IS then it works fine. I press the same button again without changing my af file: InputFile, I'm getting InputStream as null, coz it closes to the EOF.

    Now the problem is I cannot reopen, cannot make a clone or can not use (int) mark with this...

    So I used a method of apache POI POIFSFileSystem.createNonClosingInputStream (InputStream is) wrapper to wrap my IS.

    According to them, it should really solve my problem, but it does not work...
    InputStream wrappedStream = POIFSFileSystem.createNonClosingInputStream(is); <-------- IS read here
    HSSFWorkbook wb = new HSSFWorkbook(wrappedStream);
    is.reset(); <-------- getting null here as i already read above
    doSomethingElse(is);
    now, tell me how can I implement this code too. Once I read my IS, it evaluates to null. so, how I reset it.

    Second way I did that convert my IS as a String so that I can wear for any number. usage. Coz, I use my IS to convert my file to XML, CSV, XLS to XML

    by using this method:
        public static String convertInputStreamToString(InputStream is) throws Exception {
            BufferedReader reader = new BufferedReader(new InputStreamReader(is));
            StringBuilder sb = new StringBuilder();
            String line = null;
            while ((line = reader.readLine()) != null) {
                sb.append(line + "\n");
            }
            is.close();
            return sb.toString();
        }
    so in the case of CSV and XML, it's way to work, but in the case of XLS, I do not hear from the converted string.

    I use this method to retrieve my IS of the String-
    for XML - 
                InputStream useIS =
                            new ByteArrayInputStream(inputStream.getBytes("UTF-8"));
    
    for CSV - (inputStream is String of my IS)
                BufferedReader csvReader;
                csvReader = new BufferedReader(new InputStreamReader(new ByteArrayInputStream(inputStream.getBytes("UTF-8"))));
    
    for XLS - 
                POIFSFileSystem myFileSystem =
                    new POIFSFileSystem(new ByteArrayInputStream(inputStream.getBytes("UTF-8")));
                //InputStream inStr = new ByteArrayInputStream(inputStream.getBytes("UTF-8"));
                HSSFWorkbook workbook = new HSSFWorkbook(myFileSystem);
    Can now someone help me to find the right way to use my IS again and again.

    Thank you
    FIZZZ...

    OK, the problem is that you cannot reset the stream. So when the POI class does not help, you're out of luck.
    I don't get you second statement that you are not allowed to create temporary files. It is a normal procedure. Think of a file with a size of > 100Meg. This file can be processed in memory. The only chance you have is to put in a temporary file and use it.
    If you use File.createTempFile (...) the file is created in the tmp folder. Delete it after that you don't need any longer.

    Another way to handle this is to put the file intpo a blob in the comic book and read from there. It is more work for you to do, but he does not object in the file system.

    Timo

  • Model is Excel XLS to XML Publisher - it supported?

    Hi, I created under the model to test several model of sheet in workbook (file is good, it opens in Internet Explorer without error). When I tried to download a model I get error, no matter what option of XSL, I chose:

    "The assets.xsl of the downloaded file is not valid. The file must be in the format XSL. »

    These XSL Excel models are supported in XML Publisher? We are not on BI Publisher and it seems that the old version is very limited in this area.


    "" < xsl: stylesheet version = "1.0" xmlns = "" urn: schemas-microsoft - com:office:spreadsheet "xmlns: xsl ="http://www.w3.org/1999/XSL/Transform"xmlns: msxsl =" urn: schemas-microsoft-com: XSLT "xmlns: user =" "urn: my-scripts" xmlns:o = "urn: schemas-microsoft-com" xmlns: x = "" urn: schemas-microsoft-com: excel "xmlns:ss =" urn: schemas-microsoft - com:office:spreadsheet ">"
    < xsl: output method = "xml" encoding = "utf - 8" Indent = "yes" media-type="application/vnd.ms-excel"/ >
    < xsl: template match = "/" >
    "" < workbook xmlns = "" urn: schemas-microsoft - com:office:spreadsheet "xmlns:o =" urn: schemas-microsoft-com "xmlns: x =" "urn: schemas-microsoft-com: excel" xmlns:ss = "urn: schemas-microsoft - com:office:spreadsheet" xmlns:html = "http://www.w3.org/TR/REC-html40" >
    < ss:Styles >
    < ss:Style ss:ID = 'Default' ss:Name = 'Normal' >
    < ss: make ss:Color = ss:Size 'black' = '12' ss: "BOLD" = "1" ss:FontName = "Arial" / >
    < / ss:Style >
    < ss:Style ss:ID 'x 1' = >
    < ss: do ss:Color = 'black' = ss:Size '11' ss:FontName = 'Arial' / >
    < / ss:Style >
    < / ss:Styles >
    < xsl: select apply-templates = "EMPLOYEES" / >
    < / workbook >
    < / xsl: template >
    < xsl: template match = "EMPLOYEES" >
    < worksheet ss:Name = "Active" >
    < table x: FullColumns = "1" x: FullRows = "1" >
    < row >
    < cell >
    < ss:Type data = "String" > number of resource < / data >
    < / cell >
    < cell >
    < ss:Type data = "String" > Description < / data >
    < / cell >
    < cell >
    < ss:Type data = "String" > category segments < / data >
    < / cell >
    < cell >
    < ss:Type data = "String" > description of the category < / data >
    < / cell >
    < cell >
    < ss:Type data = "String" > manufacturer name < / data >
    < / cell >
    < cell >
    < ss:Type data = "String" > tag number < / data >
    < / cell >
    < cell >
    < ss:Type data = "String" > serial number < / data >
    < / cell >
    < cell >
    < ss:Type data = "String" > model number < / data >
    < / cell >
    < / row >
    "< xsl: for each select=".//G_ASSETS ">
    < row >
    < ss:StyleID of cells = 'x 1' >
    < ss:Type data = "String" >
    (< xsl: value-of select="(.//ASSET_NUMBER) [1]" / > "
    < / data >
    < / cell >
    < ss:StyleID of cells = 'x 1' >
    < ss:Type data = "String" >
    (< xsl: value-of select="(.//DESCRIPTION) [1]" / > "
    < / data >
    < / cell >
    < ss:StyleID of cells = 'x 1' >
    < ss:Type data = "String" >
    (< xsl: value-of select="(.//CATEGORY_SEGMENTS) [1]" / > "
    < / data >
    < / cell >
    < ss:StyleID of cells = 'x 1' >
    < ss:Type data = "String" >
    (< xsl: value-of select="(.//CATEGORY_DESC) [1]" / > "
    < / data >
    < / cell >
    < ss:StyleID of cells = 'x 1' >
    < ss:Type data = "String" >
    (< xsl: value-of select="(.//MANUFACTURER_NAME) [1]" / > "
    < / data >
    < / cell >
    < ss:StyleID of cells = 'x 1' >
    < ss:Type data = "String" >
    (< xsl: value-of select="(.//TAG_NUMBER) [1]" / > "
    < / data >
    < / cell >
    < ss:StyleID of cells = 'x 1' >
    < ss:Type data = "String" >
    (< xsl: value-of select="(.//SERIAL_NUMBER) [1]" / > "
    < / data >
    < / cell >
    < ss:StyleID of cells = 'x 1' >
    < ss:Type data = "String" >
    (< xsl: value-of select="(.//MODEL_NUMBER) [1]" / > "
    < / data >
    < / cell >
    < / row >
    < / xsl: foreach >
    < /table >
    < / worksheet >
    < worksheet ss:Name = "Bills" >
    < table x: FullColumns = "1" x: FullRows = "1" >
    < row >
    < cell >
    < ss:Type data = "String" > Bill Asset < / data >
    < / cell >
    < cell >
    < ss:Type data = "String" > invoice number < / data >
    < / cell >
    < cell >
    < ss:Type data = "String" > line invoice number < / data >
    < / cell >
    < cell >
    < ss:Type data = "String" > Description < / data >
    < / cell >
    < cell >
    < ss:Type data = "String" > Segment1 < / data >
    < / cell >
    < cell >
    < ss:Type data = "String" > name of the salesperson < / data >
    < / cell >
    < cell >
    < ss:Type data = "String" > PONumber < / data >
    < / cell >
    < / row >
    "< xsl: for each select=".//G_INVOICE ">
    < row >
    < ss:StyleID of cells = 'x 1' >
    < ss:Type data = "String" >
    (< xsl: value-of select="(.//ASSET_ID_INV) [1]" / > "
    < / data >
    < / cell >
    < ss:StyleID of cells = 'x 1' >
    < ss:Type data = "String" >
    (< xsl: value-of select="(.//INVOICE_NUMBER) [1]" / > "
    < / data >
    < / cell >
    < ss:StyleID of cells = 'x 1' >
    < ss:Type data = "String" >
    (< xsl: value-of select="(.//AP_DISTRIBUTION_LINE_NUMB) [1]" / > "
    < / data >
    < / cell >
    < ss:StyleID of cells = 'x 1' >
    < ss:Type data = "String" >
    (< xsl: value-of select="(.//DESCRIPTION2) [1]" / > "
    < / data >
    < / cell >
    < ss:StyleID of cells = 'x 1' >
    < ss:Type data = "String" >
    (< xsl: value-of select="(.//SEGMENT1) [1]" / > "
    < / data >
    < / cell >
    < ss:StyleID of cells = 'x 1' >
    < ss:Type data = "String" >
    (< xsl: value-of select="(.//VENDOR_NAME) [1]" / > "
    < / data >
    < / cell >
    < ss:StyleID of cells = 'x 1' >
    < ss:Type data = "String" >
    (< xsl: value-of select="(.//PO_NUMBER) [1]" / > "
    < / data >
    < / cell >
    < / row >
    < / xsl: foreach >
    < /table >
    < / worksheet >
    < / xsl: template >
    < / xsl: stylesheet >

    Just to be sure
    What happens if you try my sample model, especially the syntax of select datagroup and the syntax of the value
    It gives the same error?

  • Cannot display xml export in figures

    I use a third-party software (ASC time) and regularly need to export

    data into spreadsheets to work with it. Hourly CSA has the possibility

    to export data in XML format but I'm not able to open this file in

    Numbers app. The exported file opens in the editor Safari or text only, which is

    of no use. Can anyone help? I recently spent MS based laptop computer

    in mac probook and he was quite disappointed for me to spend

    hours of searching for the solution instead of doing the work.

    From this page , I understand that it is possible to export hourly CSA in XLS format.  If this is the case, then try using the format XLS, not XLM.  Numbers can open most of the .xls files.

    SG

  • XLS to html

    The report xml with the expand.xls format has the feature we're looking for. It allows the development and reduction of the results and have not only expanded the default cases.

    We want to check the results of the tests in a standalone, not as a XML report HTML format that requires a .xls file. I noticed that teststand generates a temporary html file to the XML file. This file is deleted when the report is closed in teststand.

    Is it possible to have the HTML file generated from the XML / XLS to persist and be registered under the score report? I think I can be lack just a report somewhere option.

    I assume you mean actually XSL not XLS (it's a worksheet ). This temporary report is generated by the sequence editor, not the TestStand engine. If you're always going to run through this specific IO, you could add a step in your process template to copy it somewhere else. Otherwise, you need to add your own code to perform the conversion yourself; I think that the sequence editor uses the MSXML package, which shouldn't be too much thought to the interface with.

  • Horizontal.XML report stylesheet

    How the indentation of the table can be stopped? In the xls stylesheet Horizontal global variable: var gIndentTables = false //did together the value of the variable from true to false, and even then the tables are indented.

    Looks like the indentation is working with indentation of the sequence file. In computer.seq the steps under if/else is indented. Is there a way to disable the indenation?

    Indentation cannot be disabled. you need to change the xml routine that performs the generation of reports.

  • can we do complex arithmetic in xml and access in labview?

    Hello

    I'm using LabVIEW 8.5. I did 1 project how far I used Excel to perform complex arithmetic and then read results

    Thanks to labview. I'm just curious about Xml. It can be used for what purpose? What is a good alternative for excel? because I read on the internet

    that the execution of xml is faster than the .doc and .xls files?  Can we use as database for labview application?

    Help, please

    Thank you

    Gerard

    Transport as in a format for transmitting data from one PC to another or one application to another.

    Excel is a spreadsheet.  It stores its data in a strictly binary file with the extension .xls format.  The latest applications of MS Office can also store their data in a text based XML file format and have extensions such as .xlsx.

    XML is just a data storage format, it has nothing to do with the calculations.  LabVIEW can make calculations as complicated as Excel.  I would say it is complicated even more features that the application MS Excel does not.

    Why are you concerned an XML file?  Instead of comparing apples and oranges (i.e. formats of files of applications), please tell us what kind of calculations you are trying to do.  The calculations have absolutely nothing to do with the file formats.

  • that means xml, when I try to set up an analysis of the image years ago, I get the message that there are on this scan xml elements and if I save it, elments of xml will be cleared. What is

    When I bring up some old pictures on my computer, it comes like a scan, when I opened the scan he says he has xml elements, which, if I save it, the xml elements will be deleted, what are xml elements

    The normal definition of xml is the Extensible Markup Language and is the most used in the web development. There is no logical reason why scans contain xml in their breast.

    All files have an extension that is used by Windows to identify what program to use to open the file. Word uses .doc or .docx format, Excel .xls or .xlsx, Adobe uses .pdf etc.

    Right-click on one of the files and select Properties, in the general tab, it displays the type of file and its extension.

    You are referring to 'initials pvt' but pvt isn't a common file extension and is used by a couple of applications, but have nothing to do with analysis or graphics.

    Up to what you did what in fact do a copy files (copy the directory as a whole) and let the originals intact.

    Although Word works with graphics files which is not normally the native program to use, can you explain the steps that you use to open the files.

  • Convert .xls in .csv file using pl/sql or any other method (oracle 9i)

    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64 bit Production

    With partitioning, OLAP and Oracle Data Mining options

    Release 9.2.0.8.0 - Production jserver

    10.1.2.0.2 generator

    ORACLE Server Release 10.1.0.4.2

    Oracle 10.1.2.0.2 procedure generator

    Oracle ORACLE PL/SQL V10.1.0.4.2 - Production

    Oracle 10.1.0.4.0 Production CORE

    Integration Services 10.1.2.0.2 tools Oracle

    Space common tools Oracle 10.1.2.0.2

    Oracle Toolkit 2 for 32-bit Windows, 10.1.2.0.2 platforms

    Resource object 10.1.2.0.2 store

    Oracle Help 10.1.2.0.2

    Oracle Sqlmgr 10.1.2.0.2

    Query Oracle 10.1.2.0.2 - Production Designer

    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)

    Oracle ZRC 10.1.2.0.2

    Oracle XML Developers Kit 10.1.0.4.2 - Production

    Virtual graphics system Oracle 10.1.2.0.2

    Image of Oracle 10.1.2.0.2

    Widget media Oracle 10.1.2.0.2

    The GUI utility 10.1.2.0.2 tools Oracle

    I had seen a very old post of 2009.

    Convert .xls in .csv file using pl/sql

    I know that it s a long time but just wanted to know if there is a way to convert excel .csv.

    I have a directory say 'F:\purple_top\ '. I'll get the .xls file in this directory. I need to change to .csv and tables load external oracle. Any ideas or advance coding on it since 2009 so far?

    A few other options might be:

    • Java code, which can be used from within Oracle, which makes use of utility libraries (e.g. Aspose.Cells) open source (for example Apache POI) or "save under" CSV, or read the source cells and their output to a CSV file.
    • COM Automation, using available open source (for example, JACOB or j-interop) or commercial libraries, which can automate Excel to open a XLS file and "Save as" a CSV file. In addition, Oracle has a feature of COM Automation (available since version 8 but abandoned after Oracle 11g). I have successfully used this read (non-macro-enabled) Excel files in PL/SQL.
    • Other approaches using Perl or PHP can be found by googling 'convert xls to csv.

    Gerard

  • Failed to retrieve input or output XML for a BP

    Hello

    Unfier 10.1 running.  Logged as administrator. After the opening of a company under uDesigner/Business process, select a BP.  In the menu select integration.  When we try to recover the input or output XML, we get an empty document of 0 bytes.  The entry CSV Template shows to the menu option and XLS document with data.

    Anyone encountered this?

    Thank you

    Rudy

    Solved.

    I logged in as a user with Admin privileges, then changed to user mode Admin open the workspace under uDesigner and company I can export documents of integration with success.

  • XML editor integration with OFA for several display objects

    Dear all,

    I have a problem in the integration of XML with the OAF Page.

    I'm generating the xml using the XMLNode class tags. And I was succeed for object a point of view. But now I am faced with the question with two display objects (which is not dependent on each other).

    Are there any entries you its urgent.

    Thanks in advance,

    Kind regards

    Anil Kumar

    Dear all,

    I found the solution for this... Please find the Code.

    The controller code:

    If (pageContext.getParameter ("generateRpt")! = null)

    {

    String po_number = (String) pageContext.getTransactionValue ("PO_NUM");

    System.out.println ("The PO number s i-" + po_number);

    Serializable params [] = {fromDate, to this day, docNo, pendingType, reqNo, po_number}; //

    Class paramType [] =

    {String.class, String.class, String.class, String.class,

    String.Class, String.Class}; //

    DataObject sessionDictionary = pageContext.getNamedDataObject("_SessionParameters");

    HttpServletResponse response = (HttpServletResponse) sessionDictionary.selectValue (null,

    "HttpServletResponse");

    Try

    {

    System.out.println ("Inisde generate button step 2");

    ServletOutputStream os = response.getOutputStream ();

    If (ReportFormat1! = null &!) ReportFormat1.equals(""))

    {

    If (ReportFormat1.equals ('PDF'))

    {

    System.out.println ("Inisde generate button step 3");

    contentDisposition = "attachment; filename = quote Report.pdf";

    response.setHeader ("Content-Disposition", contentDisposition);

    response.setContentType("application/pdf");

    BT = TemplateHelper.OUTPUT_TYPE_PDF;

    }

    If (ReportFormat1.equals ("XLS"))

    {

    System.out.println ("Inisde generate button step 4");

    contentDisposition = "attachment; filename = quote Report.xls";

    response.setHeader ("Content-Disposition", contentDisposition);

    response.setContentType("application/vnd.ms-excel");

    BT = TemplateHelper.OUTPUT_TYPE_EXCEL;

    }

    }

    ByteArrayOutputStream OutputStream = new ByteArrayOutputStream();

    Byte = bufutf''. getBytes();

    outputStream.write (bufutf);

    XMLNode xmlNode [] = new XMLNode [10];

    xmlNode = (XMLNode []) am.invokeMethod ("executeReportPO", params, paramType);

    System.out.println ("IN CO");

    xmlNode [1] .print (outputStream);

    xmlNode [2] .print (outputStream);

    Byte = bufutf1''. getBytes();

    outputStream.write (bufutf1);

    System.out.println ("Testying-" + outputStream.toString ());

    ByteArrayInputStream InputStream = new ByteArrayInputStream (outputStream.toByteArray ());

    ByteArrayOutputStream fileData = new ByteArrayOutputStream();

    TemplateHelper.processTemplate (((OADBTransactionImpl) pageContext.getApplicationModule (webBean) .getOADBTransaction ()) .getAppsContext (),)

    APP_NAME, TEMPLATE_CODE,

    ((OADBTransactionImpl) pageContext.getApplicationModule (webBean) .getOADBTransaction ()) .getUserLocale () .getLanguage ();

    ((OADBTransactionImpl) pageContext.getApplicationModule (webBean) .getOADBTransaction ()) .getUserLocale () .getCountry ();

    inputStream, bt, null, fileData);

    System.out.println ("inside the template code");

    Byte [] b = fileData.toByteArray ();

    response.setContentLength (b.length);

    OS. Write (b, 0, b.length);

    OS. Flush();

    OS. Close();

    System.out.println ("inside the model code1");

    }

    catch (System.Exception e)

    {

    throw new OAException (e.getMessage ());

    }

    }

    GOT the Code:

    public XMLNode [] executeReportPO (String fromDate, String to date,

    String docNo, String pendingType,

    String reqNo, String ponum)

    {

    System.out.println ("Generate Inisde AM step 1 button" + ponum);

    ByteArrayOutputStream OutputStream = new ByteArrayOutputStream();

    ItemPendingPoVOImpl vo = getItemPendingPoVO1();

    Vo1 PoDetailVOImpl = getPoDetailVO1();

    Try

    {

    vo.setWhereClauseParams (null);

    vo.setWhereClauseParam (0, docNo);

    vo.setWhereClauseParam (1, reqNo);

    vo.setWhereClauseParam (2, fromDate);

    vo.setWhereClauseParam (3 so far);

    vo.setWhereClauseParam (4, pendingType);

    vo.executeQuery ();

    System.out.println ("Request"- + vo.getQuery ());

    String whereconditionpo = "PONO ='" + ponum + "'";

    VO1.setWhereClause (whereconditionpo);

    VO1. ExecuteQuery();

    System.out.println ("query 2--->" + vo1.getQuery ());

    System.out.println ("Inisde generate button step 2 in AM");

    } catch (System.Exception e)

    {

    throw new OAException (e.getMessage ());

    }

    s int = vo.getRowCount ();

    System.out.println ("number of rows affected" + s);

    XMLNode NodeList = new XMLNode [] [10];

    Try

    {

    NodeList [1] = ((XMLNode) vo.writeXML (4, XMLInterface.XML_OPT_ALL_ROWS));

    ((XMLNode) vo.writeXML (4,)

    XMLInterface.XML_OPT_ALL_ROWS)) .print (outputStream);

    System.out.println (OutputStream.ToString ());

    System.out.println ("Inisde generate button step 1");

    NodeList [2] = ((XMLNode) vo1.writeXML (4, XMLInterface.XML_OPT_ALL_ROWS));

    ((XMLNode) vo1.writeXML (4,)

    XMLInterface.XML_OPT_ALL_ROWS)) .print (outputStream);

    System.out.println (OutputStream.ToString ());

    return NodeList;

    } catch (System.Exception e)

    {

    throw new OAException (e.getMessage ());

    }

    }

    Kind regards

    Anil Kumar Pasupala

  • Adding a .xls on a sensitive site database

    Hello

    I'm after some advice.

    A customer wants a simple quiz within a sensitive site. The HTML and CSS code for the design itself is not question. What I want to know is, how would I go about the integration of the database? Specifically, what kind of coding would be involved - Javascript? PHP?

    I just need insight in to how the database would be integrated so that I can source the appropriate developer.

    Thank you very much

    . XLS is an Excel worksheet.  Technically, it is not a database.  You will need to convert it to a correct database file. CSV - Delimited by commas, SQL, JSON, XML, etc. According to the language of programming (client-side or server-side) you intend to use with it.

    Nancy O.

Maybe you are looking for

  • X 11

    Someone can such me what is X 11? He just showed on my mac?

  • Wireless Internet

    my wifi is not working properly, my tablet is connected and works. However, my laptop says that a limited and internet access does not work! Help me

  • Laptop computer and printer does not

    My Dell Inspiron 1750 is not communicting with my Dell V313w printer.  Jobs are stuck in the pile, troubleshooting cannot identify the problem, and I have tried everything I am well informed of (not much!)  The printer itself works fine.  Help, pleas

  • Windows vista and microsoft silverlight

    Hello friends! My computer is a sony vaio THAT VGN-AR41M with Windows Vista.My TV national (ITALY) has a web site where I should be able to see beyond broadcast. To do this the site asks me to download Microsoft Silverlight, which I did but nothing h

  • System will not start completely, blue screens and then restart

    Well, I need serious help. I have Windows 7 and installed Ubuntu on my XPS M1730. Yesterday my laptop shuts off and when I went to put it back on it would start start and then blue screened and restarted, continuing the cycle. I tried to use the syst