Insert to excel problem

Hi all, i got a problem when using jsp to import some data to excel by importing org.apache.poi. Then, the excel contains macro , so when i use response.sendRedirect("xxx directory of the file xxx") to display that file, click enable the macro, the file cannot open and make the cpu usage very high, however it will not happen when the user choose disable macro. So, why would this happen? since i need to enable it to do other sorting part, or any other good way i can approach with the excel? Thank you very much.

JSPs do one thing well - generate HTML. There aren't intended as general purpose transaction handlers and they certainly don't know how to generate XLS files.
To generate an XLS file try the POI package, which you'll find links to from www.sourceforge.org.
To generate one in a web server environment use a servlet, and call the POI classes from that.

Similar Messages

  • Insert an excel file in my form

    how do I insert an excel file into my form?

    In this instance, I need only one drop down when given the choice to enter for multiple locations, a form appears on click and can be completed and saved to the document. When , when sent to end user, it can be opened and viewed. Example below.

  • I cant export my pdf to excel - Problem with conversion

    I cant export my pdf to excel - Problem with conversion
    Somebody is having this problem?

    Hi,
    May i know what is the challenge you are facing?
    Check with another file.
    You can try with different browser as well.
    Regards,
    Florence

  • How to copy the XY graph on labview front panel and insert into Excel using labview

    Hi all,
    The XY graph display on LV front panel after test. How can I copy this XY graph and insert into excel file?
    Thank you very much for your help.
    Khanh

    KPRO wrote:
    Hi,
    I refer to insert it into excel since report is in excel format, but if it's too hard to do so I can save it in another format.
    Either way, will labview support this? Anyway, thank you very much for your quick reply.
    Khanh
    You are already using the Report Generation Toolkit?  There is the "Append Control Image to Report.vi" that would make this easy.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Excel problem StarStarStarStarStar Written by MA from Dubai  i have problem in excel when i write Arabic or i receive any excel file contain Arabic word it come like letters it do not come like word my Microsoft office is 2011 what i can do

    excel problem
    i have problem in excel when i write Arabic or i receive any excel file contain Arabic word it come like letters   it do not come like word
    my Microsoft office is 2011
    what i can do

    MS Office for Mac does not really support Arabic.  But you may just have a font problem.  Disconnected letters means a Windows font is being used.  Change the font to a Mac font like Geeza Pro.
    For better Arabic support, try OpenOffice.

  • Nokia C7 Insert Sim Card Problem

    Hi,
    I got my c7  and there are two points I need to discuss
    1) after 2 days I have faced  insert sim card problem , Please let me know if this can be fixed , how it can be fix or should I contact Nokia SC 
    has anybody faced this problem before or it it just a clinch in Nokia C7 and needs a software update.
    Here is my Nokia SW Version
    Software Version : 012.004
    Custom  Version :  012.004.C02.01
    Type                       :  RM-675
    2) Phone Heat ups 
       After talking around 20 mins on phone , phone heats up , is this normal with smart phones ?
    Thanks in Advance.

    hi majiclover
    1) Spekar phone is bit/very Dull
    2) normal spekar is bit "ok"
    I would prefer Nokia 2626 as it has Very good Sound normal and spekar phone.
    Free advice : you might want to give second thought.!!!
    my porblem STILL persists.   Heat problem I dont know but it does when
    1) Charging
    2) Speaking for more then 10-15 min.( NOT Expected from New phone)
    and it heats up and heats up ................you can not keep it near your ear for long.

  • Additional Controls vba for Excel "problem"

    Additional Controls vba for Excel "problem" Failure to appear when you press its button. I am using Office 2013 and Windows OS 8 (32bit).
    Note
    should
    focus on, I
    use Office
    2013
    - the
    system
    Windows 8
    (32-bit).
    Please help me, and accept a multitude of thanks and respect..

    Hi ghass
    Your question is not belong to the current Windows Store App dev forum.
    To help you move the thread to the correct forum, I would ask you some questions: Is your issue a build-in ActiveX control issue?
    I will move your thread to either OfficeDev forum or Office consumer forum.
    Thanks for your understanding.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Script for the SAP report - download to excel - problem

    Hi all
    I know that similar problem had already been discussed but going through the solution presented in
    any of that topic I was not able to be successful  (I am beginner in terms of VBA and SAP scripting)
    What I would like to do is simply create the SAP script which based on the parameters filled
    in in the excel sheet (user form created) will connect to SAP and make the report which I would like to have saved on my local drive as an excel file.
    Everything is ok till the moment I would like to save it.  As you know SAP records the macro only till the moment some window pops up (where and under what name you would like to have your report  saved)
    Could you please advise  ?
    As a screen I attached also point where macro stops (maybe this makes difference)
    Thank you in advance for any suggestions.
    Below my code.
    Private Sub CommandButton1_Click()
    Dim MojaData
    MojaData = ComboBox2.Value
    Dim Companycode
    Companycode = ComboBox1.Value
    Dim Depreciation_area
    Depreciation_area = ComboBox3.Value
    If Not IsObject(Application1) Then
    Set SapGuiAuto = GetObject("SAPGUI")
    Set Application1 = SapGuiAuto.GetScriptingEngine
    End If
    If Not IsObject(Connection) Then
    Set Connection = Application1.Children(0)
    End If
      If Not IsObject(session) Then
         Set session = Connection.Children(0)
      End If
    If IsObject(WScript) Then
    WScript.ConnectObject session, "on"
    WScript.ConnectObject Application1, "on"
    End If
    Dim sbar As String
    sbar = session.findById("wnd[0]/sbar").Text
    session.findById("wnd[0]").maximize
    session.findById("wnd[0]/tbar[0]/okcd").Text = "/n s_alr_87011990"
    session.findById("wnd[0]").sendVKey 0
    session.findById("wnd[0]/usr/ctxtBUKRS-LOW").Text = Companycode
    session.findById("wnd[0]/usr/ctxtSO_ANLKL-LOW").Text = ""
    session.findById("wnd[0]/usr/ctxtBERDATUM").Text = MojaData
    session.findById("wnd[0]/usr/ctxtBEREICH1").Text = Depreciation_area
    session.findById("wnd[0]/usr/ctxtSRTVR").Text = "0003"
    session.findById("wnd[0]/usr/radSUMMB").SetFocus
    session.findById("wnd[0]/tbar[1]/btn[8]").press
    session.findById("wnd[0]/mbar/menu[0]/menu[1]/menu[1]").Select

    MJ MJ - I cannot replicate a screen like you have to test it but here's what I would suggest:
    Immediately above the command that brings up the SAVE AS dialog, insert these lines:
    ... your code up to here.....
    FileName = "C:\Apps\Notifications.txt"     '<----- enter your save file path/name
    Wshell.run "C:\Apps\DataLoad.vbs " & FileName,1,False     '<-- call up the loader program
    ... then continue with your code....
    Then build a program "dataload.vbs" as follows:
    Dim FileNam2
    Set Wshell = CreateObject("WScript.Shell")
    Do 
    bWindowFound = Wshell.AppActivate("Save As") 
    WScript.Sleep 1000
    Loop Until bWindowFound
    bWindowFound = Wshell.AppActivate("Save As") 
    if (bWindowFound) Then
    Wshell.appActivate "Save As"
    WScript.Sleep 100
    Wshell.sendkeys "{TAB}"
    Wshell.sendkeys "{TAB}"
    Wshell.sendkeys "{TAB}"
    Wshell.sendkeys "{TAB}"
    Wshell.sendkeys "{TAB}"   'make 4 or 5 depending on the platform 4:XP, 5:Win7
    WScript.Sleep 100
    FileNam2 = WScript.Arguments.Item(0)  
    Wshell.sendkeys FileNam2
    WScript.Sleep 100
    Wshell.sendkeys "{ENTER}"
    WScript.Sleep 100
    end if
    This should do the trick of copying your filename into the filename box in the SAVE AS dialog.As I said, I did not get to test it but that is the theory.
    Trial-and-error is the only way in many cases.
    Good luck
    Regards
    Umur

  • Export to Excel problem in Signal Express 2012

    Equipment used: PXIE-8102 CELERON T3100 1.9GHZ Controller Windows 7, PXIE-1071 4 Slot Chassis, PXIE-4140 4-Channel SMU 1.7.5 version.
    I am using Signal Express 2012 and the SMU to plot the I/V characteristics of FET and other active devices. I am able to obtain the anticipated curve traced results but I am not able to Export the data to Excel directly from the Data View using the Microsoft Excel option. The error message is: Data could not be sent to Microsoft Excel. Please ensure you have a properly licensed version of Microsoft Excel. See attachment.
    We have checked our version of Microsoft Office, it is Professional Plus and has the correct volume license so it does not revert to a home or student version.
    I have been able to use the Export to Excel function directly from the Dataview when I was using one of the waveform tutorials supplied with Signal Express so I suspect it is a function of the SMU.
    In conversations with an NI support engineer he felt it may be a problem with "an active x call is just not seeing the license for some reason", his suggestion is to drag the data into Excel rather than use the Data view tab. Because the SMU is being used in a production environment it is not really appropriate to have the operator work at this level so I would rather figure a way to have the data exported using the Data View tab.
    Anyway please can you let me know if there are any known work around for this issue.
    Thank you

    Calvin1957,
    I am not seeing any attachments in the first post or this latest post. The images should be added using the attachments section when creating the post. You should also be able to insert an image using the insert image button in the toolbar. Let me know if you have any questions. Thanks!
    Robert B
    Applications Engineer
    National Instruments

  • SQL Developer Import Excel problem

    I just recently installed SQL Developer (1.1.3).
    I created a table with 4-columns all char datatype.
    I tried to import an excel file into this table. Checked Header Row )1st excel record is header) and move all Available columns into Selectedcolumns. All my excel records are shown on the data preview. But when I click on [Insert], it gave me a message: No columns selected for insert.
    When I viewed the DML: insert into TBLCLOSETIMETABLE (Choose Data Type,Choose Data Type,Choose Data Type,Choose Data Type) VALUES('January','Thursday, February 01, 2007','Payroll','1st Wk');
    Any help will be greatly appreciated.

    I was able to "successfully" import excel files. I did not know I had to edit/map on the Data Types tab.
    Now I have a different problem where I have my date in excel as 01-Feb-07 and the
    Data Preview pane shows 39,114.
    I was not able to successfully import this column.
    Again, any help will be greatly appreciated.

  • Importing data into an existing table from excel problem

    Hopefully I am posting this in the right place..
    I am having trouble importing data from Excel into an oracle table using the 'import data' wizard in SQL developer.
    The problem is that the I want to import data into a table which all ready has data and I want the new data to be imported into the first row of the table not in a new row at the end of the table.
    This is probably best shown by example:
    create table todelete (
         site_no varchar2(2),
         data1 number,
         qa number);
    insert into todelete values ('w1',1,null);
    insert into todelete values ('w1',2, null);
    insert into todelete values ('w1',3,null);
    Now I want to import the following data from excel into the QA column starting at w1:
    SITE_NO
    QA
    w1
    4
    w2
    4
    w3
    4
    However, when I import the QA column it goes into a new row:
    SITE_NO
    DATA1
    QA
    w1
    1
    NULL
    w2
    2
    NULL
    w3
    3
    NULL
    NULL
    NULL
    4
    NULL
    NULL
    4
    NULL
    NULL
    4

    The problem is that the I want to import data into a table which all ready has data and I want the new data to be imported into the first row of the table not in a new row at the end of the table.
    No - the PROBLEM is that a table does NOT have a 'first' row or a 'row at the end of the table'.
    Rows in a table are like balls in a basket; there is NO 'first' ball.
    As already suggested please mark this thread ANSWERED and repost it in the sql developer forum where it belongs.

  • Excel Problems with Mt Lion

    Funny with an Excel file with many sheets (14) on my 17" MacBook Pro, using Mail, if I click on the Excel file to open it, all I get a sheet however all the data does not display in the Excel file. 
    However if I take the same file and drag it to my desktop, letting it create a new file then open the file all the data is in the Excel spread sheet.
    Just wondering if any one else is having a problem with Excel, Mail, & Mt Lion?
    thank you for any reply John

    I've upgraded to Leopard and also have had difficulty printing in excel (using Office for Mac 2004 Student/Teacher Ed)....Word, Powerpoint, and Entourage all print fine.....and I print fine off the internet and in Apple iWork (Numbers, Pages) and in "Mail" . REally strange.....
    I am able to open files in excel, but cannot print them....
    I'm a former PC guy.....very set in my ways (I was) until I bought my wife an iMac G5 last year, before Intel came out. Anyway....she loved the Mac so when my Laptop hard drive fried, I decide to take the plunge and am I glad i did......
    I'm frustrated about this glitch with excel in Leopard....but for those of us who have attempted to (and succeeded) upgrade Microsoft Operating systems (though you never really succeed....Microsoft just keeps fixing things...with new patches or new service packs!).....well you know what I mean....upgrading to Leopard was a breeze.....I just wish I could figure out this problem with printing in excel!
    I would drop excel and just use "Numbers", but I work with all PC users (using various versions of Office) so I need to make sure they can open my "Numbers and Pages" files and even amend them if needed,...which I don't know they can do??????? i know I just jumped subjects here...but anyone have any thoughts on this too?
    To summarize:
    1. problems printing in excel with Leopard upgrade on macbook.
    2. can PC users with Office 2004 (I don't think any use the new 2007)....open my files from email if I generate them with Numbers or Pages?
    Thanks,
    Steve D.

  • Smartview 11.1.2.2  Excel Problem

    Hello,
    I installed 11.1.2.2 smartview after uninstalling 11.1.1.3.5 as 11.1.2.2 has been certified to be backward compatible. Every time i open Excel i get the following message.
    C:\Hyperion\Smartview\Bin\HSTbar.xla could not be found. Check the spelling of the filename, and verify the file location is correct.
    Did anyone had this issue ? If so please let me know how to get rid of this issue.
    Thanks in advance

    I had a similar problem with an install of 11.1.2.1 where the uninstall of the older version left a registry entry behind. Try looking in [HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Excel\options] and there should be some OPEN commands in there for Smartview. I guess depending on the install it could be different, but I think the correct path would be C:\Oracle\Smartview\Bin\HsTbar.xla. If you see any OPEN commands with the directory you mention below (C:\Hyperion) I would think you would want to change or delete those (unless of course that is the right directory) and then renumber the remaining OPEN commands to be in sequential order.
    Obviously, backup the registry before trying any of this as this may be a completely unrelated problem from what I had.

  • Insert CLOB values problem with 9.2 drivers and not with 10

    Hi
    We are using Oracle 9.2.0.5. We need to insert values bigger than 4000bytes using thin connection, so we've decided to use CLOB fields. With the 9.2.0.5 driver we can't do it, obtaining the classical exception explaining the data is bigger than the supported size but with the 10g driver (and, of course, same java code) it worked. The problem is that we want to mantain the equivalence between the database and driver not using the 10g driver with the 9.2.0.5 version of the db.
    Here it's the test code we've used:
    Data generation:     
              String data = "";
              Random rnd = new Random();
              long cont = 10000;
              while (cont > 0){               
                   int result = rnd.nextInt(255);
                   data = data + result;
                   cont--;
              Integer id = new Integer(2);
    Data insertion:
                   String queryString="INSERT INTO TMP_BUG_ORACLE (ID, VALOR) VALUES (?,?)";
                   preparedStatement = connection.prepareStatement(queryString);
                   preparedStatement.setInt(1,1);
                   preparedStatement.setString(2,this.datos);
                   int numero = preparedStatement.executeUpdate();               
                   System.out.println("Items inserted: " + numero);
                   preparedStatement.close();
                   connection.close();
    Table structure
         Name:          Type:
         ID           NUMBER
         VALOR      CLOB
    Response (only with 9.2.0.5 driver):
    java.sql.SQLException: El tamaño de los datos es mayor que el tamaño máximo para este tipo: 25708 (Data size is bigger than the maximum for this type: 25708)
    Thank you very much for all

    Hi,
    I had exactly the same problem. on Oracle 9.2 I wanted to insert a template file bigger than 4K. with the ojdbc14.jar from Oracle 9.2 it was not possible.
    What I did was this:
    I have used a JDBCwrapper to fix this issue. I can send it to you, if you send me your email.
    When I use the ojdbc14.jar from Oracle 10, I cannot insert a bigger file.
    How did you code your programm to insert big size data into a CLOB field with ojdbc14.jar driver from 10?
    thank you for your response

  • Download file from UNIX to EXCEL problem

    Hi,
    I am trying to download file from UNIX server to excel file, there is one column which is messing up and that is number 100000000000000002 (18 in length) it is writing as 1E+17, funny thing is when I click on that cell it is showing as
    100000000000000000.
    I am using GUI_DOWNLOAD to download to excel, below is the output excel format, I am talking about 4th value from left
    GUID    leg_reg     lic_type     lic_num     ex_lic_num     vali_from     valid_to     created_by
    3E633B85C05E6F28E100     EAR     ENC     1E+17     ENC     20030305     20930305     VANRIJ
    below is the program I am using to download the output from UNIX to excel
    FORM get_data_file.
      OPEN DATASET p_unxfil FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      IF sy-subrc = 0.
        DO.
          READ DATASET p_unxfil INTO input_file_tab-line_string.
          IF sy-subrc <> 0.
            EXIT.
          ENDIF.
          APPEND input_file_tab.
          CLEAR  input_file_tab.
        ENDDO.
      ELSE.
        PERFORM write_message USING 'ZZ' 'E' '000'
          'Unable to find file' p_unxfil
          '  Press Enter key to exit.' ''.
      ENDIF.
      CLOSE DATASET p_unxfil.
      DESCRIBE TABLE input_file_tab LINES record_cnt.
    ENDFORM.                    " get_data_file
    FORM create_pc_file.
      DATA: l_file TYPE string.
      MOVE p_pcfile TO l_file.
    Save the file
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = l_file
        TABLES
          data_tab                = input_file_tab
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6
          header_not_allowed      = 7
          separator_not_allowed   = 8
          filesize_not_allowed    = 9
          header_too_long         = 10
          dp_error_create         = 11
          dp_error_send           = 12
          dp_error_write          = 13
          unknown_dp_error        = 14
          access_denied           = 15
          dp_out_of_memory        = 16
          disk_full               = 17
          dp_timeout              = 18
          file_not_found          = 19
          dataprovider_exception  = 20
          control_flush_error     = 21
          OTHERS                  = 22.
      IF sy-subrc NE 0.
        WRITE: / 'Error creating pc file', p_pcfile.
        EXIT.
    endif.
    I will assure of points.
    Thanks for your help
    Sarath

    It is not the problem of your program. This happens becuase of the "nature" of the excel. You need to retain the text property of that column.
    Try like this:
    1. Download the file in .txt
    2. Open Excel .. blank sheet
    3. Now, click on Open. Select your .txt file
    4. One pop up will come ..."Text Import Wizard"
    5. Select the fixed width or Delimited ... Press Next ...
    6. Select appropriate delimitors or fixed length .. press Next
    7. Select your coulumn (which has the problem), Select the "Text" radiobutton on the upper-right corner and finish.
    Regards,
    Naimesh Patel

Maybe you are looking for

  • How to open database when datafile of nonsystem tablespace is missing?

    Hi, I am runnig 10gR2 on Windows XP SP 2 Here my situation: My db is running in archive mode. I have taken backup of my tablespace 'ocp' by using RMAN with Database Control. Now I shutdown the db and removed datafile which belongs to the tablespace.

  • Having Problems / Waits while Rollback

    Hi guys/Gurus, Hope you all doing well. I am having problem. The database is 9ir2.0.0.8. While doing an heavy transaction(Inserting in around 15 tables, 2000 records each.) The transaction encountered an error at the end before the commit statement.

  • Varifying billing of itunes

    I tried redeeming my itunes card onto the itunes store, but it takes me back to filling out the application to get an apple id...then I tried with only my debit card, but it states i must have an itunes card to redeem as well. I used to have an apple

  • Maintaining client session in request for pages from different servers

    Dear sirs, I have a JSP page which is running on a server in a client session. In the JSP, i have a link which is pointing to the JSP of another application running on a different server. How can we maintain the communication in the same client sessi

  • After updating, several apps close upon opening.Any ideas?

    I recently updated my ipod touch, now several apps close upon opening them. Any ideas?