Hi all, I'm trying to do a integration with the Cognos ReportNet tool using the COM object that comes with the ReportNet SDK (crn.dll). They do not have any ColdFusion examples so I translated their ASP example for logging into ReportNet.
I'm getting an AutomationException: 0x80020005 - Type mismatch error on one of the last lines of code.... which is baffling me because I've checked all my objects and verified against the DLL interface the appropriate types. Has anyone done this before or can you see anything wrong??? Thanks!!!!! <cfscript> oCRNS = CreateObject("COM", "CRN.CognosReportNetService"); oCRNS.endPointUrl = "http://devcognos01/crnmr3/cgi-bin/cognos.cgi"; oFFCol = CreateObject("COM", "CRN.FormFieldVarC"); oFF = CreateObject("COM", "CRN.FormFieldVar"); oFF.Name = "CAMNameSpace"; oFF.value = "Series7"; oFFCol.Add("oFF"); oFF = CreateObject("COM", "CRN.FormFieldVar"); oFF.Name = "CAMUsername"; oFF.value = "username"; oFFCol.Add("oFF"); oFF = CreateObject("COM", "CRN.FormFieldVar"); oFF.Name = "CAMPassword"; oFF.value = "password"; oFFCol.Add("oFF"); oHDR = CreateObject("COM", "CRN.BiBusHeader"); oCAM = CreateObject("COM", "CRN.CAM"); oCAM.action = "loginAs"; oHDR.CAM = oCAM; oHDR.HdrSession = CreateObject("COM", "CRN.HdrSession"); oHDR.HdrSession.formFieldVars = oFFCol; ********* ERROR HERE ******** oCRNS.biBusHeaderValue = oHDR; bca = oCRNS.Query("~", "", "", ""); </cfscript> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259720 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4