all groups > dotnet drawing api > january 2005 >
You're in the

dotnet drawing api

group:

OLE documents in GDI+


OLE documents in GDI+ VBen
1/31/2005 4:19:48 PM
dotnet drawing api: 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

Re: OLE documents in GDI+ baryon
1/31/2005 6:01:18 PM
there is a sample in gdi/gdi+ category of codeguru, named "jt2draw"
it support insert some ole objects into its document.
maybe help you
Re: OLE documents in GDI+ VBen
1/31/2005 9:11:38 PM
Thank you, but this is not a solution. This program does not draw external
OLE documents, but uses and creates an OLE document itself.
What I need is to draw an OLE document from an OLE source, like Corel or
Word, inside a GDI+ graphical object (a Form or a Printing Document),
perhaps using its hDC, preferrably in Visual Basic, but it can be in ANY
language, and I'd translate it...
I'm not affraid of calling WinAPI or GDI functions in order to accomplish
this, but I can't include a whole other project into mine..... can I...? I'd
prefer a simple (or, at least, isolated) solution...
Thanks, anyway...
VBen.

"baryon" <baryon@gmail.com> escribió en el mensaje
news:1107223278.741631.307590@f14g2000cwb.googlegroups.com...
[quoted text, click to view]

Pleez!! Help!! OLE documents in GDI+ VBen
2/3/2005 11:32:45 AM
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...
[quoted text, click to view]

Re: Pleez!! Help!! OLE documents in GDI+ VBen
2/3/2005 7:47:22 PM
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]

Re: Pleez!! Help!! OLE documents in GDI+ Bob Powell [MVP]
2/3/2005 8:20:45 PM
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.





[quoted text, click to view]

AddThis Social Bookmark Button