Error con decimales al passar a excel

Ples admin remove this post

Hola.
Revisa que en la instalación del Office estén instaldos todos los componentes posibles:
- Herramientas VBA, complementos, etc.
Luego intenta eliminar las carpetas temporales de la cuenta de usuario:
- Cerrar todas las apicaciones.
- Ejecutar-> %temp% -> borrar todas las carpetas.
Abrir SB1 y probar de nuevo.
Nos cuenta cómo le va.
Saludos.

Similar Messages

  • Excel service and OWA - getting ERROR while trying to open/edit Excel documents

    Hi All,
    We have configured SharePoint 2013 with Excel Service and OWA (Office Web Apps).
    After configuring, we are able to view/edit Word or PowerPoint documents from the browser (as OWA is configured). But we are getting errors while trying to open/edit Excel documents.
    We are not able to view/edit the excel workbook from the browser (through OWA).
    To open the excel in the browser, decision has to be taken at the farm level on what to be used – Excel Service or OWA Server? Is it possible to do setting at site collection level?
    Error details are given below:
    Event code: 3005
    Event message: An unhandled exception has occurred.
    Event time: 3/25/2013 1:29:08 PM
    Event time (UTC): 3/25/2013 7:59:08 AM
    Event ID: fc2e0530f493493896e6c8b6297a0423
    Event sequence: 10
    Event occurrence: 3
    Event detail code: 0
    Application information:
        Application domain: /LM/W3SVC/2/ROOT/x-1-130086717598089315
        Trust level: Full
        Application Virtual Path: /x
        Application Path: C:\Program Files\Microsoft Office Web Apps\ExcelServicesWfe\
        Machine name: VHYDMANTHSTP-02
    Process information:
        Process ID: 1252
        Process name: w3wp.exe
        Account name: NT AUTHORITY\NETWORK SERVICE
    Exception information:
        Exception type: ArgumentException
        Exception message: An entry with the same key already exists.
       at System.Collections.Generic.TreeSet`1.AddIfNotPresent(T item)
       at System.Collections.Generic.SortedDictionary`2..ctor(IDictionary`2 dictionary, IComparer`1 comparer)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.GetInstalledUICultures()
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.IsUICultureSupported(String cultureTag, CultureInfo& cultureInfo)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICulture(String cultureTag, Boolean useOleo, Boolean allowCustomFallback)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICultureFromFrontEnd(String uiCultureTag, Boolean allowFallback)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentCulturesFromFrontEnd(String uiCultureTag, String dataCultureTag)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.SetCurrentCulturesFromContext(HttpContext context)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.PreProcessRequest(HttpContext context)
       at Microsoft.Office.Excel.WebUI.XlPreview.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    Request information:
        Request URL:
    http://mysrevr/x/_layouts/xlpreview.aspx?ui=en-US&rs=en-US&WOPISrc=http://myservernames1/_vti_bin/wopi.ashx/files/f36d669ceb814d67bdad0e1e1f98e466&wdSmallView=1
        Request path: /x/_layouts/xlpreview.aspx
        User host address: 10.81.138.92
        User: 
        Is authenticated: False
        Authentication Type: 
        Thread account name: NT AUTHORITY\NETWORK SERVICE
    Thread information:
        Thread ID: 13
        Thread account name: NT AUTHORITY\NETWORK SERVICE
        Is impersonating: False
        Stack trace:    at System.Collections.Generic.TreeSet`1.AddIfNotPresent(T item)
       at System.Collections.Generic.SortedDictionary`2..ctor(IDictionary`2 dictionary, IComparer`1 comparer)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.GetInstalledUICultures()
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.IsUICultureSupported(String cultureTag, CultureInfo& cultureInfo)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICulture(String cultureTag, Boolean useOleo, Boolean allowCustomFallback)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICultureFromFrontEnd(String uiCultureTag, Boolean allowFallback)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentCulturesFromFrontEnd(String uiCultureTag, String dataCultureTag)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.SetCurrentCulturesFromContext(HttpContext context)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.PreProcessRequest(HttpContext context)
       at Microsoft.Office.Excel.WebUI.XlPreview.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    I have the same issue while opening the file , i have checked every thing twice. but unable to fix this thing . can any one help.
    One more thing which is i am wondering none of the MS representative replied on this post which is originally posted on March 27-2013.
    is microsoft alive??
    Imran Bashir Network Administrator MCP, JNCIA-EX,ER,JNIOUS +92-333-4330176

  • Error while making a graph in excel

    I can create an excel file + worksheet + inserting data. But when i try to make a graph i get the error:
    Error accessing the OLE registry.
    in Excel Import Module.vi->Excel Insert Graph.vi->Excel Easy Graph.vi->excelreport.vi
    i searched the forum but couldn't find the answer, i am using the functions 'report generation'.
    I got my information from the tutorial :
    http://zone.ni.com/devzone/conceptd.nsf/webmain/410C4F687126E4C786256B920072A197?OpenDocument
    Attachments:
    excelreport.vi ‏73 KB

    you most have eather a simple problem or your registry is flawed anyways did you try this found it on web.
    Make sure that you are logged into the computer as local Administrator, or are part of the local Administrator group.
    To identify which registry key is causing the problem use Regmon (a freeware tool published by SysInternals). Use Regmon to capture all registry access when regsvr32 is run. If an �OpenKey� request fails with �Access Denied� (which is listed by Regmon as �ACCDENIED�) then run regedt32 and check the permissions on that registry key. If necessary change the permissions on the key to grant local Administrators �Full Control�.

  • Error when opening XLSX file with Excel 2003 SP3, file does open but in read only mode with temporary name

    I am using Excel 2003 SP3 and have the Office 2007 compatibility pack installed.  When I open Office 2007 formatted Excel files (XSLX) directly in Windows Explorer, I receive the following error if I do not have Excel already opened:
    "Windows cannot find '<path to file>'.  Make sure you typed the name correctly, and then try again.  To search for a file, click the Start button, and then click Search."
    Even though I receive the error, the file does open; however, it opens in Read Only mode with a name such as "Xl0000024.xls".  The number seems to increment up each time it happens.
    Now here is the strange part.  If I have Excel already open and try to open the file in Windows Explorer, the file opens fine in Modify mode with no error and with the correct file name.
    I Googled the error I was getting and found KB211494.  It says I should uncheck the box in Options on the General tab that says "Ignore other applications", but this box is already unchecked in my case.  Any other ideas?  This is
    really frustrating as a small percentage of our company has upgraded to Office 2007 with the rest still on Office 2003.

    This may be a file association problem.  To solve that:
    In Windows 7:
    1. Right-click the file,
    2. Select "Open With" 
    select [Your Program Here]
    3. Check always use this program. 
    In Windows XP:
    1. Locate the file as you have described above
    2. Right click the file
    3. Select Open with from the pop-up menu
    4. Click Choose default program…
    5. Select Excel in the Recommended Programs box
    6. Check Always use the selected program to open this kind of file
    7. Click on OK.
    1.  Make Excel not available from Office 2007 listed under Programs and Features in Control Panel.
    2. Take a registry backup using the steps given here
    3. In the registry editor window expand HKEY_CLASSES_ROOT and navigate to .xls right and delete it.
    4. Exit Registry Editor
    5. Undo Step 1 to make Excel available.
    6.  Restart the computer and verify it the issue is fixed.
    If this answer solves your problem, please check Mark as Answered. If this answer helps, please click the Vote as Helpful button. Cheers, Shane Devenshire

  • Error occurred while accessing application id Excel services application unattended service account from secure store service

    Hi,
      I follow up the book "Professional SharePoint 2013 Administration" to build the SharePoint 2013 BI include Excel Services. and created the Secure Store services to save the user SP_Install for member.
    For Now, I can upload the worksheet and open it in browser, but when I tried to refresh it, the SP 2013 show error "Error occurred while accessing application id Excel services application unattended service account from secure store service".
     does anybody can help ? and do I need to turn on C2WTS ? 
    Thanks
    James Liang

    Hi James,
    Excel Services can be used with Secure Store in three primary scenarios:
    Unattended Service Account
    Embedded Connections
    External Data Connections
    If you haven't configure unattended service account yet, you could refer to the article below:
    http://technet.microsoft.com/en-us/library/hh525344(v=office.15).aspx
    More information:
    http://technet.microsoft.com/en-us/library/ff191191(v=office.15).aspx
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Error con el servidor de licencias

    Hola que tal!
    Instale SAP en mi servidor con WServer 2008 y en las terminales el cliente de sap y se podia conectar todo muy bien.
    Después se cambiaron las maquinas de dominio y entro un servidor Small Business y después de eso en el server se puede accesar a SAP, pero en las terminales me marca un error con la conexion del servidor de licencias.
    Todo lo tengo con la IP del Server tanto en el mismo server como en el cliente
    Si hago un ping puedo ver la IP
    Desde SQL puedo conectarme a la instancia del server
    y ya no se que más puede ser
    Según yo por parte de SAP ya no hay mas que pueda hacer, para mi es algún permiso en el server que me esta tronando la conexion pero no se me ocurre cual puede ser, xq ya agregue al firewall el service manager, sap bo y sql, para que no los detenga y desactive el antivirus
    "Conexion sin exito con el servidor de licencias
    Alguna idea??
    gracias

    Hola.
    Intenta deshabilitar temporalmente el firewall y luego abrir algún cliente SB1. SI la conexión con el serividor de licencias se realiza sin problemas, entonces agrega explícitamente los siguientes puertos como excepciones en el firewall:
    -> 30000 y 30001.
    Tamibén te recomiendo que ejecutes el asistente de configuración de seguridad, en el paso del asistente de aplicaciones instaladas, asegúrate de seleccionar todas las aplicaciones que tienen SAP o SB1 en el nombre (por supuesto dejar las demás aplicaciones que debe tener activas por ser el único servidor: DNS, DHCP, Active Directory, etc.).
    Después si sigue el problema, revisa la configuración del Licence Server, mira esta Nota SAP 868000 License server address requested in every login.
    Hay otras cosas que revisar para asegurar el buen funcinamiento:
    - La presencia de más de un adaptador de red en el servidor.
    - Que el servidor de licencias se esté ejectando correctamente y no se detenga momentáneamente.
    - Que las últimas actualizaciones de seguridad y windows estén instaladas.
    Hay otros casos en este foro que proporcionan una guía para este problema:
    - Servidor de licencias se detiene constantemente.
    - Error del servidor de licencias.
    Quedo en espera de los resultados.
    Saludos.
    Edited by: Hector Daniel Hernandez Bacca on Apr 3, 2010 8:57 PM

  • Error while using wbutil Client_OLE2.create_obj('Excel...ora-06508

    I am facing ora-06508 error while using webutil. Have done all setup as per "How to Configure Webutil in Forms 11g ".
    Error on following statement "Client_OLE2.create_obj('Excel.Application')"
    FRM-40375, ORA-06508.
    Waiting for Help.
    Thanks;
    Edited by: umairm on Apr 20, 2012 10:16 AM

    Hi
    It is mentioned in webutil doc that, you must regenerate webutil.pll before using it; otherwise you’ll encounter error ORA-06508 when running a form with the attached library.
    Hope this helps...
    Regards,
    Amatu Allah

  • Error con " Multiprocessor Support Module"

    Hola Amigos !!!
    Acabo de instalar el Photoshop CS2 en mi computadora, y cual fue mi sorpresa que al comenzar a utilizalo, a la hora de abrir el programa, me manda un error con la siguiente leyenda.
    " Could not load the Multiprocessor support module because it does not work with this version of photoshop ."
    Quiéro pensar que a lo mejor se debe a que mi computadora tiene 2 procesadores Xeon Dual-Core. Ya que el mismo Photoshop funciono sin broncas en mi otra compu con 1 solo procesador P4.
    También Intente con este download http://www.adobe.com/support/downloads/detail.jsp?ftpID=2560, Adobe Photoshop CS Multiprocessor Support Update pero no paso nada, siguio igual..
    Alguién me podria hechar la mano ?.
    Gracias !!!
    [email protected]

    Que raro... yo tengo una dual xeon (mas no dual core) y photoshop corre bien...
    Vamos a ver que sale por ahi...

  • Error con el DTW en SQL Server 2008

    Buenas tardes...
    Bueno, la cuestion es la siguiente, estoy intentando de realizar una subida de plantillas por el DTW, a SAP 2007 SP 01 PL 10 pero cada vez que le doy a "run simulation" o a "importar" simplemente se pone la pantalla del DTW mas clara, y aparece un mensaje diciendo: "Este problema tuvo un problema y debe cerrarse" si así mismo, este problema tuvo un problema...
    Bueno. la cuestion es que aparece solo 1 boton que al precionarlo cierra el DTW por completo.
    Ya realicé la desinstalación y reinstalación, actualizando el DIAPI, reiniciando el servidor y demas pero nada. Lo unico que encuentro es en el visor de sucesos de Windows server este mensaje:
    "Aplicación con errores DTW.exe, versión 2005.0.0.30, marca de hora 0x4b4f7ce3, módulo con errores kernel32.dll, versión 6.0.6002.18005, marca de tiempo 0x49e037dd, código de excepción 0xe06d7363, desplazamiento con errores 0x0003fbae, Id. de proceso 0x430, hora de inicio de la aplicación 0x01cb958542dd4f84."
    Me preocupa mas que todo la parte que informa problemas con el DDL de Kernel32.dll si esto es así podría ser directamente un problema de incompatibilidad con Windows server 2008 pero quería primero comprobar con las personas del foro para ver si han trabajado con esta herramienta o conocen alguna solución.

    Hola nuevamente...
    Si, ya habia verificado eso, inclusive llegue a desinstalarlo y asegurarme de instalarlo del actualizador de la versión en la que se encuentra el sistema.
    Sin embargo ya logre medio solucionar el fin de semana en mi casa, Resulta ser que hice una exportación de la tabla de articulos desde SQL a Excel. Luego tome los datos de esa hoja, y los organice en la plantilla correspondiente, cambiandole a todos los articulos en la descripción, poniendoles un punto al final (todo esto en una BD de pruebas local).
    La plantilla subió y no hubo inconvenientes, por lo que el motivo del error debe de ser algún dato en la plantilla original que me dieron.
    Ahora tengo es otro inconveniente, Resulta ser que queremos hacer una carga nuevamente de los articulos, pero con los codigos cambiados ligeramente.
    Por ejemplo, el articulo originalmente era con el codigo "A-01" pero la consultora funcional que subio los articulos en el cliente los subio con "A_01" es decir a todos los articulos les puso un guion bajo, y claro esta el cliente se molesto y no lo quiere de esa manera.
    Lo que se va a hacer ahora es subir nuevamente la plantilla pero con los codigos de manera correcta, se le hara salida de inventario a los articulos con los codigos erroneos, y se bloquearan. Los filtros de busquedas se configurarán que no traigan los articulos que esten bloqueados.
    Pero he aqui el inconveniente y que estoy montando ahorita el caso en SAP, Cuando intento de subir estos articulos con el codigo de manera correcta, (es decir con los "-" correctamente), el sistema me dice que no puede subir los articulos porque los mismos "Ya existen en el sistema".
    Al buscarlo en SAP en el maestro de articulos me dice que no existe el mismo, y si busco crearlos manualmente (no por el DTW) tambien me da error de que el articulo ya existe.
    Me puse a revisar las tablas por el generador de consultas, y encontre que en la tabla de almacenes y la de lista de precios ¡Si existen estos codigos!...
    Lo que no logro comprender es porque si los mismos no pueden subir, y nunca llegaron a subir con el "-" en la base de datos, porque existen en estas 2 tablas, pero no existen en la tabla principal de Articulos.
    Gracias por la respuesta.

  • Error while opening a Office 2007 Excel (.xlsx) from a Servlet

    Hi All,
    Actually i am trying to open an excel file from a servlet. It works fine when the file format is .xls. But if it is .xlsx it gives the below error.
    "The file you are trying to open .xlsx is in a different format than specified by the file extension. verify the file is not corrupted and is from trusted source before opening the file. Do you want to open the file now?"
    There is a link in the application. When we click the link it calls the servlet. The servlet calls the DAO. The DAO queries the DB and the whole output is stuffed into a StringBuffer and the StringBuffer is written to the ServletOutputStream. I have used
    File newFile = new File("ABC.xslx");
    response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
    I have also included the below in the web.xml file.
    <mime-mapping>
    <extension>xlsx</extension>
    <mime-type>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</mime-type></mime-mapping>
    Kindly help me out.
    Thanks.

    Hi,
    I tried to create an excel through POI 3.5 using a simple java program. I am getting the same error when i try to open it.Below is my code. Kindly let me know the problem.
    I am getting the error ""The file you are trying to open .xlsx is in a different format than specified by the file extension. verify the file is not corrupted and is from trusted source before opening the file. Do you want to open the file now?" when opening the .xlsx file.
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.File;
    import java.io.IOException;
    import java.util.ArrayList;
    import org.apache.poi.hssf.usermodel.HSSFRow;
    import org.apache.poi.hssf.usermodel.HSSFSheet;
    import org.apache.poi.hssf.usermodel.HSSFWorkbook;
    public class test {
    public static void main(String args[]) throws IOException{
    //ExportLobBean exportLobsForm = null;
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet sheet = wb.createSheet();
    //ArrayList lobList = ExportLobBO.getArrayList();
    //int length = lobList.size();
    int rowCount=0;
    int count=0;
    HSSFRow headerRow = sheet.createRow((short) 0);
    HSSFRow dataRow = null;
    //Creating Column Names
    headerRow.createCell((short)0).setCellValue("LOB-ID");
    headerRow.createCell((short)1).setCellValue("LOB-NAME");
    headerRow.createCell((short)2).setCellValue("WEIGHT");
    for(int i=0;i<5;i++){
    rowCount++;
    sheet.createRow((short)rowCount);
    //exportLobsForm = (ExportLobBean)lobList.get(count);
    headerRow.createCell((short)0).setCellValue(1);
    //LOGGER.info("Lob id "+exportLobsForm.getStrLobId());
    headerRow.createCell((short)1).setCellValue(2);
    //LOGGER.info("Lob name"+exportLobsForm.getStrLobName());
    headerRow.createCell((short)2).setCellValue(3);
    //LOGGER.info("Lob weight"+exportLobsForm.getStrLobWeight());
    count++;
    File f = new File("c:\\test.xlsx");
    FileOutputStream fos = new FileOutputStream(f);
    wb.write(fos);
    }

  • 'dimension attribute was not found' error while refresing the cube in Excel

    Dear All,
    Thanks for all your support and help.
    I need an urgent support from you as I am stuck up here from nearly past 2-3 days and not getting a clue on it.
    I have re-named a dimension attribute 'XX' to 'xx' (Caps to small)in my cube and cleared all dependencies (In Attribute relationship tab as well).
    But while refreshing the data in excel client (of course after processing the full cube) I get an error
    'Query (1, 1911) the [Dimension Name].[Hierarchy Name].[Level Name].[XX] dimension attribute was not found' error.
    Here I am trying to re-fresh an existing report without any changes with the new data.
    Does not it re-fresh automatically if we clear the dependencies or there something that I am missing here (Like order of the dependencies).
    Cube processed completely after modifications and able to create new reports without any issues for same data. What else could be the reason?
    Can some one help me here?
    Thanks in Advance and Regards,

    Thnaks alot Vikram,
    In se11  ,when i was trying to activate the  /BIC/FZBKUPC , it is showing the warnings  like
    Key field KEY_ZBKUPCP has num. type INT4: Buffering not possible, Transport restricted.What it means.
    In PErformance Window it is showing like:
    A numeric type was used for a key field. A table of this sort cannot be buffered.When buffering, the table records for numeric values cannot be stored in plain text.
    Procedure
    You can enter "no buffering" as an attribute of the technical settings and then repeat the activation process. The table is not buffered.
    If you want to buffer the table, you must replace the type in the key field by a character type, i.e. that you must modify the table.
    Please adivice with your valueable suggestyions.
    Thanks Vikram.

  • Error reading zip file containing an excel file

    Hi all,
    Using servlets I am able to zip an excel file using java.util.zip package. The excel file is created using POI API.
    While I save and extract the zip file on my machine and then open the file in MS Excel. Excel pops a message saying "MS Office Excel has encountered a problem and need to close" and it gives me an option to "Recover my work and restart MS Office Excel". I select the option and then MS Excel does a document recovery and I am able to view my data. I get an excel repair log file saying as follows
    "Microsoft Office Excel File Repair Log
    Errors were detected in file 'C:\Documents and Settings\JohnDoe\Desktop\excel\test.xls'
    The following is a list of repairs:
    Damage to the file was so extensive that repairs were not possible. Excel attempted to recover your formulas and values, but some data may have been lost or corrupted.
    I have attached my servlet code down below I suspect there is a problem with PrintWriter to output or do I need to use OutputStream to write excel data.
    Below is my servlet code:
    import java.io.*;
    import javax.servlet.*;
    import org.apache.log4j.Logger;
    import java.util.*;
    import java.util.zip.*;
    import java.net.*;
    import org.apache.poi.hssf.usermodel.*;
    import org.apache.poi.hssf.record.*;
    import org.apache.poi.hssf.util.*;
    public class ZipServlet extends HttpServlet {
         * @see javax.servlet.http.HttpServlet#doGet(javax.servlet.http.HttpServletRequest,
         * javax.servlet.http.HttpServletResponse)
         public void doGet(HttpServletRequest request, HttpServletResponse response)
              throws ServletException, IOException {
              makeZip(request, response, "GET");
         * @see javax.servlet.http.HttpServlet#doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         protected void doPost(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException {
                   makeZip(request, response, "POST");
         public void makeZip(HttpServletRequest request, HttpServletResponse response, String methodGetPost) {
              Logger logger = Logger.getLogger(ZipServlet.class);
              try
                   int id=1;
                   ServletContext sc = getServletContext();
         HttpSession session = request.getSession();          
                   ConnectionPoolManager cpm = (ConnectionPoolManager)sc.getAttribute("CONNECTION_POOL_MANAGER");
                   ConnectionPool cp = cpm.getConnectionPool(id);
              createTestExcelZip(request,response,methodGetPost,session);
              } catch (Exception e2) {
         public void createTestExcelZip(HttpServletRequest request, HttpServletResponse response,
                   String methodGetPost,HttpSession session
                   )throws ServletException, IOException
              Logger logger = Logger.getLogger(ZipServlet.class);
              try
              {      //Create an Excel Workbook and placing value "Test" in the first cell
                   HSSFWorkbook wb = new HSSFWorkbook();
                   HSSFSheet sheet = wb.createSheet("new sheet");
                   HSSFCell cell=null;
                   HSSFRow row = sheet.createRow((short) 0);
                   short column = 0;
                   cell = row.createCell(column);
                   cell.setCellValue(new HSSFRichTextString("Test"));
                   HSSFCellStyle fontStyle = wb.createCellStyle();
              HSSFFont f = wb.createFont();
              f.setFontHeight((short) 200);
              f.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
              fontStyle.setFont(f);
              cell.setCellStyle(fontStyle);
              response.setContentType("application/zip");
                   response.setHeader("Content-Disposition","attachment; filename=zipExcelRecordFiles.zip;");
                   int BUFFER = 2048;
                   byte buf[]=new byte[300000];
                   ByteArrayOutputStream baos = new ByteArrayOutputStream();
                   ZipOutputStream zos = new ZipOutputStream( baos );
                   ByteArrayInputStream is = null;
                   BufferedInputStream origin = null;
                   byte[] b = null;
                   String fileName = null;
                   b = wb.getBytes();
                   fileName = "testExcelRecords.xls";
                   try
                   is = new ByteArrayInputStream(b);
                   origin = new BufferedInputStream(is, BUFFER);
                   zos.putNextEntry(new ZipEntry(fileName)); // Add ZIP entry to output stream.
              int count;
              while((count = origin.read(buf, 0, BUFFER)) != -1)
              zos.write(buf, 0, count);
              zos.closeEntry(); // Complete the entry
                   is.close();
                   }catch(Exception e)
                        logger.error(e);
                   zos.close();
              PrintWriter pr = response.getWriter();
                   pr.write(baos.toString("ISO-8859-1"));
                   pr.close();
              catch(Exception e)
              logger.error(e);     
         * @see javax.servlet.GenericServlet#destroy()
         public void destroy() {
    Any help would be appreciated.
    Regards
    jdcunha

    Jdcunha,
    I am new to the field but encountered the same problem and recently found a solution. Hope this helps.
    For my project I wanted to create individual Excel 2003 workbooks for each file I created. Excel would give me the same error it gave you when I used the same HSSFWorkbook object. I tried creating a new Workbook object each time, but ran into the same issue.
    I ended up fixing the error by creating a new instance of my write-to-excel class each time I wanted to create a new workbook, instead of just recreating a new HSSFWorkbook object. It works perfectly and the Excel errors don't show. It may also be important to note I used OutputStream, I did not try it with printwriter.

  • Webutil error while trying to open an excel file

    Hi, I´m using oracle forms to read an excel file, I have two installations in different servers using oracle app server 9.04 and in one of this installations while trying to read an excel file i get the following error message in the java console:
    2006-jul-14 10:45:27.718 ERROR>WUO-708 [OleFunctions.get_obj_property()] No se ha podido obtener la propiedad: Workbooks; Excepción
    com.jacob.com.ComFailException: A COM exception has been encountered:
    At Invoke of: Workbooks
    Description: An unknown COM error has occured.
    2006-jul-14 10:45:36.140 WUO[getProperty()] Getting property WUO_OLE2_CREATE_ARGLIST
    2006-jul-14 10:45:37.781 WUO[setProperty()] Setting property WUO_OLE2_HANDLE to 2
    2006-jul-14 10:45:37.781 WUO[setProperty()] Setting property WUO_OLE2_ADD_ARG to SD:\UPLOADS\FILE.xls
    I dont really know where to start to try and solve this issue, any help is greatly appreciated
    Thanks
    Hi, I´m using oracle forms to read an excel file, I have two installations in different servers using oracle app server 9.04 and in one of this installations while trying to read an excel file i get the following error message in the java console:
    2006-jul-14 10:45:27.718 ERROR>WUO-708 [OleFunctions.get_obj_property()] No se ha podido obtener la propiedad: Workbooks; Exception
    com.jacob.com.ComFailException: A COM exception has been encountered:
    At Invoke of: Workbooks
    Description: An unknown COM error has occured.
    2006-jul-14 10:45:36.140 WUO[getProperty()] Getting property WUO_OLE2_CREATE_ARGLIST
    2006-jul-14 10:45:37.781 WUO[setProperty()] Setting property WUO_OLE2_HANDLE to 2
    2006-jul-14 10:45:37.781 WUO[setProperty()] Setting property WUO_OLE2_ADD_ARG to SD:\UPLOADS\FILE.xls
    I dont really know where to start to try and solve this issue, any help is greatly appreciated
    Thanks

    I created a system DSN named odbc_excel. Then, I created a file named initexcelsid.ora with the following arguments:
    HS_FDS_CONNECT_INFO = odbc_excel
    HS_AUTOREGISTER = TRUE
    HS_DB_NAME = dg4odbc
    In the location, I put excelsid in the Service_Name entry. Do you need me to post the listener.ora file or something else?
    Thank you.

  • Error when running a report to Excel

    I receive an error when trying to run a report out of FDM in Excel. The report runs fine in PDF form but when running in excel it loses the formatting of the report and I get an error saying "excel found unreadable content". This report runs in all locations within FDM except for one. Has anyone ever come across this error? I am not sure why it would work for all other locations and just come up with an error for one location.

    Did you write that software, COTS package called Medgate?
    If not then ask that company for support. No one here would know how to fix it. They are using the CR RDC report engine.
    Thank you
    Don

  • Intermittent Error 41106 Error when trying to open an Excel file.

    I am having an intermittent problem while opening an Excel file.  The problem only occurs occasionally during execution of my program.  My program has a cluster of buttons each button opens a sub VI that is part of a calibration process.  The first VI generates an EXCEL filename that is used to save all calibration data.  A template is opened, data is placed in this template, and then it is saved under the generated filename.  Most of the time this seems to work fine, but every once in a while I receive a -41106 error indicating that Microsoft EXCEL did not open.  As far as I can tell when I run each sub VI independently they work fine and no errors are generated.  Does anyone know why this might be happening?  I would appreciate any help.
    Thanks 

    What version of LabVIEW and the Report Generation Toolkit are you using?  I remember adding some code in the 1.1 version of the toolkit to attempt to avoid some Microsoft Excel latencies with opening/closing the application repeatedly, but it was by no means fool proof, since Excel sometimes takes its sweet time leaving memory when the application exits.  Without knowing any more specifics, my best suggestion is for you to add a small delay between successive operations regarding opening/closing Excel and see if that helps.  Also, if you could post a simple VI that demonstrates the behavior, that would be extra helpful.
    Oh yeah, and another suggestion would be to open one report reference at the beginning of your program, and use this reference through the whole thing...I understand that this might not be possible, though, if you're opening different worksheets throughout the course of your application running.
    Good luck,
    -D
    P.S. - For those of you reading this wondering why I would automatically assume MegaMan is using the Report Generation Toolkit, he cites error -41106, which is an error specific to this toolkit.
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

Maybe you are looking for

  • Problem with playing HD videos

    Hello, My problem is with playing HD videos ( 720p or Full HD). After upgrading Windows on my laptop and installing drivers, everything was fine till i tried to solve the win 8.1 problem with display drivers and inability to change the level of brigh

  • URGENT!!! can I borrow a valid jserv.properties file for a JSP application ?

    Hi there ! I'm running Oracle enterprise edition on NT with oracle http server under apache. I created a JSP application using jdeveloper and deployed it to the web server. Now I'm still getting getting nullPointer exceptions after I have modified th

  • I have just upgraded to the new maverick system

    Everything seemed to go well but now any documents created on my Ipad (also just updated) pages, numbers and keynote will not open on my mac.  it tell me "a newer version of pages etc is availabe".  But as said this has also been updated.  I have tri

  • How to synchronize two NI9215 DAQmx cards?

    Hi there, I'm using two NI9215 DAQmx cards (4ch simultaneous sampling analog inputs) in a chassis type cDAQ-9174. Since I need to aquire 8 channels simultaneously I've two NI9215 cards. My question is how do I configure these cards to be synchonized?

  • Adobe reader still not working properly...

    My problem is this: Adobe Reader opens up the main window, remains up for about 2-3 seconds, then closes. No error dialogue boxes, nothing. It doesn't matter if I open a .pdf file directly, or just run the Reader executable. I've reinstalled; I've un