Link to download in csv format and display in pdf

Hi
i have oracle 10.1.2 portal and as part of application i have a page which results various columns in tabular format, i need to provide the user a link on the same page which which will allow the user to download the result page content in csv format. how can we do it?
i have another a HTML page which gets generated dynamically, i need to show the same content in pdf format. guide me how can i do it?
help is requested because this is an urgency..

Hi,
I did it once - however, I am not sure if Portal 10.1.2 has support for MIME types other than text/plain. I implemented a JSP solution and this is what I did :
1. I have a Servlet that checks the choice of output i.e, html or Excel.
2. The Servlet first renders the page in HTML, with a link that invites the user to "Export" the report to Excel. The Servlet forwards the rendering to a JSP ( which is a Portlet ).
3. If the link is click, the same Servlet is invoked - thsi time, I made the Servlet to render the output as Excel using the usual code: response.setContentType("application/vnd.ms-excel");
4. The same output is rendered in Excel.
The Servlet was not a Portlet - I had to do this workaround as Oracle Portal 9.0.4 wouldn't support the content-type application/vnd.ms-excel
Thus, the HTML rendering was done via a JSP, which is a Portlet. THe PDF / Excel redering was done by a Servlet, which is not a Portlet.
I would be interested to know if 10.1.2 ( & the later verions ) support the Excel / PDF MIME Types.
Regards,
Sandeep

