DoubleStrikeThrough


#1

Hello, I cannot get the DoubleStrikeThrough to work.
The StrikeThrough does work, but when I change to DoubleStrikeThrough, it doesn’t.
Here is the code I am using:


Aspose.Word.Document doc = new Aspose.Word.Document();

doc = new Aspose.Word.Document(“c:\temp.doc”);

DocumentBuilder builder = new DocumentBuilder(doc);

builder.MoveToMergeField(“MyFee”);
//builder.Font.DoubleStrikeThrough = true;
builder.Font.StrikeThrough = true;
builder.Write(MyFee);

doc.MailMerge.Execute(…);


#2

Hi,

Thank you for considering Aspose.

Both StrikeThrough and DoubleStrikeThrough work fine for me. Please attach your document.


#3

Hi, can you give me an email to send this to, I don’t want to post the document to the public.
Thanks!


#4

Attachments are not public, they are visible exclusively by you and Aspose in accordance with this Non-Disclosure Statement:

http://www.aspose.com/Forums/ShowPost.aspx?PostID=26761

So do not worry about your privacy.


#5

Ok, great, sorry about that.
Here is the document…


#6

Starnge, here’s the code I used for testing:

DocumentBuilder builder = new DocumentBuilder(doc);

string[] fieldNames = doc.MailMerge.GetFieldNames();

foreach (string fieldName in fieldNames)
{
builder.MoveToMergeField(fieldName);
builder.Font.DoubleStrikeThrough = true;
builder.Write(“Test”);
}

As you can see, all merge fields in your document have been replaced with double struck through text.

1. Please make sure you are using the latest version of Aspose.Word.

2. Post or attach the complete fragment of your code (from instantiating to saving).