Loading the DataWindow object

SetDWObject The next step is to specify the PBD or PBL file that contains the DataWindow object and the name of the DataWindow object. You do not need to specify the location of the file, but it must be available on the component server in a directory on the server’s path (or on the system path if the EAServer component is running as a service or if you are using COM+):

 retVal = dwGen.SetDWObject ("htgenex.pbl",
		"d_tabular_dept");

You can also specify a:

.

For SRD and PSR files, specify an empty string for the DataWindow name:

dwServer.SetDWObject("myreport.psr", "" );

For DataWindow Container components, use the the SetDWObjectEx method:

dwServer.SetDWObjectEx ("d_emp");