Similar Messages

  • Issue with downloading in CSV Format

    Hi SDN,
    i used the FM's SAP_CONVERT_TO_CSV_FORMAT - to convert 2 CSV Format  and
                            GUI_DOWNLOAD  - to download the data 2 presentation server.
    i'm able 2 open the file in CSV format,but the data is displayed in single column only.
    how 2 display in different columns ?
    for example the ITAB contains empno, empname and designation.
    I want it 2 display as :
       EMPNO      EMPNAME     DESIGNATION
         1                xxxxx              Developer
         2                 yyyy               TL
    with tab delimiter.
    now the values are displaying as:
    EMPNO;EMPNAME;DESIGNATION
    1;xxxx;Developer
    2;yyyy;TL
    pls suggest.
    awaiting ur early response.
    Regards,
    Suman.

    Hi Max,
    the issue is when opening the CSV file.
    all the contents are coming in a single column. for ex.,
                    Col 1                                                 Col2          Col3
    Row1      Heading1,Heading2,Heading3
    Row2      a1,b1,c1
    Row3      a2,b2,c2
    Row4      a3,b3,c3
    I'm not sure whether this format is correct  ?
    what I'm expecting is  like the one below, with a tab delimiter.because after runing the ALV report when I export 2 Excel in CSV format it is displaying like this.
                        Col1                Col2               Col3
    Row1          Heading1      Heading2          Heading3
    Row2             a1                    b1                c1
    Row3             a2                     b2               c2
    Row4             a3                     b3                c3
    Regards,
    Suman.

  • I'm trying to find out how to export my apple contacts to the Salesforce software and they need to be in a csv format and I don't know if this is possible and how to do it if it is?

    I'm trying to find out how to export my apple contacts to the Salesforce software and they need to be in a csv format and I don't know if this is possible and how to do it if it is?

    I think there are third-party programs which will do that, but you can also do it with Automator:
    See the links in my post, here: https://discussions.apple.com/message/22390873#22390873
    The file or clipboard contents will be in Tab Separated vars, so you'll have to open with a spreadsheet program and save as Comma Separated Vars format.

  • Function to download in  csv format

    Hi Every Body,
    am using asp.net as a front end and oracle 11g as back end am wondering if there is a way to download data in an csv format and merge them into a table.
    i.e i need to provide a button for this functionality.
    Regards
    Nii Moi

    Nii Moi wrote:
    Hi Every Body,
    am using asp.net as a front end and oracle 11g as back end am wondering if there is a way to download data in an csv format and merge them into a table.How is this related to Application Express ? Please explain

  • Obiee 11g hierarchy columns download into csv format.

    When using hierarchical columns, Is there a way to download the results as the user see it on the view (be it table or pivot view) into a CSV format.
    Excel format works, but if the user drill down on the hierarchy column and then export in CSV format... the data gets exported to the level the report was originally set.
    Is there any way to change this behavior?
    One option we can recommend to users is to download in excel format and then convert to CSV....if needed.
    FYI, we just starting looking into 11g 11.1.1.5 version... planning to migrate from 10g to 11g...
    Thanks
    Sundar

    Nii Moi wrote:
    Hi Every Body,
    am using asp.net as a front end and oracle 11g as back end am wondering if there is a way to download data in an csv format and merge them into a table.How is this related to Application Express ? Please explain

  • // Code Help need .. in Reading CSV file and display the Output.

    Hi All,
    I am a new Bee in code and started learning code, I have stared with Console application and need your advice and suggestion.
    I want to write a code which read the input from the CSV file and display the output in console application combination of first name and lastname append with the name of the collage in village
    The example of CSV file is 
    Firstname,LastName
    Happy,Coding
    Learn,C#
    I want to display the output as
    HappyCodingXYZCollage
    LearnC#XYXCollage
    The below is the code I have tried so far.
     // .Reading a CSV
                var reader = new StreamReader(File.OpenRead(@"D:\Users\RajaVill\Desktop\C#\input.csv"));
                List<string> listA = new List<string>();
                            while (!reader.EndOfStream)
                    var line = reader.ReadLine();
                    string[] values = line.Split(',');
                    listA.Add(values[0]);
                    listA.Add(values[1]);
                    listA.Add(values[2]);          
                    // listB.Add(values[1]);
                foreach (string str in listA)
                    //StreamWriter writer = new StreamWriter(File.OpenWrite(@"D:\\suman.txt"));
                    Console.WriteLine("the value is {0}", str);
                    Console.ReadLine();
    Kindly advice and let me know, How to read the column header of the CSV file. so I can apply my logic the display combination of firstname,lastname and name of the collage
    Best Regards,
    Raja Village Sync
    Beginer Coder

    Very simple example:
    var column1 = new List<string>();
    var column2 = new List<string>();
    using (var rd = new StreamReader("filename.csv"))
    while (!rd.EndOfStream)
    var splits = rd.ReadLine().Split(';');
    column1.Add(splits[0]);
    column2.Add(splits[1]);
    // print column1
    Console.WriteLine("Column 1:");
    foreach (var element in column1)
    Console.WriteLine(element);
    // print column2
    Console.WriteLine("Column 2:");
    foreach (var element in column2)
    Console.WriteLine(element);
    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

  • Need a link to download adobe pro 11 and not the DC

    need a link to download adobe pro 11 and not the DC

    Downloadable installation files available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
    Acrobat:  DC | XI, X | 9,8 | 9 standard
    Premiere Elements:  13 |12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7
    Lightroom:  5.7.1| 5 | 4 | 3 | 2.7(win),2.7(mac)
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.window using the Lightroom 3 link to see those 'Important Instructions'.

  • Store and Display doc/pdf files in the database using Forms

    Hi all,
    How can i store and display doc/pdf files in the database using Forms 10g?.
    Arif

    How to get up and running with WebUtil 1.06 included with Oracle Developer Suite 10.1.2.0.2 on a win32 platform
    Solution
    Assuming a fresh "Complete" install of Oracle Developer Suite 10.1.2.0.2,
    here are steps to get a small test form running, using WebUtil 1.06.
    Note: [OraHome] is used as an alias for your real oDS ORACLE_HOME.
    Feel free to copy this note to a text editor, and do a global find/replace on
    [OraHome] with your actual value (no trailing slash). Then it is easy to
    copy/paste actual commands to be executed from the note copy.
    1) Download http://prdownloads.sourceforge.net/jacob-project/jacob_18.zip
      and extract to a temporary staging area. Do not attempt to use 1.7 or 1.9.
    2) Copy or move jacob.jar and jacob.dll
      [JacobStage] is the folder where you extracted Jacob, and will end in ...\jacob_18
         cd [JacobStage]
         copy jacob.jar [OraHome]\forms\java\.
         copy jacob.dll [OraHome]\forms\webutil\.
      The Jacob staging area is no longer needed, and may be deleted.
    3) Sign frmwebutil.jar and jacob.jar
      Open a DOS command prompt.
      Add [OraHome]\jdk\bin to the PATH:
         set PATH=[OraHome]\jdk\bin;%PATH%
      Sign the files, and check the output for success:
         [OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\frmwebutil.jar
         [OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\jacob.jar
    4) If you already have a schema in your RDBMS which contains the WebUtil stored code,
      you may skip this step. Otherwise,
      Create a schema to hold the WebUtil stored code, and privileges needed to
      connect and create a stored package. Schema name "WEBUTIL" is recommended
      for no reason other than consistency over the user base.
      Open [OraHome]\forms\create_webutil_db.sql in a text editor, and delete or comment
      out the EXIT statement, to be able to see whether the objects were created witout
      errors.
      Start SQL*Plus as SYSTEM, and issue:
         CREATE USER webutil IDENTIFIED BY [password]
         DEFAULT TABLESPACE users
         TEMPORARY TABLESPACE temp;
         GRANT CONNECT, CREATE PROCEDURE, CREATE PUBLIC SYNONYM TO webutil;
         CONNECT webutil/[password]@[connectstring]
         @[OraHome]\forms\create_webutil_db.sql
         -- Inspect SQL*Plus output for errors, and then
         CREATE PUBLIC SYNONYM webutil_db FOR webutil.webutil_db;
      Reconnect as SYSTEM, and issue:
         grant execute on webutil_db to public;
    5) Modify [OraHome]\forms\server\default.env, and append [OraHome]\jdk\jre\lib\rt.jar
      to the CLASSPATH entry.
    6) Start the OC4J instance
    7) Start Forms Builder and connect to a schema in the RDBMS used in step (4).
      Open webutil.pll, do a "Compile ALL" (shift-Control-K), and generate to PLX (Control-T).
      It is important to generate the PLX, to avoid the FRM-40039 discussed in
      Note 303682.1
      If the PLX is not generated, the Webutil.pll library would have to be attached with
      full path information to all forms wishing to use WebUtil. This is NOT recommended.
    8) Create a new FMB.
      Open webutil.olb, and Subclass (not Copy) the Webutil object to the form.
      There is no need to Subclass the WebutilConfig object.
      Attach the Webutil.pll Library, and remove the path.
      Add an ON-LOGON trigger with the code
             NULL;
      to avoid having to connect to an RDBMS (optional).
      Create a new button on a new canvas, with the code
             show_webutil_information (TRUE);
      in a WHEN-BUTTON-PRESSED trigger.
      Compile the FMB to FMX, after doing a Compile-All (Shift-Control-K).
    9) Under Edit->Preferences->Runtime in Forms Builder, click on "Reset to Default" if
      the "Application Server URL" is empty.
      Then append "?config=webutil" at the end, so you end up with a URL of the form
          http://server:port/forms/frmservlet?config=webutil
    10) Run your form.sarah

  • I am try to download a CSV file and have it directly open in excel. It only opens in new page and not in excel. how do I get it to do that.

    In internet explorer I use to be able to click on a download link to have a csv file open in excel. I have never been able to open this download file before with Firefox. It turns out that I can no longer do it with Explorer either. I have sent this same question to them for help as I require this information. It is being downloaded from a secure site and is used for registration information.
    I need help as soon as possible.
    Thank you
    Rob

    See:
    *Firefox/Tools > Options > Advanced > General : Accessibility : [ ] "Warn me when web sites try to redirect or reload the page"
    The setting in "Tools > Options > Advanced > General" is meant as an accessibility feature, as you can see by the label of that section, so that people with disabilities or people who use screen readers do not get confused and is not meant as a safety protection to stop redirecting.
    See also:
    *https://support.mozilla.com/kb/Options+window+-+Advanced+panel#General_tab
    *http://kb.mozillazine.org/accessibility.blockautorefresh
    *http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • Reading a Blob (CSV file) and displaying the contents

    Hello Experts,
    I’m currently working on a system that allows the users to upload an Excel spreadsheet (.xls) in the system. The upload page is a PL/SQL cartridge. Then I’ve written a Java servlet (using Oracle Clean Content) to convert the XLS into a CSV and store it back in the database. (it is stored in the “uploaded_files” table as a blob). I’m trying to create another procedure to read the contents of the blob and display a preview of the data on the screen (using an html table (will be done using cartridge)). After the preview, the user can choose to submit the data into the database into the “detail_records” table or simply discard everything.
    Can anyone provide me any guidelines and/or code samples for reading the contents of a blob and displaying it as an html table? My data contains about 10 rows and 20 columns in the spreadsheet. I’ve been looking into using associative arrays or nested tables but I’m getting confused about how to implement them in my situation.
    Any help is greatly appreciated.

    BluShadow,
    Thanks for your response. The reason that it is a blob is that we use the same table for uploaded files for several applications. Some files are text, some excel, some other formats. Hence the table has been set up in a generic sense.
    However, in my procedure, I'm using
    DBMS_LOB.createtemporary and
    DBMS_LOB.converttoclob
    Is there any way you could possibly provide an example of how to read the contents of the file?

  • Query download to CSV format

    I need help setting up a query to download the results to a CSV format file.   The query will be setup run in a batch job.  The file will be stored on the application server.

    FM GUI_DOWNLOAD downloads to the presentation server only, not the ap server. And it woks only in the foreground.
    Rob

  • Download in CSV format with Clear Cache After Regions

    Hi,
    I am trying to download Apex report in CSV format, but, as I have Clear cache After Region data gets cleared and nothing the saved in CSV file. If I remove Clear Cache option I am able to download report in CSV format, but, as cache entries are not cleard it is fetching all records related to previous entry which is not intended. This is all happening in single session. If I logout and login again, then cache is cleard. But in single session when I move from one report to another cache entries are not cleared.
    Appreciate your help.

    Hi,
    I am trying to download Apex report in CSV format, but, as I have Clear cache After Region data gets cleared and nothing the saved in CSV file. If I remove Clear Cache option I am able to download report in CSV format, but, as cache entries are not cleard it is fetching all records related to previous entry which is not intended. This is all happening in single session. If I logout and login again, then cache is cleard. But in single session when I move from one report to another cache entries are not cleared.
    Appreciate your help.

  • Memory problem with loading a csv file and displaying 2 xy graphs

    Hi there, i'm having some memory issues with this little program.
    What i'm trying to do is reading a .csv file of 215 mb (6 million lines more or less), extracting the x-y values as 1d array and displaying them in 2 xy graphs (vi attacked).
    I've noticed that this process eats from 1.6 to 2 gb of ram and the 2 x-y graphs, as soon as they are loaded (2 minutes more or less) are really realy slow to move with the scrollbar.
    My question is: Is there a way for use less memory resources and make the graphs move smoother ?
    Thanks in advance,
    Ierman Gert
    Attachments:
    read from file test.vi ‏106 KB

    Hi lerman,
    how many datapoints do you need to handle? How many do you display on the graphs?
    Some notes:
    - Each graph has its own data buffer. So all data wired to the graph will be buffered again in memory. When wiring a (big) 1d array to the graph a copy will be made in memory. And you mentioned 2 graphs...
    - load the array in parts: read a number of lines, parse them to arrays as before (maybe using "spreadsheet string to array"?), finally append the parts to build the big array (may lead to memory problems too).
    - avoid datacopies when handling big arrays. You can show buffer creation using menu->tools->advanced->show buffer allocation
    - use SGL instead of DBL when possible...
    Message Edited by GerdW on 05-12-2009 10:02 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Download to CSV format

    Hi guys,
    What is the best way to download an internal table data to CSV format?
    Thanks!

    Hi,
       Follow the below logic.
    TYPES:
    BEGIN OF TY_FILE,
    DATA TYPE STRING,
    END OF TY_FILE.
    DATA: IT_FILE TYPE STANDARD TABLE OF TY_FILE,
    WA_FILE TYPE TY_FILE.
    LOOP AT ITAB INTO WA.
    CONCATENATE WA-F1 WA-F2 ... WA-FN SEPARATED BY ',' INTO WA_FILE.
    APPEND WA_FILE TO IT_FILE.
    CLEAR WA_FILE.
    ENDLOOP.
    "Use IT_FILE to download using GUI_DOWNLOAD.
    Thanks,
    Asit Purbey.

  • Download into CSV format from internal table

    Hi,
      I would like to download my internal table records in CSV format without any manual formating.
    It is easy to concatenate internal table fields into a string with ',' seperator. But I would like to do in a better way that this becasue of more number of fields in my internal table.
    Could you someone help me in this, I have searched in this form for help I found few function modules which did not help me.
    SAP_CONVERT_TO_CSV_FORMAT / LIST_DOWNLOAD .
    Prabhu Rajesh.

    Sravan,
    type-pools: truxs.
    DATA : BEGIN OF itab OCCURS 0,
    name1(10),
    name2(10),
    END OF itab.
    DATA : itab1 TYPE truxs_t_text_data.
    DO 10 TIMES.
      itab-name1 = 'Prabhu'.
      itab-name2 = 'Rajesh'.
      APPEND itab.
      CLEAR : itab.
    ENDDO.
    LOOP AT itab.
      WRITE:/ itab-name1, itab-name2.
    ENDLOOP.
    CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'
      EXPORTING
        i_field_seperator          = ';'
      I_LINE_HEADER              =
      i_filename                 =
      I_APPL_KEEP                = ' '
      TABLES
        i_tab_sap_data             = itab
    CHANGING
       I_TAB_CONVERTED_DATA       = itab1
    EXCEPTIONS
      CONVERSION_FAILED          = 1
      OTHERS                     = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

