The DataWindow Web control for ActiveX (Web ActiveX) displays a PSR with its data and formatting as it was previewed and saved from the Report painter.
ActiveX support required Netscape browsers do not support ActiveX, therefore this control cannot be used with Netscape.
When you install InfoMaker, the setup program installs the PSDWC10.5.CAB and PSDWC105.DLL files in the Sybase\Shared\PowerBuilder directory and registers the Web ActiveX in the Windows registry. If you cannot find the files, reinstall InfoMaker and select DataWindow Web control for ActiveX from the Internet Tools group in the custom install.
To display a PSR file in a Web page using the Web ActiveX, use the HTML OBJECT element. The ID of the control is PSDWC1. Use the CLSID attribute to specify the CLSID of the PSDWC105.DLL file after registering. The DataWindowObject parameter specifies the name of the PSR file .
A sample OBJECT element might look like this:
<OBJECT ID="PSDWC1" WIDTH=1058 HEIGHT=668 CLASSID="CLSID:A5A51503-A5A5-1000-8000-080009AC61A9"> <PARAM NAME="_Version" VALUE="65536" <PARAM NAME="_ExtentX" VALUE="22400"> <PARAM NAME="_ExtentY" VALUE="14145"> <PARAM NAME="_StockProps" VALUE="2"> <PARAM NAME="DataWindowObject" VALUE="AprilSales.psr"> </OBJECT>
You must copy the PSR and HTML files to appropriate directories on your server:
Files |
Location |
What you do |
---|---|---|
HTML page |
The HTML documents directory or subdirectory |
Copy the HTML page to the directory specified in any URLs that link to the page. |
PSR file named in the SRC attribute of the Embed element |
The HTML documents directory or some other directory as appropriate |
Copy the PSR file to the directory you specified in the OBJECT element DataWindowObject parameter. |
The URLs you specify in your HTML page are logical paths as defined by the Web server. For example, the system path for your PSR might be:
C:\WEBSITE\HTDOCS\PB\DWB_ATT_CROSSOUT.PSR
If htdocs is defined as the server’s documents directory, the logical path for the URL would be relative to the documents directory:
pb/dwb_att_crossout.psr
You also need to copy the PSDWC105.CAB file to the server.
To use the Web ActiveX with Internet Infomation Services (IIS) 6.0, which is the IIS version included in Windows Server 2003, you need to configure IIS to recognize the .psr extension. Previous versions of IIS include a wildcard character MIME mapping that allows IIS to serve any file.
You must be a member of the Administrators group on the local computer to perform the following procedure, or you must have been delegated the appropriate authority. For more information, see the Microsoft documentation for IIS 6.0 or this Microsoft support document.
To add a global MIME type to IIS 6.0:
In IIS Manager, right-click the computer on which you want to add a MIME type, and click Properties.
Click MIME Types.
Click New.
In the Extension box, type psr
.
In the MIME type box, type application/datawindow
.
Click OK.
Restart IIS to apply the new settings.
You can also add a MIME type to a specific Web site or directory from its HTTP Headers property page.