Free Support Forum - aspose.com

Paint box

How can i find Bookmark and set text with symbol n

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Please try using the following code to achieve what you need:

// Open document

Document doc = new Document("Test.docx");

DocumentBuilder builder = new DocumentBuilder(doc);

// Go to Bookmark by name

builder.MoveToBookmark("TestBookmark");

// Insert sumbol

builder.Writeln("\x006E");

doc.Save("out.docx");

Please let me know in case of any issues. I will be glad to help you.

Best regards,

Sorry. The issues is not resolved. I got this symbol <span style=“font-size:9.0pt;mso-bidi-font-size:10.0pt;
font-family:Arial;mso-fareast-font-family:“Times New Roman”;mso-bidi-font-family:
“Times New Roman”;mso-ansi-language:RU;mso-fareast-language:RU;mso-bidi-language:
AR-SA”> <span style=“font-size:9.0pt;mso-bidi-font-size:10.0pt;
font-family:Arial;mso-fareast-font-family:“Times New Roman”;mso-bidi-font-family:
“Times New Roman”;mso-ansi-language:RU;mso-fareast-language:RU;mso-bidi-language:
AR-SA”> n

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Please try using the following code:

// Open document

Document doc = new Document("Test.docx");

DocumentBuilder builder = new DocumentBuilder(doc);

// Go to Bookmark by name

builder.MoveToBookmark("TestBookmark");

// Set font

builder.Font.Name = "Wingdings";

// Insert sumbol

builder.Writeln("\x006E");

doc.Save("out.docx");

Best regards,