Received : 2007/10/09 05:28:29
Message : Hi,
I am using ASPOSE.Words in ASP page.
I have written the following code:
Dim License
Set License = CreateObject("Aspose.Words.License")
License.SetLicense "C:\Program Files\Aspose\Aspose.Words\License\Aspose.Total.lic"
Dim WordTempl
Set WordTempl = Server.CreateObject("Aspose.Words.ComHelper")
'==Set WordTempl = Server.CreateObject("SoftArtisans.WordTemplate")
WordTempl.Open Server.MapPath("WordWriter/complianceviolationform.doc")
WordTempl.SetDataSource_1 "short_name", NAME
..........
in replacement to the following code:
NamesArr = Array("short_name","program_name","location","date_of_incident","meeting_event","agency","contact_host","meeting_planner","products","status","incident_to_report","cv_type","other","action_taken","cv_group")
ValuesArr = Array(NAME, PROJECTNAME,location,VIOLATION_DATE,MENAME,AGENCY,SPONSOR,PLANNER,PRODUCTS,CVStatus,DESCRIPTION,compliance,VIOLATION_OTHER,COMMENTS,VIOLATION_GROUP)
Set WordTempl = Server.CreateObject("SoftArtisans.WordTemplate")
WordTempl.Open Server.MapPath("WordWriter/complianceviolationform.doc")
WordTempl.SetDataSource ValuesArr, NamesArr
It gives me an error stating that SetDataSource is an invalid property. I have even tried SetDataSource_3, SetDataSource_5 and SetDatasoURCe_1
but it gives me the same error.
Please help me know the reason for this.
And also please look into the other changes I have done, and let me know in case of any errors found from your side.
THanks,
DOSHIS
This message was posted using Aspose.Live 2 Forum