Display .XLS file in Browser

Hi All,
I am trying to display the .XLS file from a JSP page.
by just using a PopUp using Java Script.
But is just displaying some junch data (which may be binary)
Can some one help me out to resolve this.
Thanks
Shravan

Are you using the right contentType?
ContentType="application/vnd.ms-excel"

Similar Messages

  • Display xls-files in browser (Sharepoint online 2013)

    I've seen this question answered with "xls is not supported" several times, but according to
    this page viewing should now be supported:
    Excel 97- Excel 2003 Workbook (.xls) or Excel 97- Excel 2003 Template (.xlt)
    If a workbook is in .xls or .xlt format, you can typically view but not edit a workbook in a browser window. When the file is edited, it is saved in .xlsx or .xltx format.
    I can't get it to work though, has anyone of you been able to open a xls-file in the Excel web app?

    Hi  ,
    According to your description, I  tested in my SharePoint Online and get the same result.
    If you hover over drop down, if you don't see view in browser then the file can't be opened in browser. So .xls file doesn't seem to be supported.
    I recommend that you open the file in Excel 2010 or Microsoft Excel 2013, and then save the file as one of the supported formats. The following table shows the recommended file formats for the Excel 2013
    Web App.
    Product
    File format
    Microsoft Excel 2013 Web App
    Excel Workbook (*.xlsx) Excel Macro-Enabled Workbook (.xlsm)
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Displaying PDF file in browser

    Hi,
    I want to display a PDF file in a browser which I have generated at runtime.
    I do it in this way:
    HttpServletResponse response = ((com.sap.tc.webdynpro.services.sal.adapter.core.IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter()).getHttpServletResponse();
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    File pdfFile = new File("report1.pdf");
    try{
        baos.write(getBytesFromFile(pdfFile));
        response.setContentType("application/pdf");
        response.setContentLength(baos.size());
        ServletOutputStream out = response.getOutputStream();
        baos.writeTo(out);
        out.flush();
    catch(IOException ioe){
    If I put this code to a simple project (single view with this code only) its working fine. But if I want to display the file in a project which contains other functions and views it doesnt work (when the pdf should appear the application freezes).
    Can anyone help me?
    Ivo

    public int CreaFilePdf( )
           //@@begin CreaFilePdf()
           int ret = 0;
           byte[] pdfFoXMLFile = null;
           byte[] pdfFile;
           IWDCachedWebResource cachedPdfResource = null;
           String fileName = new String();
           String foText = new String();
           try {
                foText = this.toFoXML();
                wdContext.currentContextElement().setFoText(foText);
                pdfFoXMLFile = foText.getBytes("UTF-8");
                fileName = "Equipment.pdf";
                OutputStream outFo = new java.io.FileOutputStream("Equipment.pdf.fo");
                try {
                     outFo.write(pdfFoXMLFile);
                     outFo.flush();
                     outFo.close();
                } catch (IOException e2) {
                     // TODO Auto-generated catch block
                     e2.printStackTrace();
                /////////////fo to PDF
    //            Construct driver
                Driver driver = new Driver();
                //Setup logger
                Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO);
                driver.setLogger(logger);
                MessageHandler.setScreenLogger(logger);
                //Setup Renderer (output format)       
                driver.setRenderer(Driver.RENDER_PDF);
                OutputStream out = new java.io.FileOutputStream("EquipmentFromFo.pdf");
                try {
                     driver.setOutputStream(out);
                     //Setup input
                     InputStream in = new java.io.FileInputStream("Equipment.pdf.fo");
                     try {
                          driver.setInputSource(new InputSource(in));
                          //Process FO
                          driver.run();
                     } finally {
                          in.close();
                } finally {
                     out.close();
                /////////////fo to PDF          
    //     /////////////////////////////web resource
         try {
           // create Excel 2003 XML data as a byte array for the given context node, attributes and headers 
           // Deserialize from a file
           File file = new File("EquipmentFromFo.pdf");
           // Get some byte array data ----> THIS  method is here: <a class="jive_macro jive_macro_message" href="" __jive_macro_name="message" modifiedtitle="true" __default_attr="2735976"></a>
           pdfFile = getBytesFromFile(file);
           //pdfFoXMLFile = this.toFoXML().getBytes("UTF-8");
           // create a cached Web Dynpro XLS Resource for the given byte array and filename
           //HERE create the URL object
           cachedPdfResource = this.getCachedWebResource(pdfFile, fileName, WDWebResourceType.PDF);
           // Store URL and filename of cached excel resource in context for UI linkToURL.
           if (cachedPdfResource != null) {
              wdContext.currentContextElement().setPdfFileURL(cachedPdfResource.getURL());
              wdContext.currentContextElement().setPdfFileName(cachedPdfResource.getResourceName());
           } else {
              ret = 1;
         catch (WDURLException e) {
              ret = 1;
           } catch (FileNotFoundException e1) {
                // TODO Auto-generated catch block
                e1.printStackTrace();
           } catch (IOException e2) {
                // TODO Auto-generated catch block
                e2.printStackTrace();
           } catch (FOPException e3) {
                // TODO Auto-generated catch block
                e3.printStackTrace();
           return ret;
           //@@end

  • Display PDF files in Browser

    How can I display PDF files in my browser. SARS reqire it for e-filing?

    Previous error message was working with Explorer. This came up working with Firefox
    I did upgrade and it was found that the latest version was installed.
    Please wait...
    If this message is not eventually replaced by the proper contents of the document, your PDF
    viewer may not be able to display this type of document.
    You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or Linux® by
    visiting http://www.adobe.com/products/acrobat/readstep2.html.
    For more assistance with Adobe Reader visit http://www.adobe.com/support/products/
    acrreader.html.
    Regards
    Allen Versteeg

  • Displaying *.pdf file on browser with servlet

    hi all
    this RAMESH,struggling to display a pdf file on browser from a remote mechine
    earlier i tried with servlet
    response.setContentenType("application/pdf")
    out.println();
    by this i am getting only some data as below
    endobj
    4 0 obj
    <<
    /ProcSet [ /PDF /Text /ImageB ]
    /Font << /Fo0 21 0 R /Fo12 24 0 R /Fo13 27 0 R /Fo16 30 0 R /Fo18 33 0 R /Fo19 36 0 R >>
    >>
    endobj
    For this purpose i have gone thru www.lowagie.com
    and gone thru all examples but i am not getting how to display on browser or at least awt frame
    please requesting all for suggest me some way
    tanks all
    -Ramesh

    are you trying to
    a) create a PDF dynamically
    b) send an existing PDF

  • Display xls file in iView

    Friends,
    I want to display the xls file in iView. Tell me whether its possible or not? If yes, than how?
    If someone has done this than pls. tell me the procedure to do that.
    Thanks.
    Hitesh

    Hi Hitesh,
    Yes it is possible,you can follow any of the following blogs.
    Create an excel file from JAVA using HSSF api
    Reading Excel Sheet from Java without using any Framework
    Cheers,
    Santhosh

  • Excel 2013 doesn't display .xls file downloaded from Wells Fargo (Inconsistent)

    I have two computers exhibiting the same problem but not every time.
    Windows 7 Pro 64-bit
    Office 2013 64-bit
    Download an .xls file through Chrome or IE.
    Download is fine
    Attempt to click to open.
    Excel Launches, appears in the taskbar, file never opens... Excel is unresponsive.
    Right Click Task Bar icon, program will close.  You can open other files just fine.
    I noticed when you double click the file to open, two excel.exe processes open in Task Manager... not sure if that is normal.  When you close excel, they both disappear.
    Thoughts?

    Hi,
    In regarding of the issue, please provide us more information to assist you better.
    Did this issue only occur with the .xls files downloaded from Wells Fargo website? Have you tried from other website, such as OneDrive?
    Have you tried to download some .xlsx files to test from Wells Fargo website?
    Please do some tests to narrow down the issue.
    1) Try to convert the .xls files to .xlsx files, if we can open the .xlsx correctly, this issue may be caused by the compatibility issue between Office 2013 and Office 97-2003 format. Thus, I recommend you convert the file to Excel 2013
    format.
    2) Open the Excel program first=>Click Open=>Navigate to the file=>Then open it. If it also can be opened correctly, this issue may be caused by the Dynamic Data Exchange. Please try to turn off the "Ignore other applications that use
    Dynamic Data Exchange (DDE)“ setting.
    Steps:
    1.Click the File tab, and then click Options.
    2.Click Advanced, scroll down to the General section, and then clear the Ignore other applications that use Dynamic Data Exchange (DDE) check box in the General area.
    3.Click OK.
    If you have any update, please feel free let me know.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How to get Firefox to display pdf file in browser (Win 7, FF 19.0, AA 10.1.6, IE 9)?

    After Firefox updated to version 19, when I tried to view a pdf file, the file appeared in a strange new viewer. Seemed to work OK, but I was concerned (didn't know that it is apparently a new feature of FF 19), and wanted the Adobe viewer back.
    After a few minutes of viewing in the FF pdf viewer, a message appeared that said something like-- This viewer may not be displaying the document correctly. Would you like to use Adobe Acrobat instead?-- I clicked yes.
    Now, when I click a link for a pdf file, it will either open automatically in Adobe Acrobat (windows application, not viewer within FF), or I'll get a dialog that asks whether I want to save the file or use Adobe Acrobat to open it.
    I have followed the instructions here:
    http://support.mozilla.org/en-US/kb/use-adobe-reader-plugin-view-or-download-pdf-files?esab=a&s=view+pdf+in+browser&r=0&as=s
    Including:
    http://support.mozilla.org/en-US/kb/view-pdf-files-firefox-without-downloading-them
    http://support.mozilla.org/en-US/kb/view-pdf-files-firefox-without-downloading-them#w_using-a-pdf-reader-plugin
    http://support.mozilla.org/en-US/kb/view-pdf-files-firefox-without-downloading-them#w_check-application-settings
    Delete the mimetypes.rdf file
    Delete the pluginreg.dat file
    Let me know if you think I've missed any info that would be helpful. Now that I know the new PDF viewer is FF native, I wouldn't mind trying it out.
    Thanks!
    Who
    repair of Adobe Acrobat
    If I start IE and click a pdf link within IE, I can view a PDF file within IE, but who wants IE?

    Hi madperson,
    It seems like there is some progress. After setting pdfjs.disabled to true, when I click on a pdf link, it still only asks me if I want to open the file with (application list) or save the file. However, when I look at the options dialog>applications, the selection for pdf documents changed from use plugin to use Adobe Acrobat Reader (not plugin). I scrolled through the selection list, but the Adobe plugin was not listed. However, when I look at the add-ons screen, the Adobe Acrobat Reader plugin is listed at the top. So, it seems like the plugin is installed, but firefox doesn't know it's there...somehow.
    How do I uninstall the Adobe Acrobat Reader plugin and re-install? Can I just do that? Or, do I need to uninstall/reinstall the entire Adobe Acrobat Reader application?
    Thanks
    Who

  • Problems displaying PDF files in browser - Help requested

    The scenario is that I visit a website that has information available via a link that normally would open a PDF document in a browser window.  The sort of document, that once open, if I clicked 'File-save as' in the browser would immediately save as a PDF file.  In the current situation I click on the link and all I get that opens is a screen full of random characters from top to bottom.  I have tried right click 'file save as' on the link that would open the PDF in the browser, but all it wants to save is a .PNG file, i.e. http://echa.europa.eu/echa-styled-theme/images/doc_lang/en.png - which is what I get from right click 'properties' on that link which should open the PDF in the brawser - normally I would see a .PDF file described. I therefore can't even download the file to open as a PDF direct from a stored location on my own PC - all it seems to see is the graphics format - this probably why when the browser goes to open the PDF file I get the random characters, i.e. the application is doing its best to translate what it does see.  I would be grateful for some advice.  Pertinant information follows:
    1.  It happens across more websites than just one example that I've quoted.
    2.  It happens on my desktop only - I don't have the problem on 4 other portable computers, including ones running the same O/S
    3.  Desktop is running Windows Home Pro, all updates executed, running the latest version of Acrobat reader with all updates executed - I tried yet another uninstall, reboot, new download, reinstall, reboot etc. yesterday.  Desktop is HP Pavillion with 12GB RAM
    4.  I get the random character display when running IE9 on the desktop, I have also replicated the problem with other versions of IE installed instead.  If I try using Chrome as a browser it goes away and tries and just fails to open the link entirely and reverts to the original page.
    5.  I've already checked online for similar problems and can confirm that all the Adobe plugins are installed per what seems standard advice I have also checked the internet settings in Adobe Acrobat preferences and all seems fine.
    6.  Thing like the browsers and Adobe arobat are running as per their standard set-ups with nothing else done to these.
    7.  Any other PDF files stored on the hard drive of the desktop open in Acrobat reader without problems
    8.  Acrobat reader version is 11.0.06.70
    Any assistance to open the PDF files in the browser and get it working particularly with IE would be great, I am quite IT literate and can try most things.  Many thanks

    Moderator
    I have no idea how to edit the above message, but apparently it has been rejected.  I cannot understand why, I am a regular contributor in many forums and have never suffered the indignity of having had a message rejected before.  The message contains an excellent example of the problems I am having in the following link Vacancies
    How on earth can I demonstrate the problems I am having without being to post an example - that example has both sorts of links on one page, ones I can open and ones I can't - if anyone with technical knowledge is trying to help me then that is just the sort of page that would be useful to help solve the problem.  Rather than the link to the ECHA website in the above posting (which I note was approved).  I struggle with your logic in accepting one message and rejecting the other.  It is difficult enough as a user to describe a problem in words let alone have the best example of the problem rejected without explanation and no right of appeal on the email that I got telling me.  Not happy here!   All I am trying to do is to solve the problem I have

  • Display pdf file on browser

    Hi,
    I am using struts 1 in my web application. I have to show a pdf, placed on my local machine, on the browser. So how should i proceed?
    Thanks
    Edited by: 848168 on Mar 29, 2011 12:37 AM

    By "placed on my local machine" do you mean that the file is on the server or on the client side?
    If it's on the server, the best you can do is run a file servlet and set the right content type and other headers. What happens to it on the client side is out of your control. e.g The client machine may not even have a pdf viewer.

  • When I try to display .pdf file in browser (with proprietry extension .dnax) I get the error message "A plugin is needed to display this content".

    I am trying to display a .pdf file within Firefox on a Vista PC. I have changed the extension from .pdf to .dnax to differentiate this .pdf file from others. I get an error message as above.
    The file is displayed using Firefox on another PC with a Linux OS without problem.
    Any advice out there?

    Firefox typically judges the nature of a document or download based on the content-type header send by the web server. Usually a server has a catalog associating file extensions with content types. When you choose a new file extension, the server may send the generic "it's some kind of binary file" header ("application/octet-stream") which Firefox will not associate with a particular program.
    Now, when you open a file from the local system, there is no web server, so Firefox may look to the file extension to ascertain the content type. Obviously that is not working in your case. What happens when you want to open the file from My Computer or Windows Explorer? Does Windows have an application assigned to it? If you can associate it with Adobe Reader in Windows, Firefox may be able to pick that up from the Windows registry.

  • How to display XML file in browser using Servlets?

    Hi My XML file is like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:purchase_order_MT xmlns:ns0="http://filetohttp.com">
    <ORDER_HEADER_IN>
    <purchase_date/>
    <purchase_group/>
    <purchase_org/>
    </ORDER_HEADER_IN>
    <vendor/>
    <ORDER_ITEMS_IN>
    <item>
    <storage_location/>
    <plant/>
    <quantity/>
    <material/>
    </item>
    </ORDER_ITEMS_IN>
    <ORDER_SCHEDULES_IN>
    <item>
    <delivery_date/>
    </item>
    </ORDER_SCHEDULES_IN>
    </ns0:purchase_order_MT>
    My Servlet receives this XML file and it should display the above XML as it is, How to do that?
    Please help me I have posted same question in many forums but i got no proper reply.
    Thanks a lot

    If you only need to display it, consider your HttpServletRequest just as byte stream. :) Just read from ServletInputStream and write it back into ServletOutputStream of HttpServletResponse.
    If you want to process incoming XML, please give some details first, what exactly you want to do. :)

  • How to display RTF File in Browser Using Servlets/JSPs

    Hi All,
    I have some RTF Files, which contains some data.
    The data needs to be displayed in the frame of jsp page .
    How i can display the RTF File Content using either servlets/jsps
    Can any body have idea on this.
    Help me out on this.
    With Regards
    Hari

    If you only need to display it, consider your HttpServletRequest just as byte stream. :) Just read from ServletInputStream and write it back into ServletOutputStream of HttpServletResponse.
    If you want to process incoming XML, please give some details first, what exactly you want to do. :)

  • Safari 4.0.5 not loading pfd files in browser

    Hello,
    This is very strange, Safari is not displaying pfd files within browser.
    I deleted, adobe plugin, then repair it. Also reinstall Acrobat 8 pro, also turn off option in
    preferences, internet plugin "Display PDF in browser using ..."
    Working fine before.
    If any body can help, I will appreciate it
    Regards
    Carlos

    HI,
    Right or control click a .PDF file then click Get Info.
    In the Get Info window click the pop up menu where you see: Open with.
    Select Safari.
    More help here. How to View PDF Files With Safari
    For Adobe. To change Safari's PDF handling back to the default. Open Adobe Acrobat and choose "Preferences" from the Acrobat menu (the main pull-down menu next to the Apple logo). In the preferences box, find the "Internet" category on the list at left and highlight it. The top "Web Browser Option" in this category will read "Display PDF in browser using Adobe Acrobat (your version)" and it will be checked. Uncheck it and click the "OK" button. If Safari is running, quit it and re-open it. Safari will then return to normal, opening PDF documents with Apple's own "Preview" application.
    Carolyn
    Message was edited by: Carolyn Samit

  • Trying to display a pdf exported report file in browser

    i am getting null pointer exceprtion when try to close the report browser.
    the same code is working perfectly in adobe reader 8. i am getting this problem adobe reader 9.
    i am exporting the report file as a pdf and saving locally. report is displayed in the browser from local directory.
    till its working fine. when close the report file.. i am getting the following error:
    java.lang.NullPointerException
            at org.eclipse.swt.ole.win32.OleClientSite.onPaint(OleClientSite.java:921)
            at org.eclipse.swt.ole.win32.OleClientSite.access$2(OleClientSite.java:906)
            at org.eclipse.swt.ole.win32.OleClientSite$1.handleEvent(OleClientSite.java:131)
            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
            at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1424)
            at org.eclipse.swt.widgets.Control.windowProc(Control.java:3842)
            at org.eclipse.swt.widgets.Display.windowProc(Display.java:4541)
            at org.eclipse.swt.internal.ole.win32.COM.CoFreeUnusedLibraries(Native Method)
            at org.eclipse.swt.ole.win32.OleClientSite.releaseObjectInterfaces(OleClientSite.java:1084)
            at org.eclipse.swt.ole.win32.OleControlSite.releaseObjectInterfaces(OleControlSite.java:683)
            at org.eclipse.swt.ole.win32.OleClientSite.onDispose(OleClientSite.java:852)
            at org.eclipse.swt.ole.win32.OleClientSite.access$1(OleClientSite.java:847)
            at org.eclipse.swt.ole.win32.OleClientSite$1.handleEvent(OleClientSite.java:128)
            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1008)
            at org.eclipse.swt.widgets.Widget.release(Widget.java:804)
            at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:755)
            at org.eclipse.swt.widgets.Widget.release(Widget.java:807)
            at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:755)
            at org.eclipse.swt.widgets.Widget.release(Widget.java:807)
            at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:755)
            at org.eclipse.swt.widgets.Canvas.releaseChildren(Canvas.java:174)
            at org.eclipse.swt.widgets.Decorations.releaseChildren(Decorations.java:771)
            at org.eclipse.swt.widgets.Shell.releaseChildren(Shell.java:1211)
            at org.eclipse.swt.widgets.Widget.release(Widget.java:807)
            at org.eclipse.swt.widgets.Widget.dispose(Widget.java:441)
            at org.eclipse.swt.widgets.Decorations.dispose(Decorations.java:446)
            at org.eclipse.swt.widgets.Shell.dispose(Shell.java:674)
            at org.eclipse.swt.widgets.Decorations.closeWidget(Decorations.java:308)
            at org.eclipse.swt.widgets.Decorations.WM_CLOSE(Decorations.java:1643)
            at org.eclipse.swt.widgets.Control.windowProc(Control.java:3789)
            at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)
            at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1576)
            at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937)
            at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528)
            at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
            at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2366)
            at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:477)
            at org.eclipse.swt.widgets.Control.windowProc(Control.java:3877)
            at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)
            at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1576)
            at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937)
            at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528)
            at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
            at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2366)
            at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:477)
            at org.eclipse.swt.widgets.Control.windowProc(Control.java:3877)
            at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)
            at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1576)
            at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937)
            at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528)
            at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
            at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2371)
            at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3420)
            at com.siemens.med.cad.hqm.view.mainUI.HQMMainForm.buildMainShell(HQMMainForm.java:246)
            at com.siemens.med.cad.hqm.event.UserLoginEventHandler.loginDisplay(UserLoginEventHandler.java:240)
            at com.siemens.med.cad.hqm.event.UserLoginEventHandler.widgetSelected(UserLoginEventHandler.java:97)
            at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
            at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
            at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
    this is my code:
    private void displayReport(String reportTitle) {
            // Shell to display the report
                Display display = Display.getDefault() ;
             Shell shell = new Shell(SWT.RESIZE //Display of the active Shell being used
                    | SWT.CLOSE | SWT.MIN | SWT.MAX | SWT.APPLICATION_MODAL);
            shell.setText(reportTitle);
            shell.setLayout(new FillLayout());
            shell.setMaximized(false);
            shell.setSize(800, 600);
            // Composite
            Composite comp = new Composite(shell, SWT.NONE);
            comp.setLayout(new FillLayout());
            // Browser
            final Browser browser = new Browser(comp, SWT.FLAT);
            // Setting the file to browser
            try {
                File file = new File(exportFile);
                URL url = file.toURL();
                browser.setUrl("file:" + url.getPath());
            } catch (MalformedURLException malURLEx) {
                // malURLEx.printStackTrace();
                throw new ProgrammingExceptionAdapter(malURLEx);
            // Add a dispose listener to the shell
            // and delete the temp file at dispose.
            shell.addDisposeListener(new DisposeListener() {
                public void widgetDisposed(DisposeEvent arg0) {
                    File file = new File(exportFile);
                    if (file != null && file.exists()) {
                        file.delete();
                    browser.dispose();            
            // Opening the file
            shell.open();
            shell.setFocus();

    I see no Crystal here.
    Sincerely,
    Ted Ueda

Maybe you are looking for

  • Error while running Process Order API to import orders - URGENT HELP NEEDED

    Hi all, I'm stuck with order import using OE_ORDER_PUB.PROCESS_ORDER api. Wanted to import a simple order in Vision database using the process order api. Figured out the right data to use, inserted into Headers and Lines Iface All tables. When callin

  • 2.2 - When are we getting a fix for the crap update? Can I get rid of 2.2?

    Ever since my phone did the update..It's a piece of crap.  It goes so slow. It freezes ALL of the time. I can't open my text messages several times a day.  I don't receive phone calls sometimes, while it's doing it's freezing thing. It has me force c

  • Does QTP support chrome 25.0 and firefox 19.0 ??

    Hi My requirement is to support chrome 25.0 and firefox 19.0 using QTP 11.5. Is it possible? if yes, explain how. It's really urgent. plz help ASAP....

  • Build In Effect Question

    I am trying to create where a series of sides where when they come onto the screen the text on the first two levels does not have an effect, but the third and fourth do "wipe in." The problem is that I can't simply isolate the third and fourth line t

  • Having problems updating from IOS 4 to IOS 5

    I have a 3rd generation 8 gb Ipod Touch, my serial number is 8K030K575J. Im trying to update from IOS 4 to IOS 5, my current software version is 4.2.1 I click the button that says check for updates and it tells me that 4.2.1 is the most up to date ve