Re: ADODB.Stream.Open now with VS2005 gives wrong type error message




"Sarah M. Weinberger" <mweinberger@xxxxxxxxxxx> wrote in message
news:OZGEGveCIHA.4712@xxxxxxxxxxxxxxxxxxxxxxx
Hi Chris,

I do thank you for responding to my query, but can you offer a solution to
how to create a stream? The code that I gave below worked before but
throws a runtime error of an argument fault with Visual Studio 2005, where
there is no argument error.

Try setting the corresponding properties on the object after creating it,
and calling open with no properties?

-Mark



Thanks,

Sarah

oStream = new ADODB.Stream();
oStream.Open((object)System.Reflection.Missing.Value,
ConnectModeEnum.adModeWrite,
StreamOpenOptionsEnum.adOpenStreamUnspecified,
"", "");




.