Opening excel using OLE2

While creating an excel file, In server a higher version of excel is installed. but in client the lower version is installed. Can we explicity tell the version in which the excel application is to be created.
we have used the following OLE2.CREATE_OBJ(excel.application) to create an excel file

I have a problem while accessing the form in which i have used Client.OLE2. Everytime i execute the form i get a JInitiator Security Warning asking for
Do you want to install and run signed applet distributed by "Product Management"
etc.....
Grant this session?
Deny?
Grant always?
View Certificate?
When i give Grant always i dont get the message again the same day. but the next day again it prompts the same warning.
Can we suppress the warning window? Do u have any other alternate solution???

Similar Messages

  • "Open In Excel" button inside the Xlviewer.aspx page return Error and I can not open excel using local office

    Inside the xlviewer.aspx page when I click on "Open In Excel" at first I receive this Error: 
    Some files contain viruses that can be harmful to your computer. it is important to be certain that this file is from a trustworthy sourceDo you want to open this file?
    Then, When I click on Yes, the second error message(below) shows and I can not open Excel using my local Excel Application.
    This action couldn't be performed because office doesn't recognize the command it was given.
    I should notice that the application is published under the HTTPS protocol.
    It is just working with IE 9.0. Neither Chrome nor IE after 9.0.

    Sure. I posted here since I suspect that the lastest upgrade may have a bearing on it.
    What do I need to move it over to Number and Lion?

  • How to fix the row-height in excel using ole2

    hi
    I want to fix row height in excel using ole2.
    i wrote the below code but no effect. please help me.
    Arg := ole2.create_arglist;
         ole2.add_arg(Arg,1);
         rrow := ole2.get_obj_property(WorkSheet,'Rows',Arg);
         ole2.destroy_arglist(arg);
         ole2.set_property(rrow,'Height',50);
    kanish

    It's solved
         ole2.set_property(rrow,'RowHeight',30);
    kanish

  • Reports output delayed when exported to Excel using OLE2

    Hi All,
    Platform - Oracle Application Server 10g Release 2 10.1.2.3 on Windows 32 bit.
    The report output is getting generated in a minute when exported to PDF i.e destype=cache & desformat=pdf. When we generate the output to excel is considerably delayed. It is taking time and internal server error is occuring.
    1) Report developed with simple query
    2) Used RPT2XLS procedure which uses OLE2 builtin to export report output into excel.
    3) Called RPT2XLS.run procedure in After-Report trigger of the report.
    4) We have relased all memory objects in the RPT2XLS package after exporting data and there is no EXCEL.exe running once the file is generated.
    System parameters used in the URL.
    . destype=file
    desformat=pdf
    CONTAINSOLE=yes (Required for exporting OLE2 objects into Excel in report)
    desname=path & name of the file.
    I have gone through the tuning documents for reports server and increased minengine, maxengine and initengine parameters of the reports engine and also changed maxconnect and IdleTimeout parameters in reports server configuration file.
    What might be the reason for delaying in the output of the reports when exported to Excel. Can the guys with special knowledge on this area help us in getting out of this issue.
    Thanks in advance.

    hey all,
    Thanks everyone for the reply.
    I am using the foloowing field cat:
    l_col_pos = l_col_pos + 1.
        wa_fieldcat-col_pos = l_col_pos.
        wa_fieldcat-outputlen = 32.            
         wa_fieldcat-fieldname = 'SOLLWERT'.
         wa_fieldcat-inttype   = 'P'.             
    *    wa_fieldcat-tabname = 'i_final'.      
        wa_fieldcat-seltext_l = text-t11.         "Target Value
        APPEND wa_fieldcat TO i_fieldcat.
        CLEAR wa_fieldcat.
    I have use this also in the field cat but stil i get space in the excel header.
    wa_fieldcat-REF_FIELDNAME = 'SOLLWERT'.
    *    wa_fieldcat-REF_TABNAME =  'QAMV'.
    Also the space comes with the descrip[tion in the cell of excel.
    its like [space Target Value] and i dont need this Space.
    I have also used  wa_layout-colwidth_optimize = 'X'. but it doesnt wrk.
    Please suggest

  • Open excel using runtime if I don't know path

    Is it possible to open a spreadsheet using runtime.exec() if I don't know the path to excel.exe? I know that I can type the location of the .xls file to the command line. Can I open the command.exe and pass the file location to it using the IS? Is there a better way?

    Thanks, I'll try that Monday AM. Off topic, has the forum been having some troubles lately? I tried to post this question on Thursday and Friday. Every time I posted the post never made it to the forum. If I replied to my own post I would get a message that the post had 1 reply on zero pages?????
    Thanks again

  • Excel File gets Locked using OLE2

    Dear all ,
    We are working with 10g forms
    We are trying to load data from Excel file into a form using OLE2 . We are able to load the data from Excel File .
    Here we try to read the first row of the excel file and verify for a title to be present
    if not present we close the file . we have used the OLE2.Release_OBJ
    declare
    application ole2.obj_type;
    workbooks ole2.obj_type;
    workbook ole2.obj_type;
    worksheet ole2.obj_type;
    cell ole2.obj_type;
    args ole2.list_type;
    Check_file text_io.file_type;
    no_file exception;
    PRAGMA exception_INIT (no_file, -302000);
    cell_value varchar2(2000);
    begin
    Lv_F_File_Type := Text_Io.Fopen(:Cb_Input.Ti_v_File_name,'R');
    application:= ole2.create_obj('Excel.Application');
    workbooks := ole2.get_obj_property(application, 'Workbooks');
    args:= ole2.create_arglist;
    ole2.add_arg(args, :Cb_Input.Ti_v_File_name);
    workbook := ole2.invoke_obj(workbooks, 'Open', args);
    ole2.destroy_arglist(args);
    --Open worksheet Sheet1 of that Workbook
    args:= ole2.create_arglist;
    ole2.add_arg(args, 'Sheet1');
    worksheet := ole2.get_obj_property(workbook, 'Worksheets', args);
    ole2.destroy_arglist(args);
    args:= ole2.create_arglist;
    ole2.add_arg(args, Lv_n_rows);-- lv_n_rows value is 1
    ole2.add_arg(args, 1);
    cell:= ole2.get_obj_property(worksheet, 'Cells', args);
    ole2.destroy_arglist(args);
    cell_value :=ole2.get_char_property(cell, 'Value');
    Lv_v_Title:=cell_value;
    if Upper(Lv_v_Title) <> Upper(Lpk_Var.Lv_v_File_Name_Parameter) then
    Lpk_Alert.Lp_Show('File Title Should be '||Lpk_Var.Lv_v_File_Name_Parameter);
    OLE2.RELEASE_OBJ(cell);
    OLE2.INVOKE(workbook ,'Close');
    OLE2.RELEASE_OBJ(worksheet);
    OLE2.RELEASE_OBJ(workbook);
    OLE2.RELEASE_OBJ(workbooks);
    OLE2.INVOKE(application, 'Quit');
    OLE2.RELEASE_OBJ(application);*/
    end if;
    After this we open the excel , and modify and try to save , it just waits ...
    we are forced to close the form. and then only the excel file gets saved...
    we need to modify the file , when the form is running and then upload the data..
    since the objects are closed , we are unable to understand why the excel file is locked till the session
    Can any one help us
    SSR

    Hi,
    Running on Business Object Enterprise XI 3.1 FP1.5.

  • Is there a method to write a ROW @ once to Excel file using OLE2?

    Hi
    I need some help on exporting data from a table to an Excel file. It's
    possible to write values to file cell by cell using Ole2 functions. But
    I prefer if there's a method to write a row at once rather than writing
    cell by cell.
    Please let me know if anyone's aware of a method..
    I guess DDE package has some methods, but since we have already used
    OLE2, would like to know whether any method available in that.
    We can set values to the row at once, using the following
    ole2.set_property(row1, 'Value',1);
    but it will be always the same value in every column
    the above will set '1' for each column in the row..
    Please let me know if there's a method to set different values to
    each column in a row such as
    ole2.set_property(row1, 'Value',1,2,3,4) (not an actual, just an
    example) which will assign '1' to column 1, '2' to column 2 etc..
    We can't TEXT_IO and CSV files since we want to create different multiple tabs in the same work sheet
    It's required to have multiple tabs in the same excel file.
    So using CSV files is not possible
    Regards
    Channa
    Edited by: Channa on Apr 5, 2010 1:59 AM

    Other than importing them into your Mail / Address Book app, no.

  • Report using the feature of opening Excel in SAP.

    We are building a custom report using the feature of opening Excel in SAP.
    We need to do things like:
    Protect the worksheet, but leave some rows unprotected
    Freeze the windows
    Have any one ever used this feature before? Can any know how to do this?
    Thank you,
    PV

    No, no extra somewhere.  What it actually is, is that you are calling the methods of the application(sort of).  Here is an example application which does to the freeze panes.
    report zrich_0001.
    include ole2incl.
    data: e_sheet type ole2_object.
    data: e_appl  type ole2_object.
    data: e_work  type ole2_object.
    data: e_col1  type ole2_object.
    data: e_col2  type ole2_object.
    data: e_cols  type ole2_object.
    data: e_cell  type ole2_object.
    data: e_wind  type ole2_object.
    data: field_value(30) type c.
    parameters: p_file type localfile default 'C:RichTest.xls'.
    start-of-selection.
    * Start the application
      create object e_appl 'EXCEL.APPLICATION'.
      set property of e_appl 'VISIBLE' = 1.
    * Open the file
      call method of e_appl 'WORKBOOKS' = e_work.
      call method of e_work 'OPEN'
              exporting
                   #1 = p_file.
    * Write data to the excel file
      do 20 times.
    * Create the value
        field_value  = sy-index.
        shift field_value left deleting leading space.
        concatenate 'Cell' field_value into field_value separated by space.
    * Position to specific cell  in  Column 1
        call method of e_appl 'Cells' = e_cell
               exporting
                    #1 = sy-index
                    #2 = 1.
    * Set the value
        set property of e_cell 'Value' = field_value .
    * Position to specific cell  in  Column 2
        call method of e_appl 'Cells' = e_cell
               exporting
                    #1 = sy-index
                    #2 = 2.
    * Set the value
        set property of e_cell 'Value' = field_value .
    * Position to specific cell  in  Column 3
        call method of e_appl 'Cells' = e_cell
               exporting
                    #1 = sy-index
                    #2 = 3.
    * Set the value
        set property of e_cell 'Value' = field_value .
      enddo.
      call method of e_appl 'Columns' = e_col1
             exporting
                  #1 = 1.
      call method of e_appl 'Columns' = e_col2
              exporting
                  #1 = 2.
      call method of e_appl 'Range' = e_cols
              exporting
                #1 = e_col1
                #2 = e_col2.
      call method of e_cols 'Select' .
      get property of e_appl 'ActiveWindow' = e_wind.
      set property of  e_wind 'FreezePanes' = 1.
    ** Close the file
    *  call method of e_work 'close'.
    ** Quit the file
    *  call method of  e_appl  'QUIT'.
    *  free object e_appl.
    Regards,
    Rich Heilman

  • I am using report generation toolkit 1.1 with Labview 7.0 and Office 2003 profession​al. The create new report VI opens Excel but throws error (-21471672​62- from automation open VI) when I try to open MS word. please help...

    I am using report generation toolkit 1.1 with Labview 7.0 and Office 2003 professional. The create new report VI opens Excel but throws error (-2147167262- from automation open VI) when I try to open MS word. please help...

    Hi Leo22,
    Does this error occur if you use any of the example programs that come shipped with LabVIEW? I would try opening one of the examples that write data to Word and see if those give you an error. Also, have you tried just putting down a New Report.VI and change the report type to Word? If this simple vi (that's all you need to open Word) breaks, I would check to see if there are any instances of Word still open. Check the task manager to see if any word processes are still open. There should not be a problem accessing Word 2003 from LabVIEW 7.0. If neither of these solutions work, please give some more detail about your application and we can research further. Thanks!
    Jeremy L.
    National Instruments
    Jeremy L.
    National Instruments

  • "File in use" pop up while trying to open excel files

    Hi,
    We are regularly experiencing difficulties accessing excel documents residing in our Sharepoint site collection that are shared by numerous members of the department for updating.
    We are aware of the 10 minute rule for excel documents, where if you try to open a document that has been saved by another member previously, you must give 10 mins before the system releases the lock.
    Recently several occurrences have stopped members from being able to open excel documents, where the document has been updated and saved by member A and closed. Then member B tries to open document well past 10 mins after member A had closed the document,
    only to receive the 'File in use' pop up and not able to open the document in edit mode.
    Any suggestions please?
    Thank you.

    Try below:
    http://support.microsoft.com/kb/899709
    Check below:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/7966c35d-b815-4951-8374-d64840ccf16c/documents-becoming-locked-for-editing-by-self-when-no-other-edits-are-happening?forum=sharepointadminlegacy
    If this helped you resolve your issue, please mark it Answered

  • Excel 2013 will not open file using double click

    I have a problem with Excel 2013  running on Windows 7 Pro (64). When double clicking an Excel file from Windows Explorer  Excel launches but opens a blank worksheet and shows me an error message (german: sinngemäß: "die Weitergabe eines anderen
    Programms ist gescheitert"). The only way to view the document is by opening Excel and browsing to the saved file.
    I have read similar forum entries which address this problem in older versions of Excel. I have tried every solution but none of them worked.
    I already added the registry setting for shell open and set the Ignore Other Applications that use Dynamic Data Exchange (DDE) (unchcked).
    The problem still persists. When I first installed Office 2013 it all worked fine. I believe the problem occured after installing Project 2013, but I am not quite sure about that. Reinstalling Excel did not help.
    I´d appreciate any help,
    Regards Stefan Hassel

    Hi,
    Check the following steps:
    1. Make sure that Excel is not running (exit the program).
    2. Click the Start button to displays the Start menu.
    3. From the Start menu, choose Run. Windows displays the Run dialog box.
    4. In the Open box, enter the full path name to your Excel program, followed by the /regserver switch. If the full path name includes spaces, surround the full path name by quote marks. The following is an example of what you can enter in the Open box
    (your path may be different):
         "c:\Program Files\Microsoft Office\Office\Excel.exe" /regserver
    •  Click OK.
    Jaynet Zhang
    TechNet Community Support

  • Error -2146960888 when opening excel from labview using active x

    attempting to open an instance of excel from labview using active x, I even tried using the "open excel and make visible.vi" found on this site. I get errors every time, Inserting a break right after the property node, I found that it does open excel with no active workbook. once the program runs to ompletion excel terminates. The error is on the line right after the property node executes.

    http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3F15456A4E034080020E74861&p_node=DZ53003&p_submitted=N&p_rank=&p_answer=&p_source=External
    Attachments:
    XL97table.zip ‏29 KB

  • Auto fit columns in excel using open xml

    I have generate excel using open xml and it contain auto fit property for columns. my problem is that the excel is opening very well in kingsoft spreadsheets
    and other tools, but not opening in microsoft excel 2013 and older version. Is there any solution for auto fit columns in excel using open xml and should open in Microsoft excel  all version

    Hi Raj12345,
    >> I have generate excel using open xml and it contain auto fit property for columns. my problem is that the excel is opening very well in kingsoft spreadsheets and other tools, but not opening in microsoft excel 2013 and older version
    I assume you was using OpenXML SDK and I'm afraid we are not able to find the root cause according to your description, would you mind sharing us some code sample to reproduce this issue.
    >> Is there any solution for auto fit columns in excel using open xml and should open in Microsoft excel  all version
    As far as I know, there is no auto fit property for columns in excel with openxml. I am afraid that you need to calculate the column width depending on the cell contents, and then set the column width. The link below shows more details:
    # Solution: How to AutoFit Excel Content
    https://social.msdn.microsoft.com/Forums/office/en-US/28aae308-55cb-479f-9b58-d1797ed46a73/solution-how-to-autofit-excel-content?forum=oxmlsdk
    Best Regards,
    Edward
    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.

  • Can I open and use a downloaded Excel Spreadsheet?

    Can I open and use a downloaded Excel Spreadsheet?
    <Re-Titled By Host>

    LibreOffice will not run Excel macros (read below) without some work, it's not a good solution, I also do not think that the free online version of MS Office (comes with OneDrive) has VBA, so no macros there either.
    Bottom line is if you want to run macros from Excel, you'll need Excel. Preferably the Windows version (the Mac version may be better than Pages, but it's a toy in comparison to the real Excel)
    Macros in Microsoft Office and LibreOffice
    With a few exceptions, Microsoft Office and LibreOffice cannot run the same macro code. Microsoft Office uses VBA (Visual Basic for Applications) code, and LibreOffice uses Basic code based on the LibreOffice API (Application Program Interface) environment. Although the programming language is the same, the objects and methods are different.
    The most recent versions of LibreOffice can run some Excel Visual Basic scripts if you enable this feature at LibreOffice - PreferencesTools - Options - Load/Save - VBA Properties.
    If you use macros in one of the applications and want to use the same functionality in the other application, you must edit the macros. LibreOffice can load the macros that are contained within Microsoft Office files and you can then view and edit the macro code in the LibreOffice Basic IDE editor.
    You can choose to preserve or delete VBA macros
    Open a Microsoft Office document that contains VBA macro code. Change only the normal contents (text, cells, graphics), and do not edit the macros. Save the document as a Microsoft Office file type. Open the file in Microsoft Office, and the VBA macros will run as before.
    You may delete the VBA macros from the Microsoft Office file on loading or on saving.
    Choose Tools - Options - Load/Save - VBA Properties to set the VBA macro handling of LibreOffice.

  • I can not open Excel (97, 2000, or 2003) spreadshee​t in Win98 OS PC using LabVIEW 7.0 Runtime Engine

    Hi,
    I have a problem opening an Excel spreadsheet by a LabVIEW application that is using Runtime Engine 7.0 in a Windows 98 OS environment .
    I tried LabVIEW 7.1, it will not install on Win98. Meanwhile, I installed  Excel 97 and 2000 (Excel 2003 does not install on Win98) and tried to open the spreadsheet, no luck with any combination.
    Same code can open the spreadsheet in a WinXP OS, RTE 7.0, Excel 2000/2003 environment.
    What can I do? Any advise?
    Regards,
    LVLV

    Hi,
    I did some experiment, I found out that Run-Time Engine 7.0 running executable generated at LabVIEW 7.0 environment (code written in LabVIEW 7.1 but save as 7.0) cannot open Excel 2000 files. If I replace Excel 2000 with Excel 2003 application on my pc, the executable code will open the Excel file (Run-Time Engine 7.0 works with Excel 2003).
    Is the Excel 2003 and higher versions will only work with Run-Time Engine 7.0 and higher code?
    How can I make executables using Run-Time Engine 7.0 work with Excel 2000 (Windows 98 operating system)??? (I cannot change Excel and Run-Time Engine and OS versions due to limitations, how can I work with what I have?).
    Thanks for your help.
    Regards,
    LVLV

Maybe you are looking for