Free Support Forum - aspose.com

Aspose.Words changing data source file extension automatically

Using aspose.words.dll 8.2 version i have written below logic to change the data source from .doc to .txt

but now i want to use aspose.words.dll 6.2 due to some issues.

how can we write the same code in 6.2 version?

If doc(0).MailMergeSettings.DataSource.ToUpper.IndexOf(".TXT") = -1 Then

doc(0).MailMergeSettings.DataSource = TokenFileName

doc(0).MailMergeSettings.Query = "SELECT * FROM " & TokenFileName

doc(0).MailMergeSettings.MainDocumentType = Settings.MailMergeMainDocumentType.FormLetters

ok = True

End If


This message was posted using Aspose.Live 2 Forum

Hi

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

Thanks for your request. MailMergeSettings feature is available starting from 8.0.0 version of Aspose.Words. So unfortunately, it is impossible to achieve the same using older versions.

Best regards.