Microsoft Producer for PowerPoint 2003 SDK banner art
PreviousNext

Getting Started

This section shows you how to create the simplest of all possible e-services. This sample is not really a service at all, because it performs no useful function; it only displays the text "Hello World!" in the Producer Publish Wizard. It does, however, demonstrate the minimum work required to make your e-service visible in the Publish Wizard user interface so you can test and debug your code.

The following steps create the Hello World sample:

  1. Open a new text file using a text editor, such as Notepad.exe. Type the following:
    Windows Registry Editor Version 5.00
    
    [HKEY_CURRENT_USER\Software\Microsoft\Producer\WebHosts\Hello World]
    
    "HTMLBasedUIURL" = "http://yourserver/yourpath/HelloWorld.htm"
    "ID" = "C1C8024B-3667-4245-BB8C-0556D61D6166"
    

    The name of the e-service is the text between the last backslash and the closing square bracket on the line that begins with [HKEY CURRENT USER (in this case, Hello World). This is the name that appears in the Web server list in the Publish Wizard user interface, and also the name of the WebHost key in the registry.

    The value provided for ID is a globally unique identifier (GUID). This must be unique for each WebHost, but feel free to use the one provided for this example. Normally, you will generate a new GUID for each WebHost you create in this manner. (The GUID is generated automatically when you register a WebHost using the Producer Object Model.)

  2. Change the path specified following HTMLBasedUIURL in the preceding text to match a valid URL on your Web server. Be sure to retain the file name HelloWorld.htm.
  3. Save the text file as "HelloWorld.reg". Do not add a .txt file name extension.
  4. If necessary, copy the file HelloWorld.reg to the computer that runs Producer.
  5. Use Explorer to browse to the folder where you saved or copied the HelloWorld.reg file.
  6. Double-click the HelloWorld.reg file. Click Yes and OK when prompted. You've now registered the Hello World WebHost key. This is the registry key that makes the e-service accessible from the Web server list in the Publish Wizard.
  7. Open a new text file in the text editor. Type the following:
    <HTML>
    <HEAD></HEAD>
    <BODY>
    Hello World!
    </BODY>
    </HTML>
  8. Save the text file as "HelloWorld.htm". This is the Web page that displays in the Producer Publish Wizard when you select the Hello World Web server.
  9. Copy the file HelloWorld.htm to the Web server URL path you specified in step 2.

To display the Hello World page:

  1. Start Producer and open a project.
  2. Click Publish on the toolbar to invoke the Publish Wizard.
  3. Click Web server to enable the drop-down list.
  4. Choose Hello World in the Web server list.
  5. Click Next.

The message displays in the hosted browser window client area.

For the finished samples that accompany this topic, see The Hello World Sample.

PreviousNext


© 2001-2003 Microsoft Corporation. All rights reserved.