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

Free Support Forum - aspose.com

Open office Writer fields supported for mail merge and fields update

Hi,

I'm testing mail merge and fields update with .odt template.

I'm using this code for my tests :

Aspose.Words.License Lica = new Aspose.Words.License();
Lica.SetLicense(@\\...\Aspose.Total.lic);
DataSet ds = new DataSet();
ds.ReadXml(@\\...\data.xml);
Document d = new Document(@\\...\TestTemplate.odt);
d.MailMerge.ExecuteWithRegions(ds);
d.UpdateFields();
d.Save(@\\...\Test2.odt);

It works fine with mergefields ( , , , ...)

Is there other Open office Writer fields supported, like conditionnal text, hidden text, hidden paragraph, etc ?

Could you please give me a list of supported fields, and if you plan to support the others?

Thanks

Hi

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

Thanks for your request. Here is list of FieldTypes supported upon ODT export/import:

FieldType.FieldPageRef

FieldType.FieldRef

FieldType.FieldRevisionNum

FieldType.FieldEditTime

FieldType.FieldKeyword

FieldType.FieldSubject

FieldType.FieldComments

FieldType.FieldTemplate

FieldType.FieldMergeRec

FieldType.FieldNext

FieldType.FieldMergeField

FieldType.FieldUserInitials

FieldType.FieldUserName

FieldType.FieldFileName

FieldType.FieldPage

FieldType.FieldNumWords

FieldType.FieldNumPages

FieldType.FieldSequence

FieldType.FieldHyperlink

FieldType.FieldTitle

FieldType.FieldAuthor

FieldType.FieldLastSavedBy

FieldType.FieldDate

FieldType.FieldTime

FieldType.FieldPrintDate

FieldType.FieldSaveDate

FieldType.FieldCreateDate

FieldType.FieldFormTextInput

FieldType.FieldFormDropDown

FieldType.FieldFormCheckBox

FieldType.FieldSet

FieldType.FieldDocProperty

Here you can find full list of FieldTypes:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/aspose.words.fields.fieldtype.html

Also, I think the following article could be useful for you:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/field-update.html

Best regards.

Hi,

Thanks for these informations.

Do you plan to support Conditionnal text, hidden paragraph and/or hidden text in odt template ?

Hi

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

Thanks for your request. It seems these field are some kind of IF field in MS Word. Sure will consider supporting these fields in one of future version of Aspose.Words. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.

Best regards.