Article ID: 197567
Article Last Modified on 6/14/2006
cell.setCSSStyle("text-align", "");
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)
{
DhTable table=new DhTable();
add(table);
DhRow row=new DhRow();
table.add(row);
DhCell cell=new DhCell("Testing");
row.add(cell);
cell.setWidthUnit(200,DhUnits.PIXEL);
cell.setBackColor(Color.LIGHTGRAY);
cell.setTextAlign(DhAlignment.RIGHT);
cell.resetTextAlign();
// Workaround: Uncomment the next line and comment
// out the line above for the workaround.
// cell.setCSSStyle("text-align", "");
}
}
<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>
Keywords: kbbug kbfix kbjava kbhtml kbwfc kbvs600sp3fix KB197567