Thanks, Bob. I thought about that, but I have to be able to resize, trim
and/or replace the object within my own document, and to draw it
transparent, so that other drawings are displayed behind it.
You mentioned in another thread, that there was a way of getting a handle to
the OLE objects inside a RTF document... Since in VB6 I use an OLE container
to hold, save, modify and load OLE documents, I'm not reluctant to use any
other kind of control, but I have to be able to get a handle to the
IViewObject interface of the object, so OleDraw works...
I've had no time to check if one solution or another is implementable,
because I've been busy with other projects (this migration is not
prioritary), but I'd like to find a solution before we even think of
migrating...
Is there a way to use OleLoad and OleSave directly in .NET?
If you could post here the solution to get the objects from an RTF document,
that would be great, because I've lost that thread, and don't seem to be
able to find it again... Promise I'll save it.
If I come to a solution, I promise to publish the complete function/solution
here, so if another one has this problem, it can be solved...
I guess we'll end giving up on inserting/linking OLE documents, and offer
our users a better interface, so they don't need Corel or Word, or any other
object....... Maybe that's simpler!
Thanks again, and I'll be investigating this...
VBen.
"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> escribió en el mensaje
news:OHQZgViCFHA.3928@TK2MSFTNGP15.phx.gbl...
[quoted text, click to view] > There is currently no OLE container in the .NET framework although that
may
> change in the future. A recommended method for displaying OLE documents in
> .NET is to use the AXWebBrowser component and display the OLE documents in
> that.
>
> --
> Bob Powell [MVP]
> Visual C#, System.Drawing
>
> Find great Windows Forms articles in Windows Forms Tips and Tricks
>
http://www.bobpowell.net/tipstricks.htm >
> Answer those GDI+ questions with the GDI+ FAQ
>
http://www.bobpowell.net/faqmain.htm >
> All new articles provide code in C# and VB.NET.
> Subscribe to the RSS feeds provided and never miss a new article.
>
>
>
>
>
> "VBen" <bmorayta@compucaremexico.com> wrote in message
> news:uBwbiZhCFHA.1432@tk2msftngp13.phx.gbl...
> > I'd like to know if there is no solution for this, or if there's a way,
> > managed or unmanaged, to draw an OLE document's image to a windows form
> > (GDI+)...
> > I'm a little impatient, because there's no documentation AT ALL. Not
here,
> > not in .NET, not in MSDN or all over the Internet... Or I've been unable
> > to
> > find it... If someone could point me in the right direction.......
> > Thanks!!!!
> > VBen.
> >
> > "VBen" <bmorayta@compucaremexico.com> escribió en el mensaje
> > news:#KdX1L#BFHA.3592@TK2MSFTNGP11.phx.gbl...
> >> Does anyone knows how (if there's a way) to draw OLE objects (like a
> >> Corel
> >> Draw! image, or an XL spreadsheet) in GDI or GDI+?
> >> I have an app in VB6 that supports insertion of OLE documents into a
> >> graphical document (resizing, clipping, etc), and we want to migrate to
> >> .NET, but the only thing that prevents us from doing it already is the
> >> OLE
> >> support...
> >> Please, if possible, send a copy of your response to
> >> bmorayta@compucaremexico.com
> >> Thanks for your response.-
> >> VBen
> >>
> >>
> >
> >
>
>