Need Answer

Question regarding Aspose Template Code

Hi there,

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 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]>>

    ,<<<[Vaue]>>

    <</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) Can I use the Profile name from the Publish to Word wizard within the template? I want the title of the profile to be the document title on the first page of the template.

Regards,

Simon