We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Write Unicode using Document Builder

Hi


How do I write Unicode symbols using document builder?


I need to add check boxes, both checked and unchecked, into cells of a table.

Cheers

Hi Dean,


Thanks for your inquiry. Please use the following code example to achieve your requirements. Hope this helps you. Please let us know if you have any more queries.



// Create document and DocumentBuidler object

Document doc = new Document();

DocumentBuilder builder = new DocumentBuilder(doc);

builder.PushFont();

builder.Font.Name = "Wingdings 2";

builder.Font.Size = 20;

builder.Write("\x0052");

builder.PopFont();

builder.Writeln(" - Checked");

builder.PushFont();

builder.Font.Name = "Wingdings 2";

builder.Font.Size = 20;

builder.Write("\x00A3");

builder.PopFont();

builder.Writeln(" - Unchecked");

// Save output document.

doc.Save(@"Out.docx");

Thank you!

Hi Dean,


Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.