Article ID: 197566
Article Last Modified on 6/14/2006
import com.ms.wfc.html.*;
import com.ms.wfc.core.*;
import com.ms.wfc.ui.*;
public class Class1 extends DhDocument
{
public Class1()
{
initForm();
}
private void initForm()
{
}
protected void onDocumentLoad(Object sender, Event e)
{
add(new DhHorizontalRule());
DhTable table=new DhTable();
add(table);
table.add(createRow("RowA"));
table.add(createRow("RowB"));
table.add(createRow("RowC"));
DhRow header=createRow("Header");
DhRow footer=createRow("Footer");
table.setHeaderRow(header);
table.setFooterRow(footer);
table.setHeaderRow(null);
}
protected DhRow createRow(String name) {
DhRow row = new DhRow();
for (int i=0;i<5;i++) {
DhCell cell=new DhCell(name+i);
row.add(cell);
}
return row;
}
}
<HTML>
<BODY>
<hr>
<OBJECT classid="java:com.ms.wfc.html.DhModule"
height=0 width=0 ... VIEWASTEXT>
<PARAM NAME=__CODECLASS VALUE=Class1>
<PARAM NAME=CABBASE VALUE=Project1.CAB>
</OBJECT>
<!-- Insert HTML here -->
</BODY>
</HTML>
Footer0 Footer1 Footer2 Footer3 Footer4 RowA0 RowA1 RowA2 RowA3 RowA4 RowB0 RowB1 RowB2 RowB3 RowB4 RowC0 RowC1 RowC2 RowC3 RowC4
RowA0 RowA1 RowA2 RowA3 RowA4 RowB0 RowB1 RowB2 RowB3 RowB4 RowC0 RowC1 RowC2 RowC3 RowC4 Footer0 Footer1 Footer2 Footer3 Footer4
Keywords: kbbug kbfix kbinetdev kbjava kbvs600sp3fix KB197566