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

Similar Messages

  • How to fetch data in Excel throuth oracle forms 10g on client machine

    I am using developer suite 10g forms and i want to fetch data in excel through forms 10g on client machine
    presently i m using OLE for fetching the data in excel , it is working fine but it generates the excel file on server machine and i want get the output excel on the client machine. Is there any parameter to set the destination {Server or Client} which decides the location of output file. If such is the case please let me know or please suggest what should i do. Please help me with proper solution.
    thanks
    Manoj

    If you have an "urgent" issue, I highly encourage you to contact Oracle Support. The forum probably isn't going to be your best source for "urgent" issues.
    http://www.oracle.com/us/support/oracle-support-services-359636.html
    https://support.oracle.com
    This will be especially important if you are new to any of the products as you will likely need documentation and/or product updates in order to ensure the most stable environment possible.
    There are a few publicly available documents which may help to get you started. In any case, these are just examples. They may or may not work to your liking. Further, in some cases they may not work at all. Many of the examples online are often outdated and do not function exactly as documented against other versions. Here is one:
    http://www.oracle.com/technetwork/developer-tools/forms/howto-ole-090332.html
    Additional documentation for using WebUtil is included in the Forms Builder online help. An update to the Builder Help files can be downloaded from here. Be sure to carefully review the included ReadMe before attempting to use them.
    http://docs.oracle.com/cd/B25016_08/doc/dl/web/forms_help/frmhelp_update.zip

  • Export data to excel from oracle ?

    Hi,
    Is it possible to export the table data to an excel sheet??? If yes, please let me know how to achieve it !!!
    Regards
    Venkat

    Numerous threads about this issue....
    Just a pair of example...
    Export from oracle to excel
    Export Data to Excel using PL/SQL
    If you were not satisfied ... , you could search extensively the forums:
    http://forums.oracle.com/forums/search.jspa?threadID=&q=export+data+to+excel&objID=f75&dateRange=lastyear&userID=&numResults=15
    Greetings...
    Sim

  • Pivot Report in Excel from Oracle data base

    I need to bring data in Excel from Oracle table.
    The connectivity was established without any problem.
    When trying to transform the newly created query into
    a pivot table a am not able to see the data inside the
    "Data area" of pivot table as it is in the data base
    tables, instead Excel transforms the data in Sum, Average,
    etc...
    I believe it is an Excel issue but I am not sure.
    Any sugestions would be appreciated.
    Thanks,
    Larry Moise

    Thank u but already i do have apache POI
    hoew to make a conversion of coulmn data to excel

  • Sending email from Oracle Forms with attachments

    Hi,
    Is there any package or option available in Oracle forms to send email with attachments?
    Your reply will be highly appreciated.
    Regds,
    noneda

    There are a couple of ways to send email (with attachements) from Oracle Forms. Check out these links to some examples.
    using OLE2 or CLIENT_OLE2 to access a mail-client via Mail-Api ( Get and set Outlook properties )
    using MAILTO in conjunction with HOST or CLIENT_HOST to "start" a mail-client ( Re: Open Microsoft Outlook new massage with TO containing the email address )
    using UTL_SMTP for database-side-mailing ( Re: Send mail with attachment )
    Hope this helps,
    Craig...

  • How to Call Crystal Reports XI  from  Oracle Forms 6i

    hi can any one ,Please provide me the steps to call Crystal Reports XI from Oracle Forms 6i
    very urgent please
    if any Doument,attachment please send to [email protected]
    Thanks in advance
    Regards
    S.Thirumalai selvan

    Hi All,
    Can anyone send me the steps to call Crystal Reports XI from Oracle Forms 6i (client/server)?
    Thanks in advance, Lidija
    My email is: [email protected]

  • Copy and Paste from Oracle Forms to Excel

    Hi to All,
    I ran into this unusal problem with one user. She is trying to copy data in a cell from oracle form to excel. She does control+c and tries to control+v in excel. The data does not get pasted.
    I tried logging into oracle on her pc and do the same method. I get the same results.
    We tried copy from the menu bar in oracle and go into excel , menu and do paste. And it does not paste.
    I did a test from copy from word document to excel...that worked.
    We tried a different pc and everything worked.
    Is there a setting in oracle when i do a copy that is not copyin the cell correctly. Any tips how to resolve this problem.
    Thanks in advance for help in this matter.

    If it only happens on one PC, then usually there is a problem with the PC showing the "yellow bars" when logging into Oracle Forms. Otherwise, there is a more global problem with unsigned JAR files on the server.
    Unable To Copy And Paste Text To Desktop Applications From Core Applications
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=434038.1
    Cannot Cut, Copy, or Paste from a Desktop Application into Oracle Applications
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=168280.1
    Cannot Perform a Copy and Paste from release 12.0.4 from or to Excel
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=735670.1

  • Passing a value for date parameter from Oracle Forms to BIP

    Hi
    I have created a report with the following SQL query:
    select
    d_tables.d_seq,
    to_date(d_tables.d_created) creation_date,
    d_tables.d_created_by created_by,
    d_tables.d_pk,
    d_tables.table_name,
    d_tables.comments
    from
    d_tables, d_applications
    where
    d_tables.d_ppk = d_applications.d_pk
    and to_date(d_tables.d_created) >= nvl(:P_CRE_DATE_FROM, to_date(d_tables.d_created))
    and to_date(d_tables.d_created) <= nvl(:P_CRE_DATE_TO, to_date(d_tables.d_created))
    The parameters P_CRE_DATE_FROM and P_CRE_DATE_TO have been set up as date in BI Publisher with format dd-MMM-yyyy
    The report works fine when launched in BI Publisher.
    I want to call this report from Oracle Forms and I'm trying to pass the values for both the parameters. However, the report does not generate output based on values passed.
    Does it have to do with datatype? Does anyone know a solution for this?
    Kind regards,
    Aparna

    Thanks for your suggestion. I am already referring to the whitepaper and have integrated Forms with BI Publisher. The parameter passing is working fine for a varchar2 type of parameter. However, for a date type, there seems to be some problem.

  • How to get report in excel format instead of pdf from oracle forms.

    Hi,
    How to get report in excel format instead of pdf from oracle forms.
    Form & Report developer 10g
    report format .rdf

    create a report using report builder.
    call the report from form using the following procedure
    DECLARE
         RO_Report_ID REPORT_OBJECT;
         Str_Report_Server_Job VARCHAR2(100);
         Str_Job_ID VARCHAR2(100);
         Str_URL VARCHAR2(100);
         PL_ID PARAMLIST ;
    BEGIN
    PL_ID := GET_PARAMETER_LIST('TEMPDATA');
         IF NOT ID_NULL(PL_ID) THEN
    DESTROY_PARAMETER_LIST(PL_ID);
         END IF;
         PL_ID := CREATE_PARAMETER_LIST('TEMPDATA');
         RO_Report_ID := FIND_REPORT_OBJECT('RP2RRO');
         Add_Parameter(pl_id,'P_SUPCODE',TEXT_PARAMETER,:CONTROL.S_CODE);
    Add_Parameter(pl_id,'P_INVOICE_NO',TEXT_PARAMETER,:CONTROL.IN_NO);
    Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
         SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_FILENAME, 'INVOICE_REG_DETAILS.rep');
         SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_COMM_MODE, SYNCHRONOUS);
         SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_EXECUTION_MODE, BATCH);
         SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESTYPE, FILE);
         SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESFORMAT, 'SPREADSHEET');
         SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_SERVER, 'rep_dbserver_frhome1');
         Str_Report_Server_Job := RUN_REPORT_OBJECT(RO_Report_ID, PL_ID);
         Str_Job_ID := SUBSTR(Str_Report_Server_Job, LENGTH('rep_dbserver_frhome1') + 2, LENGTH(Str_Report_Server_Job));
         Str_URL      := '/reports/rwservlet/getjobid' || Str_Job_ID || '?server=rep_dbserver_frhome1';
         WEB.SHOW_DOCUMENT(Str_URL, '_SELF');
         DESTROY_PARAMETER_LIST(PL_ID);
    END;

  • Live Demo of sending SMS from Oracle Forms.

    I've just a posted a live demo of how to develop code to call a web service to send and SMS from Oracle Forms.
    Regards
    Grant
    http://otn.oracle.com/formsdesignerj2ee
    http://groundside.com/blog/GrantRonald?title=live_demo_of_sending_an_sms_from_forms&more=1&c=1&tb=1&pb=1

    Welcome to the Oracle Forums. Please take a few minutes to review the following:
    <ul>
    <li>Before posting on this forum please read
    <li>10 Commandments for the OTN Forums Member
    <li>Announcement: Forums Etiquette / Reward Points
    </ul>
    Do anybody know about sending the sms from oracle forms.If anybody had means please send me the script...... This is a commonly asked question. Have you tried searching the forum for possible solutions? Take a look at this search result. I would also recommend you take a look at the Oracle Forms Services 11g web page and scroll down to the Oracle Forms 11g calling a web service link. This is a white paper published by Grant Ronald that specifically describes the process of sending SMS from Oracle Forms.
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Regards sending text sms from oracle forms 10g

    Do anybody know about sending the sms from oracle forms.If anybody had means please send me the script......

    Welcome to the Oracle Forums. Please take a few minutes to review the following:
    <ul>
    <li>Before posting on this forum please read
    <li>10 Commandments for the OTN Forums Member
    <li>Announcement: Forums Etiquette / Reward Points
    </ul>
    Do anybody know about sending the sms from oracle forms.If anybody had means please send me the script...... This is a commonly asked question. Have you tried searching the forum for possible solutions? Take a look at this search result. I would also recommend you take a look at the Oracle Forms Services 11g web page and scroll down to the Oracle Forms 11g calling a web service link. This is a white paper published by Grant Ronald that specifically describes the process of sending SMS from Oracle Forms.
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Sending email through a public folder from Oracle forms 6i

    Hi,
    I have read a lot about this topic but still can't seem to figure out how to send a email from a public folder that I have access to. I am logged on as myself into Outlook and I have access to a public folder. When I send a email with attachments to a client it MUST show the public folder email address as the "FROM'. How can I get outlook to stop defaulting to my email? I have the proper rights and so forth meaing I can send a test email logged onto this folder and user cc,bcc, BUT not the FROM field.
    Here is my code:
    Declare
    objOutlook OLE2.OBJ_TYPE;
    objMail OLE2.OBJ_TYPE;
    objArg OLE2.LIST_TYPE;
    objArg2 OLE2.LIST_TYPE;
    objAttach OLE2.OBJ_TYPE;
    nameSpace OLE2.OBJ_TYPE;
    args OLE2.LIST_TYPE;
    BEGIN
    objOutlook := OLE2.CREATE_OBJ('Outlook.Application');
    args:=OLE2.create_arglist;
    OLE2.add_arg(args,'MAPI');
    nameSpace:=ole2.invoke_obj(objOutlook,'getNameSpace',args);
    OLE2.destroy_arglist(args);
    OLE2.invoke(nameSpace,'Logon');
    objarg := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(objarg,0);
    objMail := OLE2.INVOKE_OBJ(objOutlook,'CreateItem', objarg);
    OLE2.DESTROY_ARGLIST(objarg);
    objAttach := OLE2.GET_OBJ_PROPERTY(objmail, 'Attachments');
    objarg := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(objarg,'c:\Jan28.txt');
    objarg2 := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(objarg2,'c:\2011_1.pdf'); -- filename
    OLE2.SET_PROPERTY(objmail,'FROM','[email protected]');
    OLE2.SET_PROPERTY(objmail,'To','[email protected]');
    OLE2.SET_PROPERTY(objmail,'Bcc','[email protected]');
    OLE2.SET_PROPERTY(objmail,'Subject','Email sent from Oracle Forms 6i');
    OLE2.SET_PROPERTY(objmail,'Body','Testing email FROM');
    OLE2.INVOKE(objattach, 'Add', objarg);
    OLE2.INVOKE(objattach, 'Add', objarg2);
    OLE2.INVOKE(objmail,'Send');
    OLE2.RELEASE_OBJ(objmail);
    OLE2.RELEASE_OBJ(nameSpace);
    OLE2.RELEASE_OBJ(objOutlook);
    OLE2.DESTROY_ARGLIST(objarg);
    END;
    Please let me know why OLE2.SET_PROPERTY(objmail,'FROM','[email protected]');
    does not work. And how I can get it to work?
    Any suggestions much appreciated...

    You can send emails using the utl_smtp package. There are many examples in the pl/sql forum, or on http://asktom.oracle.com.

  • How to print BIP reports from Oracle Forms?

    Hi all,
    I have a question in regards to printing BIP reports from Oracle Forms... We are aiming for a server installation of BIP with integration to Oracle Forms using SSO to handle security. We use Forms built-in web.show_document to render and view the report in PDF/Excel etc... We would like to by pass the viewing and print some of these reports directly to the printer.
    Any idea/suggestions how we can go about this?
    Thanks in advance for your time.
    Yahya

    Yahya,
    via HTTP it's not possible to send a report directly to the printer. You had to go via the Scheduler, which is able to do that. With the WebService API you can call a report with the Scheduler and Execute Immediate.
    Regards
    Rainer

  • Calling web service from oracle forms 10g

    Problem Description:
    I'm following the steps as per the doc:
    http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html
    to create a java stub to call external web service and then use java importer in oracle forms to call this web service from oracle forms.
    WSDL for external web service used is http://gend:83/DesignService.svc?wsdl
    The service was developed by us.
    Calling the web service using JDeveloper works fine but when I complie in Oracle Forms it returns wrong number of types of arguments in call SENDHELLO.
    The code from oracle form to call web service is as below:
    DECLARE
    jo ora_java.jobject;
    xo ora_java.jobject;
    rv varchar2(2000);
    ex ora_java.jobject;
    str varchar2(100);
    BEGIN
    jo := GendServiceClient.new;
    rv := GendServiceClient.sendHello('Nora');
    EXCEPTION
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    WHEN ORA_JAVA.EXCEPTION_THROWN then
    ex := ORA_JAVA.LAST_EXCEPTION;
    message(Exception_.toString(ex));
    END;
    Any help/ideas on this is greatly appreciated. Thanks.
    Edited by: KE Nora Loera on Jun 1, 2012 1:24 PM

    My primary skill is PL/SQL but the only information I found on Oracle's site to call a web service from a 10g Form was creating a jar file and importing the java class. Since I don't want to ask our corporate IT to make changes on the UNIX box for the jar files I went a different route.
    I use UTL_HTTP.BEGIN_REQUEST to call a URL then load I load the data to a table as a CLOB since we have more than 4000 characters. Now I need to parse the XML and load it into a form. I have never done this so if there is a helpful site please let me know. I have looked at several sites but none do what I want.
    Thanks

  • Calling web service from oracle forms fails with ORA_JAVA.JAVA_ERROR

    Problem Description:
    I'm following the steps as per the doc:
    http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html
    to create a java stub to call external web service and then use java importer in oracle forms to call this web service from oracle forms.
    WSDL for external web service used is http://www.webservicex.net/CurrencyConverter.asmx?wsdl
    Calling the web service using JDeveloper works fine but from Oracle Forms returns ORA_JAVA.JAVA_ERROR; Unable to call out to Java, Invalid object type for argument 1
    The code from oracle form to call web service is as below:
    DECLARE
    jo ora_java.jobject;
    rv ora_java.jobject;
    ex ora_java.jobject;
    outString varchar2(2000);
    BEGIN
    jo:= CurrencyConvertorStub.new;
    --This will get the exchange rate from US Dollars to UK Sterling.
    rv:= CurrencyConvertorStub.ConversionRate(jo,'CAD','USD');
    message (float_.floatValue(RV));
    EXCEPTION
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    WHEN ORA_JAVA.EXCEPTION_THROWN then
    ex := ORA_JAVA.LAST_EXCEPTION;
    outString := Exception_.toString(ex);
    message(outString);
    END;
    Any help/ideas on this is greatly appreciated. Thanks.

    Yes, it is the message line - so basically this call fails => rv:= CurrencyConvertorStub.ConversionRate(jo,'CAD','USD'); and control goes in the exception block
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    Below is the code from java stub that was generated using JDeveloper by using web services stub/skeleton and associating the WSDL
    public Double ConversionRate(String FromCurrency, String ToCurrency) throws Exception
    URL endpointURL = new URL(endpoint);
    Envelope requestEnv = new Envelope();
    Body requestBody = new Body();
    Vector requestBodyEntries = new Vector();
    String wrappingName = "ConversionRate";
    String targetNamespace = "http://www.webserviceX.NET/";
    Vector requestData = new Vector();
    requestData.add(new Object[] {"FromCurrency", FromCurrency});
    requestData.add(new Object[] {"ToCurrency", ToCurrency});
    requestBodyEntries.addElement(toElement(wrappingName, targetNamespace, requestData));
    requestBody.setBodyEntries(requestBodyEntries);
    requestEnv.setBody(requestBody);
    Message msg = new Message();
    msg.setSOAPTransport(m_httpConnection);
    msg.send(endpointURL, "http://www.webserviceX.NET/ConversionRate", requestEnv);
    Envelope responseEnv = msg.receiveEnvelope();
    Body responseBody = responseEnv.getBody();
    Vector responseData = responseBody.getBodyEntries();
    return (Double)fromElement((Element)responseData.elementAt(0), java.lang.Double.class);
    }

Maybe you are looking for

  • How do I set up two phones with the same Icloud account

    I have 2 Iphones for my daughters and want to use the same Itunes account and Icloud account but when I set it up on the 2nd phone it uploaded the other phones contacts and the new phone is receiving the 1st phones text message.  do you have to set u

  • Nomad Jukebox Zen Xtra de

    Purchased last December, I have yet to have a problem with my player... untill today. I went to reload all tracks on it, and it crashed in the middle of loading. Then, the computer wouldn't recognize the player after it was plugged in. I un-installed

  • SQL Tool to insert/update/delete non english data

    I have a requirement to insert/update non English data using command line. I know that Sql*Plus cannot be used for this. I have tried Sql*Loader and that works fine for inserts. Question is can SQL*loader be used for updates and deletes too. Also whi

  • Accessing a form from an applett

    Is something like that possible? And if, how does it work? a.html: <applet code=a.class /> <form name=afrom> <input name=inp1 type=text> </form> a.java: String s = magicCall().aform.inp1.value; // read out the formular magicCall().aform.inp1.value =

  • AEM(Asset MAnegement)

    Hi guys anyone who has Asset management docs,simplyfied process doc's not the oracle user/impl guides,please share thank you in advance