Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ITextDocument and IStream

0 views
Skip to first unread message

Christian B MacLeod Guest

unread,
Apr 4, 2005, 6:20:29 PM4/4/05
to
In the documentation for ITextDocument it states that you can pass an
IStream interface (object implementing an IStream interface) to the Open
method of ITextDocument instead of a filename. I cannot get this to work. It
always returns an Invalid Arguments error.
Nor can I get it to Save back to a Stream object.

Can anyone confirm if this functionallity does indeed work for the RichEdit
V3.0 control?

If so, can I have an example bit of code to do it...

I am trying to check if it works by using SHCreateStreamOnFile and passing
in a filename that works when I try it directly...

Any thoughts?

--
Christian B MacLeod Guest
Senior Analyst / Programmer

Igor Tandetnik

unread,
Apr 4, 2005, 6:29:50 PM4/4/05
to
"Christian B MacLeod Guest" <Christi...@kelton.co.uk> wrote in
message news:ud4wLSWO...@TK2MSFTNGP09.phx.gbl

> In the documentation for ITextDocument it states that you can pass an
> IStream interface (object implementing an IStream interface) to the
> Open method of ITextDocument instead of a filename. I cannot get this
> to work. It always returns an Invalid Arguments error.
> Nor can I get it to Save back to a Stream object.
>
> Can anyone confirm if this functionallity does indeed work for the
> RichEdit V3.0 control?

No it does not work. See

http://groups-beta.google.com/group/microsoft.public.win32.programmer.ole/browse_frm/thread/47bcffa6c2454034/7e6bb1d01e49f207#7e6bb1d01e49f207

--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


Christian B MacLeod Guest

unread,
Apr 4, 2005, 7:24:05 PM4/4/05
to
Thanks for your prompt reply, even if it was not good news for me.

Do you know if it is intended to fix this at any point?

At least I can now work on a workaround instead of trying to get the actual
function to work.


--
Christian B MacLeod Guest
Senior Analyst / Programmer

"Igor Tandetnik" <itand...@mvps.org> wrote in message
news:%236y$yXWOFH...@tk2msftngp13.phx.gbl...

0 new messages