Excel conversion, weblogic8.1

We are developing a web application using Weblogic 8.1 express as the application
server. Where in we need to convert the reports data into excel format and show
it in the browser. The approach we followed is as follows. We are creating the
excel file physically on the server and the same excel file is opened in the browser
using VBScript. This is feasible only when the excel file created with in the
scope of context. Since the application is deployed as a “.war” file, we cannot
create the excel file within the scope of context i.e within “.war”. So we are
creating the excel file in a local directory on the server. Since this is outside
of the context, we are unable to open the excel file in the browser.
Anybody have any idea on this?????

Hi,
You can use the virtual directory mapping feature to direct WebLogic server to
look for static resources in a directory external to the web application context.
For example, if you are writing those excel files to c:\temp\docroot\sheets then
you can define the following in your web application's weblogic.xml file
<virtual-directory-mapping>
          <local-path>c:/temp/docroot</local-path>
          <url-pattern>/sheets/*</url-pattern>
</virtual-directory-mapping>
This will define c:/temp/docroot as the virtual document root for your web application
and when a resource is requested as http://localhost/mywebapp/sheets/expenses.xsl
, then weblogic server would look for the file under c:/temp/docroot/sheets. Your
actual document root under
the application context would still be used, the virtual directory would not replace
it, but resources are first searched under the virtual directory then
the application document root.
For more info about virtual directory mapping, type "virtual directory mapping"
in the AskBEA tool and you will get all the documents/newsgroup discussions related
to the subject.
Another option would be to return the sheet as a binary stream from the servlet/jsp
that is generating it. If the library you are using to generate the sheet allows
you to obtain a stream of the created sheet (rather than writing it to the file
system), then you can return the stream contents from your servlet/jsp.
Hope this will help.
Laith

Similar Messages

  • In PDF to Excel conversion dates like 03/12/15 convert to Dec 3rd 2015 not the correct date of Mar 12th 2015 whereas date 03/13/2015 converts correctly as March 13th 2015

    In PDF to Excel conversion dates like 03/12/15 convert to Dec 3rd 2015 not the correct date of Mar 12th 2015 whereas date 03/13/2015 converts correctly as March 13th 2015

    Hi DirTech,
    Are both of these dates in the same Excel file? If they're in different files, are you choosing the same language for OCR (optical character recognition)?
    If they are in the same PDF file, how was that PDF file created? Was it created from a third-party application (rather than an Adobe application)? If it was created by a third-party application, it could be that it wasn't written to spec, and that's why you're seeing some oddities in the PDF > Excel conversion.  (See Will Adobe ExportPDF convert both text and form... | Adobe Community.)
    Best,
    Sara

  • Excel Conversion Tool

    I created an Adobe ID account so I could try the free trial Excel conversion tool. When I attempt to use the tool I get the following error message - "An error occured when trying to access the service". Can someone suggest a workaround!

    Hamski so that your inquiry can be directed to the proper forum which Adobe software or service specifically are you referring too?

  • Pdf to excel conversion fail

    Only 36 of the 542 cells in a PDF appeared in the excel after converted. Any ideas on what is going wrong?

    Hi, Alexandra.
    I'm sorry for the issues you're having. Can you share with us a copy of the PDF file which is not converting correctly to Excel?
    https://adobeformscentral.com/?f=qJiclooYWGGNFtWfj8g3wg
    We may have some more ideas after looking at your file. Please also include a link to this forum conversation in the form, so we have the background information from this forum.
    Pleae let us know if you have additional questions or issues.
    Dave

  • Batch Excel conversion using Adobe ExportPDF

    As of Subject!
    Is it possible and massively convert a batch of PDF files (i.e., a whole folder) in Excel using Adobe ExportPDF online?
    If not, is it possible coupling with Adobe Acrobat Pro batch conversion?

    More on this?
    Do I need Acrobat Pro, or is it sufficient Acrobat Standard?
    Allow me an OT: from which version can I active the "Upgrade" option?

  • ALV to excel conversion, Urgent

    Hi Friends,
    One doubt.
    When i was saving an ALV Out put to excel sheet  values in 3 coloumns   are coming such that last digit is getting cut.
    For Eg.
    In ALV value is 0000017756
    In excel its coming 000001775
    Can anybody tell me what may be the cause of this.
    Plz reply.
    Thanks
    Nitin

    Hi Nitin
    please use this
    reward points boss.
    Regards
    Deepanker
    DOWNLOAD ALV LIST TO EXCEL AUTOMATICALLY
    TYPES:
      BEGIN OF ty_upload,
        field1 TYPE c length 12,
        field2 TYPE c length 12,
        field3 TYPE c length 12,
      END OF ty_upload.
      DATA it_upload TYPE STANDARD TABLE OF ty_upload WITH DEFAULT KEY.
      DATA wa_upload TYPE ty_upload.
      DATA itab TYPE STANDARD TABLE OF alsmex_tabline WITH DEFAULT KEY.
      FIELD-SYMBOLS: <wa> type alsmex_tabline.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename    = filename
          i_begin_col = 1
          i_begin_row = 1
          i_end_col   = 3
          i_end_row   = 65535
        TABLES
          intern      = itab.
      LOOP AT itab ASSIGNING <wa>.
        CASE <wa>-col.
          WHEN '0001'.
            wa_upload-field1 = <wa>-value.
          WHEN '0002'.
            wa_upload-field2 = <wa>-value.
          WHEN '0003'.
            wa_upload-field3 = <wa>-value.
        ENDCASE.
        APPEND wa_upload TO it_upload.
        CLEAR wa_upload.
      ENDLOOP.
    CALL FUNCTION 'SAP_CONVERT_TO_XLS_FORMAT'
    EXPORTING
    I_FIELD_SEPERATOR =
    I_LINE_HEADER =
    i_filename =
    I_APPL_KEEP = ' '
    tables
    i_tab_sap_data =
    CHANGING
    I_TAB_CONVERTED_DATA =
    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.
    Another FM –
    MS_EXCEL_OLE_STANDARD_DAT
    A simple option:
    a) form download_file .
    call function 'WS_EXCEL'
    importing
    filename = excel_name
    tables
    data = itab.
    b) call function 'WS_DOWNLOAD'
    exporting
    filename = o_file
    filetype = 'DAT'
    tables
    data_tab = i_tab
    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
    no_authority = 10
    others = 11.
    if sy-subrc = 0.
    message 'File is downloaded successfully' type 'I'.
    endif.

  • Acrobat 5.0 - Excel conversion

    I'm having trouble printing Excel forms in Acrobat 5.0   I can only get 2/3 of the document and Acrobat stops.  I've reset the print range in Exce and that doesn't help.  Any suggestions?

    Are you printing to the Acrobat Distiller printer or using PDF Maker? Can you print to file with the printer. If so, open the file in Distiller to see if you get a complete PDF or error messages.

  • Do you offer a trial pdf to excel conversion?

    I have a few dozen pdfs that I would like to convert to excel to make the data more easily searchable and sortable. Is it possible I could get a trial to convert one of the files to see how it works before purchasing a whole year? Frankly, I have my doubts that it will work given the format of the data within the pdf. Thanks

    We do not offer a trial for ExportPDF, however we have a 30-day return policy.  If you try the service and you don't find it meets your needs, you can return your purchase for a full refund.
    -David

  • Problems with pdf to excel conversion

    I purchased the online converision program, and it is not working. The files either stay in limbo or if I try to open them, they are not legible. I also tried to download the Acrobat Pro trial, and the files don't convert.

    I would try asking in the ExportPDF forum,
    http://forums.adobe.com/community/exportpdf

  • Issue with Varchar2 field conversion for report output generated in EXCEL

    Hello All,
    I have an unique problem with one of my new reports for the User. The user wants the report output generated in excel data only(delimited data) format *(reports builder 10g)* .
    Everything was fine until i encountered this problem, there was this field which has unique ID's(alphanumeric and numeric), when i tried to run the report and generate output in Excel the numeric ID's say for example *(41593497999679354429)* is converted in excel and displayed like *(2.5881E+19)* and after format cells in excel it displays *(41593497999679300000).*
    The issue is only with 20 digits numeric ID's , if i append any special character to the end say '#' or '..' it shows the exact value along with the appended character. But the user insist they need only the value that is in the table. I am finding it hard to figure out, if any one of you have encountered the same issue or if any of you have any suggestions to overcome this excel conversion thing please do advice me.
    Thanks in advance :)

    Thanks for you response, but i already tried what you suggested, instead of appending single quote in front of ID, i did at the end prior with '#', it preserves the value if i add any character to the id but the appended value shows up too :(.
    Well, i just got the solution and it did work, thanks to [Brian Hill|https://forums.oracle.com/forums/thread.jspa?threadID=651632] for the post, i did what exactly he said and it worked. I was so very happy and wanted to share with everyone.

  • Excel to PDF Conversion in Version 11

    Is there anyone else have a problem with Excel conversion to PDF and then the colours don't pull through to PDF on Version 11 of Adobe Acrobat XI Pro?
    This is what it must look like ;
    BUT I GET THIS ------- below

    You've probably got two options to make a PDF from Excel, a button in a toolbar, or print to eh Adobe PDF writer.  Try whichever one you're not using now and see if that helps.

  • Exporting pdfs to word and excel file formats  and translating

    Hello, I am new to this forum and came here because I am a professional translator. Although we should be given documents in their original file format, in the real world translators have to convert pdfs such as manuals or annual reports into word or excel files. Given the fact we often work for agencies, and/or do not work directly with the people who created the original files inthe first place, with the best will in the world we normally have to make do with converting the pdf file, or lose the job.
    I would like advice on the best way to learn more about  pdf to word and excel conversion and ways of keeping formatting when it is helpful and removing what is not.
    The general problem is (well the problem is really ignorance on my part!) of course getting the "look and feel" similar in the converted document and knowing more about manipulating the formating and elements which get converted.
    Any help or pointers to online tutorials whether multimedia or text much appreciated.
    David Hardisty (david1610)

    Thank you Lori, this is so clear! I am a teacher as well and there are clear presentations and wonderfully clear presentations and this is in the latter category.
    A tiny suggestion. You would not believe how many pdf files exported to word I have received that are Portuguese content and the sender has not set the language to Portuguese! So in your text entry you might want to mention the language setting. I know it is obvious, but as we know sometimes we cannot see the obvious!
    I will need to look far more carefully at the final things in your video.
    Are there any special considerations for exporting pdf files as Excel? My original doubt was I had to translate some accounting documents. 95% of the document was numbers which did not changing (except for commas to periods and vice versa due to different separator conventions). I did not now how to just select e.g. the vertical column with text. I will go back and try with this suggestion because in this case the look and feel of the numbers was important and the precise fonts etc. seemed to cause problems. But now I am getting out of my depth!
    Thank you again!
    DavidHardisty

  • Image provided in server cache does not appear in Excel download

    Hello WD Experts!
    I have a Web Dynpo (ABAP) ALV table with material master data. One column contains the image of the product or a "sorry, no picture" image, if no specific material image exists.
    The images are not available as MIME objects, hence I load the images from an external source and push them into the server cache using the method cl_http_server=>server_cache_upload( ... ). The lifetime for the cache is defined with 600. The "sorry, no picture" -image is a MIME object.
    All works fine... except for the download to Excel. Only the "sorry, no picture" -image appears. The others gets replaced by a placeholder icon which looks similar to those frequently seen in emails or slow web pages.
    Why don't the cached images get downloaded to Excel???
    Best Regards
    Bodo

    I would imagine this is a limitation of the Excel converter functionality within the ALV. It is probably designed to only download images that come directly from the MIME repository.  The logic between the two approaches would be very different.  Images in the MIME repository can be read from the database using the MIME APIs. To read the images from the Server Cache, the ABAP program would have to make an HTTP request to the cache (using CL_HTTP_CLIENT).  I'm guessing the convert logic simply doesn't do this.
    The other option is - is your lifetime high enough? 600 seconds seems like it would be long enough - at least for a test - there is no guarentee that in a real application the user might not display the data for more than 10 minutes before downloading. Probably not your problem, but something you might still consider if you get this working.
    My only suggestion is that you would have to create your own excel conversion instead of using the ALV one.

  • Cannot create PDF files using Excel

    I'm using Acrobat PDFMaker 5.0 for Excel to convert my invoices into PDF files to send to clients but for some unknown reason it has just suddenly stopped working. It starts the conversion process OK but then freezes and just hangs. I can continue using my PC but the CPU usage shows as 100%. I end up either having to cancel the conversion or close the programme completely using task manager.
    I'm afraid I'm not very computer savvy, but I really need to find a solution to this problem asap.
    Please can anybody help me?
    Thanks.

    Make sure you've updated your Acrobat 5 to 5.0.5: http://www.adobe.com/support/downloads/detail.jsp?ftpID=1309
    You may also want to confirm whether or not this is document specific.  Does a new Excel file with just a few letters typed into cell A1 convert fine?  If so, you may want to uncheck the 'Enable text and reflow in tagged PDF' option within the PDFMaker preferences.  I may have skewed that verbiage slightly as I haven't looked at Acrobat 5 in a VERY long time, but I recall that option sometimes causing Word and Excel conversions to hang.
    -David

  • XLS to XLSX Conversion - Macro issues

    Good Morning All,I'm currently trying to run a script to convert all xls files to xlsxI am using a script written here:
    https://gist.github.com/gabceb/954418The script as is:PowershellAdd-Type -AssemblyName Microsoft.Office.Interop.Excel$xlFixedFormat = [Microsoft.Office.Interop.Excel.XlFileFormat]::xlOpenXMLWorkbookwrite-host $xlFixedFormat$excel = New-Object -ComObject excel.application$excel.visible = $false$folderpath = "C:\temp\test\test_1"$filetype ="*xls"Get-ChildItem -Path $folderpath -Include $filetype -recurse | ForEach-Object `{ $path = ($_.fullname).substring(0, ($_.FullName).lastindexOf(".")) "Converting $path" $workbook = $excel.workbooks.open($_.fullname) $path += ".xlsx" $workbook.saveas($path, $xlFixedFormat) $workbook.close() ## Create old folder and move original files here $oldFolder = $path.substring(0, $path....
    This topic first appeared in the Spiceworks Community

    HI sonardude,
    I'm sorry that your PDF conversions are going well. PDF > Excel conversions have been particularly tricky. While turning off OCR has helped in many cases, it sounds to me as though that isn't an option to you, since the PDF was likely created from a scanned document. The quality of the conversion is very dependent on the quality of the original document, so if the PDF wasn't of best quality, the conversion will show it (not the answer you were hoping for, I'm sure).
    We have been collecting files such as yours in an effort to improve the Acrobat online services. If you're willing, please consider submitting your form using the   File Conversion Issue form. Adobe will take a closer look at your file (but we cannot promise to respond individually to all submissions).
    Best,
    Sara

Maybe you are looking for

  • Some photos don't open in edit

    Some of my photos won't open in edit. When I try to do this I get a grey screen with a question mark in the middle. Also, other photos will open but they are not enlarged in the edit window. Still others work in edit fine. There is no rhyme or reason

  • BlackBerry 10 OS, Problem with Phone-book​(Contacts) applicatio​n

    Hi, I am using my Z30 as bussnes phone, thus I have over 1600 contacts in it. Many clients have 2 phone lines; one is phone only line & another that is FAX for incoming calls and it is also used as phone for outcoming calls, so the first line is not

  • Windows 8.1 stuck on "please wait" after update

    Hello. I recently got a new hp all in one 23-p010 about 2 weeks ago, and i have run into a problem. Last night i was getting ready for bed so i pressed update and shut down, and windows began to update and shut down like normal. The next morning, i t

  • I deactivated photoshop CS4 so I could reinstall on windows 8.1.  Now it will not install and errors

    I deactivated photoshop CS4 (one of many times) to reinstall on windows 8.1.  It errors with a message that it could not install and advised I contact support.  I also tried to install on my laptop with the same results.

  • DashBoard, LiveOffice and Dynamic CrossTab

    Hello, 1. I am using Dashboard 4.1 and Live Office for Webi CrossTab reports 2. There are many Webi Blocks that are CrossTabs that I need to connect to and implement in my Dashboard. All my cross tabs in the webi report are dynamic, in that, the colu