Dear Ying-Shen Yu,
I believe this would work in the case of communication from the embedded IE .NET control to IE itself.
Therefore your code sample:
//PrintCtrl embedded IE object
[DispIdAttribute(0x60020001)]
void MyByteEvent( ref byte[] bytes);
would allow me to do something like this in Javascript (IE):
//PrintCtrl is the id on the <OBJECT> tag
function PrintCtrl::MyByteEvent( ref byte[] bytes)
{ //setting value to html element via javascript DOM
document.all.myForm.bytes.value = bytes;
}
That is fine, but I need to pass a byte[][] from code-behind (aspx.cs) to the embedded I.E. control, which would be the reverse (opposite) of the above sample.
Do you know how this can be accomplished ?
Thanks in advance.
> Hi,
>
[quoted text clipped - 17 lines]
> This mail should not be replied directly, please remove the word "online"
> before sending mail.
"Ying-Shen Yu[MSFT]" - 11 Jun 2004 07:04 GMT
Hi,
If you need pass a byte(,) array to .NET you may define a public method on
your embedded control and use the definition like:
void FireMyByteEvent( ref byte[ , ] bytes);
bytes will be marshaled as In and Out, so change the data in the bytes
array will modify the array in script as well.
Is this what your need?
Feel free to let me know if you have any problem when using it.
Have a nice day!
Best regards,
Ying-Shen Yu [MSFT]
Microsoft Community Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.