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