I want to set the background color of cell with different color how can i do that ?
How can i create a radio button in the cell ?
Thanks in advance.
Hi
Thanks for your request.
- Try to use CellFormat.Shading.BackgroundPatternColor to set background color of cell. See the following code example.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
// insert cell with Red background
builder.InsertCell();
builder.CellFormat.Shading.BackgroundPatternColor = Color.Red;
// insert cell with Yellow background
builder.InsertCell();
builder.CellFormat.Shading.BackgroundPatternColor = Color.Yellow;
// insert cell with Green background
builder.InsertCell();
builder.CellFormat.Shading.BackgroundPatternColor = Color.Green;
builder.EndRow();
builder.EndTable();
doc.Save("out_97847.doc");
- Unfortunatelly, you can’t insert a radio button into the document.
Best regards.
Thanks for you reply.
Is there any alternative to display radio button in the word file.I just wanna show it i don’t want its functionality there.
Hi
If you don’t need a functionality of radio button then you can insert a radio button as image into the Word document.
Best regards.