Referencing an Object Library: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{Template:API}}
{{Template:API}}


To use the Synthesis API in your code, you must reference the Synthesis API library in your VBA or .NET projects.  
To use the Synthesis API in your code, you must reference the Synthesis API library in your VBA or .NET projects. Referencing a library also activates Visual Basic Intellisense ™, which displays the syntax of a statement and applicable parameters as you begin coding.


===To reference the library from VBA===
==To reference the library from VBA==
# Enter the VBA environment by clicking the '''Visual Basic''' command on the Developer tab (If the Developer tab is not visible, see [https://msdn.microsoft.com/en-us/library/bb608625.aspx this Microsoft article]).  
# Enter the VBA environment by clicking the '''Visual Basic''' command on the Developer tab (If the Developer tab is not visible, see [https://msdn.microsoft.com/en-us/library/bb608625.aspx this Microsoft article]).  
# In the VBA environment, choose '''Tools > References'''. (If the References command is unavailable, click the '''Reset''' button on the ribbon and then try again.)
# In the VBA environment, choose '''Tools > References'''. (If the References command is unavailable, click the '''Reset''' button on the ribbon and then try again.)
# Click ''Browse'' and find the SynthesisAPI.tlb file on your computer. Click '''OK'''. The library is now ready for use.
# Click '''Browse''' and find the SynthesisAPI.tlb file on your computer. Click '''OK'''. The library is now ready for use.




===To reference the library from Visual Studio===
==To reference the library from Visual Studio==
# In Solution Explorer, double-click the '''My Project''' node for the project.
# In Solution Explorer, double-click the '''My Project''' node for the project.
# In the Project Designer, click the '''References''' tab. Then click the '''Add''' button.
# In the Project Designer, click the '''References''' tab. Then click the '''Add''' button.
# In the Add Reference window, click the '''Browse''' tab and find the SynthesisAPI.dll file on your computer. Click '''OK'''. The library is now ready for use.
# In the Add Reference window, click the '''Browse''' tab and find the SynthesisAPI.dll file on your computer. Click '''OK'''. The library is now ready for use.
Referencing a library activates Visual Basic Intellisense ™, which displays the syntax of a statement and applicable parameters as you begin coding. Definitions for the Synthesis API library will also be available in the object browser ('''View > Object Browser'''). Exploring these features can help you learn more about the Synthesis API object library as you begin using it in your code.

Revision as of 16:07, 12 August 2015

APIWiki.png



To use the Synthesis API in your code, you must reference the Synthesis API library in your VBA or .NET projects. Referencing a library also activates Visual Basic Intellisense ™, which displays the syntax of a statement and applicable parameters as you begin coding.

To reference the library from VBA

  1. Enter the VBA environment by clicking the Visual Basic command on the Developer tab (If the Developer tab is not visible, see this Microsoft article).
  2. In the VBA environment, choose Tools > References. (If the References command is unavailable, click the Reset button on the ribbon and then try again.)
  3. Click Browse and find the SynthesisAPI.tlb file on your computer. Click OK. The library is now ready for use.


To reference the library from Visual Studio

  1. In Solution Explorer, double-click the My Project node for the project.
  2. In the Project Designer, click the References tab. Then click the Add button.
  3. In the Add Reference window, click the Browse tab and find the SynthesisAPI.dll file on your computer. Click OK. The library is now ready for use.