Need Answer

Questions regarding Aspose Template Code

I've created a new version of the AsposeTemplateSyntax Word Template, but there are a couple of things that I can't get to work. I'm hoping you will be able to help.

1) How do I change the format of the field PublishDate? I'd like to change the format to a UK date format with no time, so I've tried:

  1. Published: <<[PublishDate] :"dd.MM.yyyy">>

in the template but this has no effect.

2) How do I display the values for tables that have been created as an Extended Attribute. For properties with a Type of text, the tags [Name], [Description],[Type] and [Value] all display correctly, but for properties with a Type of table, only the [Name], [Description] and [Type] display. I presume this is because there are multiple items within the value field for the table, but I can't work out how to display these. I've tried <<foreach [item in Value]>> but this doesn't work. The code I have at the moment is:

  1. <<foreach [item in Properties]>>

    <<[Name]:upper>>

    <<[Description]>>

    <<[Type]>>

    <<<[Value]>>

    <</foreach>>

3) How can I use the Type field from Properties in an if statement? I've tried

  1. <<if [Type==”table”]>>

but that causes an error.

4) How can I use Regex code to replace text in a text value? I've tried:

  1. <<[Name.Replace(new Regex ("regex code"), "")]:upper>>

but that causes an error.