3 Setting Up Your Development Environment
This chapter describes how to set up the development environment to integrate an Excel workbook with a Fusion web application, how to upgrade and remove ADF Desktop Integration, and how to localize the Visual Studio tools for Microsoft Office.
This chapter includes the following sections:
3.1 About Setting Up Your Development Environment
Setting up the development environment involves making sure that you have the correct versions of JDeveloper, Microsoft Office, and Microsoft Internet Explorer installed, as described in Section 3.2, "Required Oracle ADF Modules and Third-Party Software."
After verifying that you have the required software, complete the setup of your development environment by:
Allowing ADF Desktop Integration to access Microsoft Excel
Installing ADF Desktop Integration
The instructions in this guide assume that you are using Windows 7 operating system and Microsoft Excel 2007. Note that the steps might be different for different editions of Windows and Excel.
3.2 Required Oracle ADF Modules and Third-Party Software
Before you begin to integrate your Excel workbook with a Fusion web application, ensure that you have the required Oracle ADF modules and third-party software installed and configured:
Install the current release of JDeveloper. ADF Desktop Integration is available as a JDeveloper feature.
Microsoft Windows operating systems support the development and deployment of Excel workbooks that integrate with Fusion web applications. For more information about supported versions of Windows, see the "Oracle JDeveloper and Application Development Framework Certification Information" page on OTN at:
ADF Desktop Integration supports the integration of Fusion web applications with the following types of Excel workbook:
The default file format for Excel workbooks is the Excel XML-based file format (
Excel Macro-Enabled Workbook
Workbooks in this format (
.xlsm) use the Excel XML-based file format and can store VBA macro code.
ADF Desktop Integration does not support the use of other Excel file formats. For more information about supported versions of Excel, see the "Oracle JDeveloper and Application Development Framework Certification Information" page on OTN at:
Microsoft Excel 2003 or older versions of Microsoft Excel are not supported.
Some features in ADF Desktop Integration use a web browser control from the Microsoft .NET Framework. This browser control relies on the local Internet Explorer installation to function properly.
ADF Desktop Integration uses Internet Explorer to render web pages inside Excel, regardless of other browsers installed on the system or any other browser set as the default browser.
For information about the application servers that you can use to deploy an application developed using ADF Desktop Integration, see the "Oracle JDeveloper and Application Development Framework Certification Information" page on OTN at:
3.3 Configuring Excel to work with ADF Desktop Integration
You must configure Microsoft Excel settings to make it accessible from ADF Desktop Integration. You only need to perform this procedure once.
To allow Excel to run an integrated Excel workbook:
Click the Microsoft Office button, and choose Excel Options.
In the Excel Options dialog, choose the Trust Center tab, and then click Trust Center Settings.
In the Trust Center dialog, choose the Macro Settings tab, and then click the Trust access to the VBA project object model checkbox, as shown in Figure 3-1.
For more information about securing an Excel workbook that is integrated with a Fusion web application, see Chapter 11, "Securing Your Integrated Excel Workbook."
3.4 Installing ADF Desktop Integration
When you run the ADF Desktop Integration setup tool, it verifies whether software in the following list is installed on the system where you want to install the framework. If one or more of these pieces of software is not installed, the setup tool automatically downloads and installs it in the order specified.
Windows Installer 3.1
Microsoft .NET Framework
The Microsoft .NET Framework 4 provides the runtime and associated files required to run applications developed to target the Microsoft .NET Framework. You can download the framework from
Do not download the Client Profile edition of Microsoft .NET Framework as it is insufficient to run ADF Desktop Integration.
Installation of Microsoft .NET Framework may require you to restart the system where you install it. After the restart, the setup tool automatically recommences to finalize installation.
Microsoft Visual Studio 2010 Tools for Office Runtime
The Microsoft Visual Studio 2010 Tools for Office Runtime (version 4) is required to run VSTO solutions for the Microsoft Office system. You can download the Microsoft Visual Studio 2010 Tools for Office Runtime from
ADF Desktop Integration add-in
You can install the ADF Desktop Integration add-in from JDeveloper, or from the setup tool provided in
\jdeveloper\adfdi. For more information about how to set up ADF Desktop Integration, see Section 3.4.1, "How to Set Up ADF Desktop Integration."
Note that the ADF Desktop Integration installation is specific to the current Windows user profile. If you have multiple Windows user profiles on your system, and you want to use ADF Desktop Integration integrated Excel workbooks from some specific user profiles, you must log in to each user profile and install the ADF Desktop Integration add-in. For more information, see Section 3.4.1, "How to Set Up ADF Desktop Integration."
3.4.1 How to Set Up ADF Desktop Integration
The ADF Desktop Integration add-in is available in two editions, the Designer edition and the Runtime edition. Use the Designer edition to create and test integrated Excel workbooks, and the Runtime edition to enable end users to use ADF Desktop Integration and integrated Excel workbooks.
Do not install both editions of ADF Desktop Integration on the same system.
Although you do not require administrator privileges to install the ADF Desktop Integration add-in, administrator privileges may be required to run the installers for additional software that the installer attempts to download and install. You should also ensure that the proxy settings for Internet Explorer are configured to allow access to
*.microsoft.com because the installer attempts to automatically download missing prerequisite software from Microsoft's website.
By default, the installer runs in English. You can change the language that appears by following the instructions in the "Localizing the ADF Desktop Integration Installer" section of Administering Oracle ADF Applications.
Before you begin:
It may be helpful to have an understanding of ADF Desktop Integration requirements. For more information, see Section 3.4, "Installing ADF Desktop Integration."
To install the Designer edition of ADF Desktop Integration:
From the Tools menu, choose Install ADF Desktop Integration, as shown in Figure 3-2.
The Install ADF Desktop Integration menu option is available only on the Windows installation of JDeveloper.
Follow the instructions that appear in the dialog boxes to successfully install the required components.
If you encounter an error during the installation process, ensure that you have removed the previous version of ADF Desktop Integration. For more information, see Section 3.5, "Removing ADF Desktop Integration."
If prompted, click Yes to restart the system and complete the setup of ADF Desktop Integration.
You can also install the Designer edition of ADF Desktop Integration by running
setup.exe available in the
If multiple instances of JDeveloper are installed, or if you have an existing instance of the ADF Desktop Integration add-in on the system, review the information in Section 3.8, "Using ADF Desktop Integration on a System with Multiple Instances of JDeveloper" before you perform the installation procedure.
If you want to install the Runtime edition of ADF Desktop Integration, see Section H.1, "Installing, Upgrading, and Removing the Runtime Edition of ADF Desktop Integration."
3.5 Removing ADF Desktop Integration
Use the Microsoft Windows Control Panel to remove the ADF Desktop Integration add-in from the system where you set it up. After removing ADF Desktop Integration, you can no longer use integrated Excel workbooks on this system unless you reinstall ADF Desktop Integration.
To remove the ADF Desktop Integration add-in:
Click the Windows Start button, and then choose Control Panel.
In the Control Panel, select and open Programs and Features.
Select the Oracle ADF Desktop Integration Add-in for Excel entry in the Uninstall or change a program window and click Uninstall.
If you have installed ADF Desktop Integration on multiple user profiles, you must remove it from each user profile.
3.6 Upgrading ADF Desktop Integration
If you are using an old version of ADF Desktop Integration, you must upgrade to the current version.
To upgrade the ADF Desktop Integration add-in:
Uninstall the old version of ADF Desktop Integration.
For more information, see Section 3.5, "Removing ADF Desktop Integration."
Download and install the latest version of Oracle JDeveloper.
Install the new version of ADF Desktop Integration.
For more information, see Section 3.4, "Installing ADF Desktop Integration."
If you do not uninstall the old version of ADF Desktop Integration, an error occurs unless the new installer is in the exact same location as the old installer.
3.6.1 How to Migrate an Integrated Excel Workbook to the Current Version of ADF Desktop Integration
When you open the integrated Excel workbook after upgrading the ADF Desktop Integration add-in, the add-in detects and compares the ADF Desktop Integration version information of the workbook with the version installed on the client system. If required, you are asked to upgrade the configuration of the integrated workbook to the version installed on the client.
Integrated Excel workbooks created using an older ADF Desktop Integration client (version X) do not require migration on a system running a new version of ADF Desktop Integration client (version X+1), but integrated Excel workbooks used and saved with a newer client (version X+1) may no longer work with older clients (version X).
When the integrated Excel workbook is not compatible with the installed version of the ADF Desktop Integration client, a message is displayed when you open the workbook. In such a case, you should install the newer version of the ADF Desktop Integration client in order to interact with the newer workbook.
If you are migrating your integrated Excel workbooks created using the ADF Desktop Integration client of 126.96.36.199.0 version, or older, the Migrate Workbook dialog appears confirming your action.
Before you begin:
It may be helpful to have an understanding of ADF Desktop Integration upgrade. For more information, see Section 3.6, "Upgrading ADF Desktop Integration."
To migrate an integrated Excel workbook after upgrading:
Open the integrated Excel workbook.
The Migrate Workbook dialog prompts you to migrate the workbook to the current version of ADF Desktop Integration, as shown in Figure 3-3.
If you get one or more Microsoft Office Customization Installer error messages when you open the integrated Excel workbook, ignore the messages and continue. The error messages appear because ADF Desktop Integration cannot remove the old version information from the workbook before Excel detects it and reports the error.
Click Yes to migrate the workbook. The ADF Desktop Integration migration process closes the workbook and then reopens it, ready to be used with the current version of ADF Desktop Integration.
3.7 Using an Integrated Excel Workbook with Older Versions of ADF Desktop Integration
When you open a workbook created, or last updated, by a newer version of ADF Desktop Integration on a system running an older version of ADF Desktop Integration, an error message is displayed if the workbook is incompatible with the installed client version. An integrated workbook and the installed ADF Desktop Integration client are incompatible if the first element of their Oracle Release number is different. For example, an integrated workbook created using version 12.1.2 of ADF Desktop Integration client is incompatible with the client from version 188.8.131.52.0.
To see the release number of the installed client and integrated workbook, examine the values of ADF Desktop Integration and Workbook Edited by Version entries in Versions tab of the About ADF Desktop Integration dialog box.
At runtime, ADF Desktop Integration ignores an incompatible workbook. The data in the workbook is not removed, but ADF Desktop Integration treats the workbook as a non-integrated workbook and the following functionalities are affected:
ADF Desktop Integration does not respond to workbook events (for example,
ADF Button components do not respond to events
Worksheet command buttons do not appear in the Excel Ribbon
In design mode, or test mode, the workbook continues to function as expected, but you might notice some unknown exceptions and functionality issues.
3.8 Using ADF Desktop Integration on a System with Multiple Instances of JDeveloper
There can be only one active installation of ADF Desktop Integration on a given system. By default, when you install JDeveloper, ADF Desktop Integration is extracted to
\jdeveloper\adfdi . If you move to another version of JDeveloper installed in a different directory, you should remove the old version of ADF Desktop Integration, as described in Section 3.5, "Removing ADF Desktop Integration." You should then set up ADF Desktop Integration from the new version of JDeveloper, as described in Section 3.4, "Installing ADF Desktop Integration," to keep ADF Desktop Integration consistent with JDeveloper.
Alternatively, you can set up ADF Desktop Integration in a directory that is independent of your JDeveloper installation. This approach means that you do not have to remove ADF Desktop Integration before moving to a newer version.
To set up ADF Desktop Integration in an independent directory:
Create a directory independent of the JDeveloper installation directory. For example, you may create the following directory:
When you move to a newer version of JDeveloper, copy the contents of the following directory:
MW_HOMEis the Middleware Home directory.
setup.exetool located in
Follow the instructions that appear in the dialog boxes launched by
setup.exeto set up the new version of ADF Desktop Integration.
If prompted, click Yes to restart the system and complete the setup of ADF Desktop Integration.
After you install ADF Desktop Integration, do not delete the directory where you copied the setup files. You can delete the files after removing ADF Desktop Integration from the system.