ORACLE Excell

Hi,
I'm using HS to access data from excel file:
- I have a sheet called Tables1 in excel with columns NOM and PRENOM:
- I create a simple form (using form9i) with two items called NOM and PRENOM;
- In my query i put table1$@custard, where custard is a database link.
When i execute the query i have error ORA-00904: "NOM" : invalid indentifier.
Can somebody help me to find a solution?
PS : When i use SQLPLUS with the query select "NOM", "PRENOM" from table1$@custard, the query work.
Thanks!

Hi,
Put the column names in " "
Example :
select "NOM", "PRENOM" from table1$@custard ;
Be careful that the field name is case sensitive !
Monica

Similar Messages

  • Oracle Excel Generation 6i Form is showing error while compiling in Form10g

    Hi,
    I generate MS-Excel Report by Oracle form 6i but when I am compiling that form in Oracle Form 10g then it is showing
    error "component 'SERVER_ACTIVE' must be declared" and "component 'GET_INTERFACE_POINTER' must be declared".
    Can anybody help me.

    hi,
    ok, now i have migrated my 6i excel generation form in 10g by migrating tool. but still facing same(below) error at
    compile time.
    Error is - "component 'SERVER_ACTIVE' must be declare
    "component 'GET_INTERFACE POINTER' must be declare.
    Below is function which is showing problem at compile time.---
    FUNCTION get_object_handle RETURN OLE2.OBJ_TYPE IS
    obj_hnd OLE2.OBJ_TYPE;
    BEGIN
    /* If the server is not active, activate the server
    and get the object handle.
    IF not forms_ole.server_active ('spreadsheet') then
    FORMS_OLE.Activate_Server('spreadsheet');
    END IF;
    obj_hnd := FORMS_OLE.Get_Interface_Pointer('spreadsheet');
    --RETURN obj_hnd;
    RETURN NULL; END;
    thanks

  • Error installing Oracle Excel client.

    Hello All,
    I was wondering if anyone could help me with the following... It would be easier if I could show some screen shots but here goes.
    I was trying to follow the following instructions http://blog.mclaughlinsoftware.com/microsoft-excel/how-to-query-oracle-from-excel-2007/
    I get to step 4. and I don't have 'Oracle Provider for OLE DB' so it sends me to the following option http://blog.mclaughlinsoftware.com/2011/11/13/excel-oracle-odbc-driver/
    Now I've added OracleODBC_dataSource to Data Sources (ODBC) (but not sure how that helps) - I followed these instructions here http://blog.mclaughlinsoftware.com/microsoft-excel/accessing-to-mysql/ but used it for Oracle instead of MySQL etc.
    But when I go back to original instructions and open 'data link providers' I still don't have 'Oracle Provider for OLE DB'? Has anyone had a similar experience and over come it?
    Thanks

    All, I found the solution to this error, I need to uninstall Oracle SQl Developer and reinsatll the x32 bit.
    Install the Oracle Data Access Components (ODAC) 1st, then the Database then SQL Developer.

  • Oracle, Excel, and Windows XP 64

    Greeting Oracle Community,
    I am experiencing an issue with a new machine having migrated from Windows XP 32 bit to 64 bit. Using the most up to date version on Oracle 10g for 32 bit installed on the machine, with a TNS names file. I am able to create a new System DSN within Microsoft’s 32 bit version of the ODBC Data Source Administrator to the database in question and test it successfully using the oracle driver provided during the install.
    However, when I attempt to use this connection within an excel macro, error are thrown and the connection does not appear to be made. The error is as follows:
    Can't Open database (server=tns:psh2)
    Error encountered attempting to:
    Error.Source = Microsoft.OLE.db.Provider for ODBC Drivers
    Err.Description = [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
    Err.Number = -2147457259
    Err.HelpContext = 1000440
    This message makes me think that the excel macro is not looking the the correct place for the tns names file and the driver files. Could this be due to the 64 bit version of XP?
    Your help is appreciated, thank you in advance.
    -Kevin

    However, when I attempt to use this connection within
    an excel macro, error are thrown and the connection
    does not appear to be made. The error is as follows:
    Can't Open database (server=tns:psh2)
    Error encountered attempting to:
    Error.Source = Microsoft.OLE.db.Provider for ODBC
    Drivers
    Err.Description = [Microsoft][ODBC Driver Manager]
    Data source name not found and no default driver
    specified
    Err.Number = -2147457259
    Err.HelpContext = 1000440
    This message makes me think that the excel macro is
    not looking the the correct place for the tns names
    file and the driver files. Could this be due to the
    64 bit version of XP?
    Your help is appreciated, thank you in advance.
    -KevinDid you install the Oracle client into the Program Files folder? If so, 32 bit programs on the 64 bit version of XP are silently redirected to a different folder when they attempt to access the Program Files folder - those programs effectively see an entirely different set of folders.
    It looks like you are using an ODBC connection to connect to the database. Are you setting up an ODBC connection in the Administrator control panel with a name that is the same as the name specified in the TNSNAMES? That causes problems for some programs.
    Microsoft's website contains a program named Process Monitor, which may be used to see if the computer even attempts to access the TNSNAMES.ORA file, or never tries to access TNSNAMES.ORA and instead tries a DNS lookup for that database name. If I recall correctly, there is a registry entry (LOCAL, which sets an environment variable with that name) that may cause the computer to add a suffix onto the database name, and force the computer to try a DNS lookup immediately.
    Charles Hooper
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • Oracle - excel

    thanks in advance.
    my purpose is of data transfer to and fro from Forms 4.5.7.1.6 and Excel 97
    having database as Oracle8 Release 8.0.5.0.0.
    i have used the fmb from demo of OLEEXCEL .it was linked to the excel.pll in plsqllib folder.
    i copied the procedures of the excel.pll into the fmb itself and removed the pll link. and placed alert messages upto which it works. now it creates the object handle, next it creates argument list. when it comes to object invoked it displays error message and no transfer occurs.
    the message is same while 'getcell' and 'setcell' call also.
    the ERROR message is as follows
    FRM-40735:WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-305500.
    PLEASE LOOK INTO THE MATTER AND HELP ME OUT.

    However, when I attempt to use this connection within
    an excel macro, error are thrown and the connection
    does not appear to be made. The error is as follows:
    Can't Open database (server=tns:psh2)
    Error encountered attempting to:
    Error.Source = Microsoft.OLE.db.Provider for ODBC
    Drivers
    Err.Description = [Microsoft][ODBC Driver Manager]
    Data source name not found and no default driver
    specified
    Err.Number = -2147457259
    Err.HelpContext = 1000440
    This message makes me think that the excel macro is
    not looking the the correct place for the tns names
    file and the driver files. Could this be due to the
    64 bit version of XP?
    Your help is appreciated, thank you in advance.
    -KevinDid you install the Oracle client into the Program Files folder? If so, 32 bit programs on the 64 bit version of XP are silently redirected to a different folder when they attempt to access the Program Files folder - those programs effectively see an entirely different set of folders.
    It looks like you are using an ODBC connection to connect to the database. Are you setting up an ODBC connection in the Administrator control panel with a name that is the same as the name specified in the TNSNAMES? That causes problems for some programs.
    Microsoft's website contains a program named Process Monitor, which may be used to see if the computer even attempts to access the TNSNAMES.ORA file, or never tries to access TNSNAMES.ORA and instead tries a DNS lookup for that database name. If I recall correctly, there is a registry entry (LOCAL, which sets an environment variable with that name) that may cause the computer to add a suffix onto the database name, and force the computer to try a DNS lookup immediately.
    Charles Hooper
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • Oracle to Excel Convertion -reg

    Dears,
    Currently i am using TOAD for Oracle excel convertion purpose. but our client users want all reports (currently all reports in pdf format) in excel. Any possible tool is aviable. I could not give TOAD due to security purpose.
    Please give your's valuable suggestion with soultions
    Kodiyarasu.P
    Chettinad Cements,
    Karur,TN,India

    You have a couple of choices. If your client doesn't want spend money, you could extract the data into a CSV file and then use Excel to open it as mentioned by other members. Or you could pay for a more comprehensive tool like Excel-DB
    We like Excel-DB actually - saved a ton of development effort over the years for the many one-off reports that our Finance and Actuarial departments request every year.

  • Column Aliases not working when using MS Query into Excel?

    I setup an Oracle ODBC connection from my desktop to an Oracle 9i DB, and created an MS Query sql:
    select sysdate as "Today" from dual;
    When I tried to run it and return it to Excel, it would ignore the column alias of 'Today' and keep putting in 'SYSDATE' as the column header.
    SYSDATE
    ==========================
    2007-04-18 11:55:54
    What I expected was:
    TODAY
    ==========================
    2007-04-18 11:55:54
    I've read some other reports out there on the web and tried changing a registry entry per the MSDN knowledge base, but that didn't help. Several of the existing threads in this forum only refer to exporting directly to an Excel file from Oracle, rather than pulling the information from the db into excel using an abstraction layer such as ODBC (ADO would be similar I'm sure).
    Just curious if other Oracle SQL guys have run into this same problem. I'm sure somebody's had to use a column alias in their Oracle->Excel results before..

    Are you using SQL plus? Have you tried Oracle's SQL
    developer? It is free, does not require an install
    on your computer (you can run it from a flash drive),
    and it exports pretty smoothly to excel.I'm not using SQL Plus -- this was purely excel / ODBC as the client and Oracle as the database layer.
    I had looked at SQL Developer, along with DB Visualizer (along the same lines , as a sql gui with some export capability to .csv and excel formats). However, I don't think it quite served my purpose in trying to have a workable data-source where I could pull from Excel and use VBScript or C# to do the manipulation and customized reporting/charting/pivot-tabling.
    My eventual workaround was to bypass MS Query altogether for creating the 'external data table' in Excel, and instead create the query through code.

  • Access SQL-Server Data from Oracle 10gXE

    Hello,
    I want to access sql-server data from oracle 10g XE. I need the same functionality provided by Sql-server by Linked Servers, by which we can query on any data source(oracle, Excel, Access).
    do, Oracle 10gXE provide us with same functionality ???
    any pointers ???

    Yes, it does work with Express Edition.
    Here is a thread from the XE forum with examples.
    Re: Database Link to MS Access
    They refer to a MS Access database, but the procedure is the same.
    Doug

  • Problem connecting using VB Oracle Data Control oradc.ocx but otherwise ok.

    I am trying to run one of the sample vb apps DataCtrl that uses the Oracle Data Control (oradc.ocx) to simplify connecting to a database and getting the data into a databound control. I have tried every combination of name/id/pw and get the same error - ORA-12154:TNS:could not resolve service name.
    I have 2 of the sample databases created - "employees" and "demo". Using XE, i can open and view both db's with no problem. Using the ODBC configuration dialog I can configure and test the connection to both and tests ok. I have used programs to convert Oracle to Excel and Excel to Oracle and both find the db with no problem either.
    If I tnsping to XE, employees or demo, the response is negative. The file tnsnames.ora exists in the /admin dir and lists only XE. The file sqlnet.ora has nothing (except comments) in it.
    I have read every bit of documentation on the internet and no help. I just opened "employees" and "demo" again with XE without a problem. However when I try to run the Oracle/Excel conversion programs now, they are now showing the 'name error also. I have tried both the sample VB app and the Oracle/Excel converter programs with XE/employees open and closed and it makes no difference.
    Everything that I have read indicates that you should be able to use the actual db name, ie; "employees". I have run out of combinations of names/ids/pws and hope I can get some help here. Thanks in advance.

    The firewall was blocking TNSLSNR.exe!

  • How to and the proper way of Scheduling

    Hi Everyone,
    I looking forward to put on scheduling for some files that I have uploaded and I wanted to confirm before doing if it is alright what I am planning to do.
    I am basing my scheduling on: http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/odi/odi_11g/Creat_Schedul_Scen/Creating_Scheduling_Scenario.htm
    From one side I have an Excel and an Oracle table, and on the other side I do have an Oracle table, to another Oracle table. Two different scenarios.
    I have already created two interfaces and executed, they are working :-)
    The first one Excel to Oracle
    The second one Oracle to Oracle
    This is what i am doing to create the scheduling.
    1. Go to the Topology Navigator > Physical Architecture > Agents > Local Agent
    2. Expand the procedure and find the one that I want? and if do not have, i will create. As i did.
    What is and how to create a procedure? A procedure is a way to define a sequence of codes executed in order. A procedure is designed to be reused.
    As I do not have any, I assume that I should create it first, no? I do create it by right clicking procedures and then selecting inserting procedure, no?
    I just want to confirm that, that is the correct way of doing it; I have gotten this info by looking at different OBEs posts.
    On the name field just name it as I wanna.
    On the source technology, depending on the source could be either Oracle, Excel, etc.
    In my case I do need one for excel and one for Oracle, so that means that I should create as many procedures as I need? For example I am going to have four excel templates, so that means four procedures? Or could create instead four scheduling? And when I will be dealing with the Oracle tables, should I create as many procedures or a different procedure from the Excel’s one, as the source is going to be different and many schedules?
    Should have a look on any other tab? In fact I have, but all the fields are kinda disabled for me? Could it be for some permission issues?
    3. On the procedure that I have created so far, I have right clicked on it and select Generate scenario as the tell me on the OBE. And left by default the name and the version fields.
    4. My agent is running as I am executing some Interfaces now.
    5. When I expand my new scenario and get to the scheduling, I right click on it and I do not get new scheduling option. Could it be because of some right issue?
    I do really appreciate your help, with this!!! I am trying to get a book about ODI as the course is very expensive, but the book isn’t released yet till the end of the month!!
    Please do not hesitate to contact me if any further info is required.
    Best regards.
    Jaison
    Edited by: Jaison on 13-ene-2012 5:27

    Hi Alastair,
    First of all, thank you so much for answering and helping me!!!
    Determine if you want the interfaces to run as a workflow (Excel first, then the Oracle tables) for example.
    I want them separate
    If you want any notification (Emails) then you are going to want to put the interfaces in a package (with additional ODISentMail tasks on success and failure) and create the scenario at the package level rather than the interface.
    Well it sound cool, but I really dont know how to create a package to be honest.
    What i have created so far is the procedure, and inside the procedure the scenario, and got to the scheduling part but being able to go any further.
    Once the scenarios are created you should be able to right click them and insert a schedule.
    I am not being able.
    As for permissions - Are you logging in as a supervisor?
    No, i am not. Or at least do not think so.
    I presume your on 11G ?
    Yes 11g on ODI and DB.
    Alastair, once again really thank you so much for your time, help and guidance.
    Best regards.
    Jaison

  • EPMA for Attribute dimension

    What is the column field heading for Attribute dimension.
    for example if I have Entity dimension and I have a Geography Attribute dimension attached to it and I have a Color Attribute dimension attached to it as well
    What would be the column names for the 2 columns in the entity section be?
    I'm using the Oracle Excel EPMA file to create the ads but I could hardcode it as well.

    Hi,
    The column headers should be Geography and Color. You should also define the associations between entity and these attribute dimensions in associations sheet.
    Actually, these columns should appear automatically after you define the association.
    Cheers,
    Alp

  • Your help is wanted

    Are you interested in pushing the envelope for inter-connectivity between the Oracle BI tools and Microsoft Office? If so, we want to hear from you.
    In co-operation with Armstrong-Smith Consulting, Oracle is looking to talk to and possibly meet with customers in the US that are using any form of Microsoft Office / Excel plug in for their BI data and reporting.
    Thus, if you are using one of the following:
    - Oracle Excel Spreadsheet Add-In 10.1.2
    - BusinessObjects Live Office
    - MicroStrategy Office
    - MIS Plain - the Excel Add-In for Microsoft SQL Server
    - Hyperion Essbase Spreadsheet Services Add-In
    - OutlookSoft, and so on...
    and are interested in talking or meeting with someone from Oracle, please let me know by dropping an email to me, [email protected], and I will make the arrangements.
    Many thanks in advance
    Regards
    Michael

    Your question is definitely not "stupid." I just hope I understand what you want to do. I think you're trying to get something like my sample below.
    I start with a blank template & then click in the ruler to get a tab stop. It will be a left-aligned tab, but I'll change that in the next step. Show the text inspector & click on tabs. Now click on the number under Tab Stops to highlight it. Choose the alignment you'd like. I chose "Decimal" since I assume that's where a price will go. Now, click on the drop-down menu under Leader & choose the second one, the dots. Before doing anything else, go to Format > Create new paragraph style from selection so that you may easily apply this again.
    I did "edit" the inspector a bit for posting here.

  • Excel-2007 cannot connect to Oracle ODBC data source, Control Panel can.

    <p>
    I cannot make an ODBC connection from Exce-2007 to Oracle work. I am an expert Excel and VBA user (since 1994) and I have frequently used Excel to access ODBC databases, including Oracle (I have done this with Excel-2003 both with worksheet queries and have written VBA ADO-connection routines). And even though in Excel-2007 a worksheet ODBC query is supposed to be easier to create than in previous version of Excel, my connection fails. Any suggestions and all help are welcome and much appreciated.
    DETAILS
    </p>
    <p>
    1) <strong>What is my system?</strong> I am using Excel-2007 on Windows Vista x64 and Oracle server v.11g on my computer (all this is on my computer, no network issues).
    2)<strong> Why use Excel with Oracle at all?</strong> I use Excel-2007 to access Oracle rather than Access-2007 (or any other application like TOAD, etc.) because I do engineering calculations with the data stored in Oracle. These calculations are easier done in Excel (I suppose that one alternative to this could be to use some sql or Access to get the data from the database, then store it as plain vanilla CSV file, then open this file in Excel, then do the math (the math involves complex optimisation algorithms), then save the results as CSV, then use some sql or Access to put the data back into the database. Howwever this does not strike me as a quick or neat solution. And after all Excel has been designed to access ODBC databases, so why not use it?)
    3) <strong>What do I do in Excel-2007 that won't work?</strong> I create an ODBC link to Oracle that does not work. In Excel-2007 this is straightforward:
    </p>
    <ul>
         <li>define an ODBC connection (Data tab --&gt; From other sources --&gt; From data connection wizard);</li>
         <li>define a query on the worksheet -- that's it, this is all!</li>
    </ul>
    <p>
    I start with creating an ODBC connection:
    a) I choose an ODBC data source type: <strong><em>ODBC DSN</em></strong>
    b) Excel-2007 displays the list of the available ODBC data sources. I see in it <strong><em>my Oracle database name</em></strong> and I select it.
    c) Excel-2007 displays the Data Link Properties:
    - the "Provider" has a list of the OLE DB drivers with preselected "<strong><em>Microsoft OLE DB Provider for ODBC Drivers</em></strong>". I keep this default selection.
    - the "Connection" tab has a connection string "<strong><em>DSN=&lt;my database name&gt;</em></strong>" which I keep, it also has fields for the <strong><em>user name</em></strong> and the <strong><em>password</em></strong>, which I fill with the correct credentials.
    - Finally there is a button "Test Connection", which when I click produces the following error message:
    <strong><font color="#ff0000">"Test connection failed because of an error in initializing provider.</font></strong><strong><br />
    </strong><strong><font color="#ff0000">Unespecified error"</font></strong><strong>
    </strong>
    4) <strong>Additional food for thought:</strong>
    a) In the above walk-through the only data, which I type, are the user name and password, everything else is selected from lists offered by Excel-2007, hence any possibility of typos being the cause of the problem can safely be discarded.
    b) I can test the ODBC driver in the Control Panel and it shows that it can connect to the Oracle database:
    - in <strong><em>Control Panel --&gt; Admin Tools --&gt; Data Sources (ODBC)</em></strong> on the "User DSN" tab I can see the list of the available ODBC data sources (same list as in Excel-2007, point 3b above) with the name of my database in it;
    - selecting the name of my database from the list of the sources and clicking "Configure" button opens a tab with <strong><em>Data Source Name</em></strong> (same as in Excel-2007), TNS Service Name and User ID. I enter <strong><em>&lt;user name&gt;/&lt;password&gt;</em></strong> and click "Test Connection" button. A message "<strong><em>Connection successful</em></strong>" appears (just for a test I enter <u>incorrect user credentials</u> and "<strong><em>Unable to connect</em></strong>" message appears)
    BOTTOM LINE
    </p>
    <p>
    The procedure for using an ODBC connection from Excel is very simple, in the past I have created and used such connections numerous times with Excel-2003 and earlier on Win-XP and earlier. But now on Excel-2007 and Vista-x64 I cannot make it work.
    Also, testing an ODBC connection driver is really easy and simple to be done in the Control Panel. There testing the same ODBC connection, which fails in Excel-2007, results in success.
    I am frustrated by the simplicity of the problem and yet the persistant error. I have lost now two full days in failed attempts to make the simple procedure work and in searching the internet for answers.
    All help is highly appreciated <img class="emoticon" src="images/emoticons/happy.gif" border="0" alt="" width="16" height="16" />,
    Plamen
    </p>

    Did you find the solution to your problem?
    If not, I think I may know.
    Excel 2007 is a 32-bit application.
    When installing 32-bit applications in a 64-bit environment, the "default" location is:
    C:\Program files (x86)\...
    Excel then launches from this location.
    However, when it connects to Oracle and passes the name of the calling program, Oracle attempts to "interpret" the value of (x86) as if
    the value within the parenthesis are being passed as a reference. Of course, iOracle doesn't find anything, so the result is (),
    and then it cannot return the connection info back to the calling application.
    I corrected it by installing Excel in C:\Program Files\, and once launched from that location, it works the same as on the 32-bit machines.
    However, at my location, they are FORCING Excel to be installed in the(x86) location.
    What I'm trying to discover now is:
    Is it possible to flag Oracle to NOT process the embedded variables?
    Or, is it possible to assign a variable in Oracle such that x86 = "(x86)", so that the end result is viable?
    Have you had any luck with your installation?
    thanks,
    Paul

  • How to generate an excel spreadsheet from an Oracle Application forms runni

    I need URGENT generate an Excel spreadsheet with rows and columns populated from a forms that is running on Oracle Application R11.5 and open this worksheet for the User save.
    I want to include a PL*SQL code on a button and this button to run the spreadsheet open save for the User.
    Sorry my poor English, thanks for the comprehension

    909356 wrote:
    I need URGENT generate an Excel spreadsheet with rows and columns populated from a forms that is running on Oracle Application R11.5 and open this worksheet for the User save.
    I want to include a PL*SQL code on a button and this button to run the spreadsheet open save for the User. This functionality is already available in the application (File > Export) and you do not need to write a code to do that.
    How To Export Form Data To a CSV Format File [ID 779079.1]
    How To Setup Action Export Functionality in Release 11i [ID 136074.1]
    Thanks,
    Hussein

  • Sending data to EXCEL from Oracle Forms 6.0 URGENT!!!!!

    Dear all,
    I have a problem to which I hope to get a solution from anyone
    out there...
    The problem is as follows:
    I have a form that contains some data. Now this data I need to
    transfer to an excell sheet. I tried to do so through report
    builder (6.0) but every time I try to convert my report I get a
    general protection fault. So instead I'm sending the data to a
    text file through text_io built in then reopening the text file
    from excel. Isn't there a better way to do it? ie sending the
    data stright from forms to excel?
    Thanks in advance
    null

    TRY THIS OUT....OLE2.... IT WORKS GREAT...DIRECTLY TO EXCEL...
    Oracle Corporate Support
    Problem Repository
    1. Prob# 1030046.6 NEW: OLE AUTOMATION NO LONGER WORKS AFTER
    UPGRADE TO OF
    2. Soln# 2077481.6 NEW: MICROSOFT CHANGED OLE INTERFACE FOR
    OFFICE97
    1. Prob# 1030046.6 NEW: OLE AUTOMATION NO LONGER WORKS AFTER
    UPGRADE TO OF
    Problem ID : 1030046.6
    Affected Platforms : MS Windows 95
    MS Windows NT
    Affected Products : SQL*Forms
    Oracle Reports
    Oracle Graphics
    Oracle Developer/2000
    Affected Components : SF40 V04.05.XX
    SQLREP V02.05.XX
    ORAGRAPH V02.05.XX
    DEV2K Generic
    Affected Oracle Vsn : Generic
    Summary:
    NEW: OLE AUTOMATION NO LONGER WORKS AFTER UPGRADE TO OFFICE97
    +=+
    Problem Description:
    ====================
    You have upgraded to Microsoft Office97 and OLE calls in your
    Developer/2000
    applications no longer work.
    Problem Explanation:
    ====================
    Examples:
    You are using Forms to send data to a Microsoft Word document
    and print
    letters, using ole automation. This worked fine with Word 6.0,
    but when
    they
    upgraded to Word 8.0 (Office97), the letters do not get printed.
    When you try to get an object handle to the Excel97 Workbooks
    collection
    using
    the OLE2 Package, you get the following error:
    FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception
    ORA-305500
    The Same code works fine against Excel 7.0.
    [ Search Words: Office 97 msoffice ms office object linking and
    embedding
    application get_obj_property workbook invoke_obj
    appshow
    upgrade upgrading bug483090 olex.rdf demo ]
    +==+
    Diagnostics and References:
    2. Soln# 2077481.6 NEW: MICROSOFT CHANGED OLE INTERFACE FOR
    OFFICE97
    Solution ID : 2077481.6
    For Problem : 1030046.6
    Affected Platforms : MS Windows 95
    MS Windows NT
    Affected Products : SQL*Forms
    Oracle Reports
    Oracle Graphics
    Oracle Developer/2000
    Affected Components : SF40 V04.05.XX
    SQLREP V02.05.XX
    ORAGRAPH V02.05.XX
    DEV2K Generic
    Affected Oracle Vsn : Generic
    Summary:
    NEW: MICROSOFT CHANGED OLE INTERFACE FOR OFFICE97
    +=+
    Solution Description:
    =====================
    WORD:
    Microsoft made some changes in the upgraded version of Word
    which cause it
    to
    come up as a hidden application. Customer had to add "AppShow"
    to his code,
    and ole automation works fine now.
    EXCEL:
    The issue here is that Microsoft changed the object "Workbooks",
    which is
    now
    a property of object "Excel.Application". So, replace the call:
    workbooks := ole2.invoke_obj(application, 'workbooks');
    with
    workbooks := ole2.get_obj_property(application, 'workbooks');
    For example:
    PACKAGE BODY olewrap IS
    -- Declare the OLE objects
    application OLE2.OBJ_TYPE;
    workbooks OLE2.OBJ_TYPE;
    workbook OLE2.OBJ_TYPE;
    worksheets OLE2.OBJ_TYPE;
    worksheet OLE2.OBJ_TYPE;
    cell OLE2.OBJ_TYPE;
    args OLE2.LIST_TYPE;
    procedure init is
    begin
    -- Start Excel and make it visible
    application := OLE2.CREATE_OBJ('Excel.Application');
    ole2.set_property(application,'Visible', 'True');
    workbooks := OLE2.GET_OBJ_PROPERTY(application, 'Workbooks');
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'c:\test\ms\excel\test.xls');
    workbook := OLE2.GET_OBJ_PROPERTY(workbooks, 'Open', args);
    OLE2.DESTROY_ARGLIST(args);
    worksheets := OLE2.GET_OBJ_PROPERTY(workbook, 'Worksheets');
    worksheet := OLE2.GET_OBJ_PROPERTY(worksheets,'Add');
    -- Return object handle to cell A1 on the new Worksheet
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 1);
    OLE2.ADD_ARG(args, 1);
    cell:=OLE2.GET_OBJ_PROPERTY(worksheet, 'Cells', args);
    OLE2.DESTROY_ARGLIST(args);
    -- Set the contents of the cell to 'Hello Excel!'
    OLE2.SET_PROPERTY(cell, 'Value', 'Hello Excel!');
    END;
    procedure addstuff is
    BEGIN
    -- Return object handle to cell A1 on the new Worksheet
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 2);
    OLE2.ADD_ARG(args, 2);
    cell:=OLE2.INVOKE_OBJ(worksheet, 'Cells', args);
    OLE2.DESTROY_ARGLIST(args);
    -- Set the contents of the cell to 'This is the added stuff'
    OLE2.SET_PROPERTY(cell, 'Value', 'This is the added stuff');
    END;
    procedure stop is
    begin
    -- Release the OLE objects
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'C:\OLETEST2.XLS');
    OLE2.INVOKE(worksheet, 'SaveAs', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.RELEASE_OBJ(cell);
    OLE2.RELEASE_OBJ(worksheet);
    OLE2.RELEASE_OBJ(worksheets);
    OLE2.RELEASE_OBJ(workbook);
    OLE2.RELEASE_OBJ(workbooks);
    OLE2.RELEASE_OBJ(application);
    END;
    Solution Explanation:
    =====================
    Microsoft changed some of the OLE calling interfaces for the
    Office97
    products. Thus, some of your existing OLE calls may need to be
    changed to
    comply with the Office97 interface.
    Consult with Microsoft and your Office97 documentation or more
    information
    on
    what the OLE interface is for the Office97 suite of products.
    Additional Information:
    =======================
    Related Bugs:
    483090 (Closed, Vendor OS Problem)
    FORM GIVES FRM-40735: UNHANDLED EXCEPTION ORA-305500 AGAINST
    EXCEL97.OFMPE0497
    +==+
    References:
    ref: {8192.4} BUG-483090
    Oracle Corporate Support
    Problem Repository
    1. Prob# 1030046.6 NEW: OLE AUTOMATION NO LONGER WORKS AFTER
    UPGRADE TO OF
    2. Soln# 2077481.6 NEW: MICROSOFT CHANGED OLE INTERFACE FOR
    OFFICE97
    1. Prob# 1030046.6 NEW: OLE AUTOMATION NO LONGER WORKS AFTER
    UPGRADE TO OF
    Problem ID : 1030046.6
    Affected Platforms : MS Windows 95
    MS Windows NT
    Affected Products : SQL*Forms
    Oracle Reports
    Oracle Graphics
    Oracle Developer/2000
    Affected Components : SF40 V04.05.XX
    SQLREP V02.05.XX
    ORAGRAPH V02.05.XX
    DEV2K Generic
    Affected Oracle Vsn : Generic
    Summary:
    NEW: OLE AUTOMATION NO LONGER WORKS AFTER UPGRADE TO OFFICE97
    +=+
    Problem Description:
    ====================
    You have upgraded to Microsoft Office97 and OLE calls in your
    Developer/2000
    applications no longer work.
    Problem Explanation:
    ====================
    Examples:
    You are using Forms to send data to a Microsoft Word document
    and print
    letters, using ole automation. This worked fine with Word 6.0,
    but when
    they
    upgraded to Word 8.0 (Office97), the letters do not get printed.
    When you try to get an object handle to the Excel97 Workbooks
    collection
    using
    the OLE2 Package, you get the following error:
    FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception
    ORA-305500
    The Same code works fine against Excel 7.0.
    [ Search Words: Office 97 msoffice ms office object linking and
    embedding
    application get_obj_property workbook invoke_obj
    appshow
    upgrade upgrading bug483090 olex.rdf demo ]
    +==+
    Diagnostics and References:
    2. Soln# 2077481.6 NEW: MICROSOFT CHANGED OLE INTERFACE FOR
    OFFICE97
    Solution ID : 2077481.6
    For Problem : 1030046.6
    Affected Platforms : MS Windows 95
    MS Windows NT
    Affected Products : SQL*Forms
    Oracle Reports
    Oracle Graphics
    Oracle Developer/2000
    Affected Components : SF40 V04.05.XX
    SQLREP V02.05.XX
    ORAGRAPH V02.05.XX
    DEV2K Generic
    Affected Oracle Vsn : Generic
    Summary:
    NEW: MICROSOFT CHANGED OLE INTERFACE FOR OFFICE97
    +=+
    Solution Description:
    =====================
    WORD:
    Microsoft made some changes in the upgraded version of Word
    which cause it
    to
    come up as a hidden application. Customer had to add "AppShow"
    to his code,
    and ole automation works fine now.
    EXCEL:
    The issue here is that Microsoft changed the object "Workbooks",
    which is
    now
    a property of object "Excel.Application". So, replace the call:
    workbooks := ole2.invoke_obj(application, 'workbooks');
    with
    workbooks := ole2.get_obj_property(application, 'workbooks');
    For example:
    PACKAGE BODY olewrap IS
    -- Declare the OLE objects
    application OLE2.OBJ_TYPE;
    workbooks OLE2.OBJ_TYPE;
    workbook OLE2.OBJ_TYPE;
    worksheets OLE2.OBJ_TYPE;
    worksheet OLE2.OBJ_TYPE;
    cell OLE2.OBJ_TYPE;
    args OLE2.LIST_TYPE;
    procedure init is
    begin
    -- Start Excel and make it visible
    application := OLE2.CREATE_OBJ('Excel.Application');
    ole2.set_property(application,'Visible', 'True');
    workbooks := OLE2.GET_OBJ_PROPERTY(application, 'Workbooks');
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'c:\test\ms\excel\test.xls');
    workbook := OLE2.GET_OBJ_PROPERTY(workbooks, 'Open', args);
    OLE2.DESTROY_ARGLIST(args);
    worksheets := OLE2.GET_OBJ_PROPERTY(workbook, 'Worksheets');
    worksheet := OLE2.GET_OBJ_PROPERTY(worksheets,'Add');
    -- Return object handle to cell A1 on the new Worksheet
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 1);
    OLE2.ADD_ARG(args, 1);
    cell:=OLE2.GET_OBJ_PROPERTY(worksheet, 'Cells', args);
    OLE2.DESTROY_ARGLIST(args);
    -- Set the contents of the cell to 'Hello Excel!'
    OLE2.SET_PROPERTY(cell, 'Value', 'Hello Excel!');
    END;
    procedure addstuff is
    BEGIN
    -- Return object handle to cell A1 on the new Worksheet
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 2);
    OLE2.ADD_ARG(args, 2);
    cell:=OLE2.INVOKE_OBJ(worksheet, 'Cells', args);
    OLE2.DESTROY_ARGLIST(args);
    -- Set the contents of the cell to 'This is the added stuff'
    OLE2.SET_PROPERTY(cell, 'Value', 'This is the added stuff');
    END;
    procedure stop is
    begin
    -- Release the OLE objects
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'C:\OLETEST2.XLS');
    OLE2.INVOKE(worksheet, 'SaveAs', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.RELEASE_OBJ(cell);
    OLE2.RELEASE_OBJ(worksheet);
    OLE2.RELEASE_OBJ(worksheets);
    OLE2.RELEASE_OBJ(workbook);
    OLE2.RELEASE_OBJ(workbooks);
    OLE2.RELEASE_OBJ(application);
    END;
    Solution Explanation:
    =====================
    Microsoft changed some of the OLE calling interfaces for the
    Office97
    products. Thus, some of your existing OLE calls may need to be
    changed to
    comply with the Office97 interface.
    Consult with Microsoft and your Office97 documentation or more
    information
    on
    what the OLE interface is for the Office97 suite of products.
    Additional Information:
    =======================
    Related Bugs:
    483090 (Closed, Vendor OS Problem)
    FORM GIVES FRM-40735: UNHANDLED EXCEPTION ORA-305500 AGAINST
    EXCEL97.OFMPE0497
    +==+
    References:
    ref: {8192.4} BUG-483090
    null

Maybe you are looking for

  • XML to Flat File design issue

    Hi, A newbie to SSIS but was able to create an SSIS package which extracts XML data from one of the SQL server columns using "Execute SQL Task" and passes that to a for each loop container which contains an XML task for apply transform to each input

  • So...  What are the differences between CS5 & CS5.5?

    I just purchased the CS5.5 Web Premium upgrade so I can get CS6 at the discounted price.  I recieved the CS5.5 Web Design Premium Upgrade today and installed it.  I guess I'm just curious what the "major" differences were between CS5 Web Premium & CS

  • HT4990 How can I switch to apple Canada app

    How can I switch to apple Canada app any time I like to to get app I god message than I have t switch to canadin App Store

  • Adobe Reader IOS App aktualisiert Berechnungsfelder nicht

    Hallo Zusammen, die Bearbeitung meines mit Acrobat Pro XI erstellten Formulars funktioniert am PC mit dem Reader genau wie geplant. Allerdings hab ich ein Problem wenn ich es aus der Adobe Reader Iphone/Ipad-App heraus bearbeite. Ich habe ein Dropdow

  • To use the transformation process I hear you have to code using OOP, True?

    I've heard that to use the transformation process all update rules, routines must be writtend with OOP and you can't use  the older coding method.  Is this true