Hi,
i have a managed COM component with an array as parameter like this:
public byte[] ProcessPdfDocument(string reportPath, string identifier,
string boType, string userName, bool storeDocument, string[] parameters)
Now i want to call this method out of an ASP Page (JScript) :
var bo = Server.CreateObject("DocumentProcessing.DocProcessor");
var theArray = new Array();//"12541", "de", "True");
theArray[0] = "12541";
theArray[1] = "de";
theArray[2] = "True";
var reportStream = bo.ProcessPdfDocument("/Offer/myOffer", "12541", "Offer",
"theUser", true, theArray)
Now the following error occours:
--------------------------------------
(0x800A0005)
Invalid procedure call or argument
-----------------------------------------
i tried also the MarshalAsAttribute like this:
public byte[] ProcessPdfDocument(string reportPath, string identifier,
string boType, string userName, bool storeDocument,
[MarshalAs(UnmanagedType.SafeArray, SafeArraySubType=VarEnum.VT_BSTR)]
string[] parameters)
but unfortunately without success!
thankful for every assistance
regards
Patrick Ruhnow