COM Wrapper for Aspose.Words

Hi

Thanks for your request. The ComHesper class is created for opening documents.

Most of the methods of Document class are available. But GetFieldNames method returns String[], and COM can’t work with this type. That’s why you should create wrapper class and return object[].

Best regards.

hi;

thx for the reply…

I know getfieldnames return the string array, but as you have a wrapper class already there COMHelper and i was wanting to know that when you would add feature to return object array through your helper class.

In this thread there is a logged issue in your defect database #3007, which is related to this problem as well.

The point is if you can not use string array using COM then there is no point to return it either. Also it might be worth to add an overloaded method to get object array if needed.

If you can tell me any timelive for this then it would be easier for us to decide if we want to purchase this or not. As i said we would be purchasing OEM single developer license for probably 2 developers.

Becuase of this you can not use Exexute method of Mailmerge using COM class either. The overloaded function which takes array of fieldnames and array of values, which will definatly be very useful in COM as well as passing resultset is not always good and available.

any help would be greatly appreciated.

Kind regards

Azhar

Hi

  1. Please expect a reply before the next hotfix (within 2-3 weeks). We might just fix it by then or provide more information.

  2. You can use the following code instead Execute method which takes array of fieldnames and array of values.

Dim convention_name
Dim city_name
Dim full_name
Dim PHONE_NUMBER
Dim Title
Dim Special
convention_name = "George"
city_name = "Washington"
full_name = "George Bush"
PHONE_NUMBER = "654646464"
Title = "Test"
Special = "1"
Dim helper
Set helper = CreateObject("Aspose.Words.ComHelper")
Dim Doc
Set Doc = helper.Open("E:\Projects\Aspos.words\in.doc")
'Create new RecordSet
Dim rsParam
Set rsParam = CreateObject("ADODB.Recordset")
rsParam.Fields.Append "ConventionName", CInt(129), CInt(40), False
rsParam.Fields.Append "ConventionCity", CInt(129), CInt(40), False
rsParam.Fields.Append "SpecialInstructions", CInt(129), CInt(40), False
rsParam.Fields.Append "ConventionManagerName", CInt(129), CInt(40), False
rsParam.Fields.Append "ConventionManagerTitle", CInt(129), CInt(40), False
rsParam.Fields.Append "ConventionManagerPhone", CInt(129), CInt(40), False
rsParam.Open
'Fill RecordSet
rsParam.AddNew Array("ConventionName", "ConventionCity", "SpecialInstructions", "ConventionManagerName", "ConventionManagerTitle", "ConventionManagerPhone"), Array(convention\_name,city\_name, Special,full\_name, Title, PHONE\_NUMBER)
'Execute MeilMerge
Doc.MailMerge.ExecuteADO rsParam
'Save document
doc.Save "E:\Projects\Aspos.words\out1.doc"
rsParam.Close()

I hope that it will help you.

Best regards.

The issues you have found earlier (filed as WORDSNET-1188) have been fixed in this Aspose.Words for .NET 18.12 update and this Aspose.Words for Java 18.12 update.

The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for .NET 18.12 update and this Aspose.Words for Java 18.12 update.