Jens
|
| Posted: 10/07/2002, 1:31 AM |
|
Hi,
Im using templates in creating an newsletter application becuase the printvar(main) is easy to direct to an e-mail object. However i cant loop through the records since i get an VB script error (
Der opstod en Microsoft VBScript-korselsfejl fejl '800a01c9'
Denne nogle er allerede associeret med et element i denne samling
/webic/TemplateObj.asp, line 43 (its the Key already associated in this collection error)
when i try to parse the second record templateobj.asp - in the line DBlocks.Add sName, objFSO.OpenTextFile(sPath).ReadAll - what can i do to solve this problem ?
Regards
jens
|
|
|
 |
Nicole
|
| Posted: 10/08/2002, 6:11 AM |
|
Hello,
1) specify CC version from Help/About menu.
2) Do you get this error in example shipped with CC ?
3) Did you add any custom code to CC events ?
|
|
|
 |
jens
|
| Posted: 10/14/2002, 3:21 PM |
|
Hi,
I solved the problem by creating new template objects before going to next record in the loop i.e.
'Creating new template object
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set DBlocks = Server.CreateObject("Scripting.Dictionary")
Set ParsedBlocks = Server.CreateObject("Scripting.Dictionary")
do you see any problem in this solution ?
i am still on CC 2.0.5 (wish i had the time to explore ccs !)
for this project ive added tons of custom code !
Im using the dundas mailer for this part - and i really like the ability to design the mail body in CC as just another set of forms !!
jens
|
|
|
 |
|