I am having trouble using older VB6 style code with MailMerge and Words. I've seen a lot of posts in this forum but none seem to be up-to-date that I have seen so far. Like the older MailMerge.ExecuteADO which would accept an ADODB.Recordset.
Is that gone? How do I use a Recordset now?
Also - does anyone have any pre-built TLB files for these objects. It's a pain not to get the intellitype in the VB editor to see all the methods and enums etc...
Here is some basic code:
Set helper = CreateObject("Aspose.Words.ComHelper")
Set obj = CreateObject("Aspose.Words.Document")
Set doc = helper.Open("C:\Program Files\Aspose\Aspose.Words\Demos\Documents\MailingLabelsDemo.doc")
rsRec.Open "SELECT TOP 50 Name as [CompanyName],BAddress1 as [Address], BCity as [City], BPostalCode as [PostalCode], BCountry as [Country] FROM CRDACCOUNT Order By Name", dbcnn, adOpenForwardOnly, adLockReadOnly
doc.Save "C:\Program Files\Aspose\Aspose.Words\Demos\Documents\MailingLabelsDemo_out.doc"
Get no errors on that, but also no mailmerge either!