Maybe you are looking for

  • Manually manage music and voice memo's

    Good morning all, so I can't figure this out, If I have my iTunes set to manually manage music and videos how do I synch my voice memo's? Last night when I was doing that it seemed to me I had to change it to synch selected songs and once I checked V

  • URGENT : ABAP Program latest transport

    Hi gurus, I have to get the latest version (in fact the transport request pertaining to that version) of an ABAP Program. I can see the request number in the Version Management,but which table stores it ? Or how this info can be retrievd by..say a  d

  • There's a problem with your computer,s clock

    "it appears that your computer,clock has been set back please reset the clock to  the curent date and time . this prodect wont run unless the clock is set  correctly." I have got this error with my dreamweaver. I have already reinstall my dreamweaver

  • Solaris 8 on a Sun Fire v480 (full vs half duplex)

    Hi All I've installled Solaris 8 on a Sun Fire v480. Now, when I boot I get the following (via serial A/LOM): {2} ok boot -r Boot device: /pci@9,600000/SUNW,qlc@2/fp@0,0/disk@w2100002037cfdf9d,0:a File and args: -r SunOS Release 5.8 Version Generic_1

  • POs Quantities and Invoice amount report

    Dear Gurus, I would like to know if there is a report, the gives the following information by vendor, material: Vendor, material , Po Number;  PO Quantity, Invoice number, invoice number, invoice amount If not  what would be the best tables linkage t