Re: Using VB.Net or C#, utilizing the clipboard object, how to cop
From: Inbar (Inbar_at_discussions.microsoft.com)
Date: 08/26/04
- Next message: style: "Re: Missing interface after converting an IDL file to a TLB file (type library) with Midl.exe"
- Previous message: Phil Wilson: "OLEAutomation Interop with object []"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 26 Aug 2004 14:19:03 -0700
You cannot do it this way, but you can do it in another manner.
What you need to do is create a new OLE object in your Word document and
link it to the chart you selected in Excel. This is done by manpulating the
Shape.LinkFormat object.
Inbar.
"TC" wrote:
> Hey Cor & Other Folks,
>
> OK, let me clarify a bit here.
>
> Using the WIN32 API, there is a clipboard format called "OwnerLink".
> Similarly to the .Net clipboard, one would register this format, check for
> it on the clipboard and then retrieve using several API calls.
>
> There are also clipboard formats called "Link Descriptor" and "Object
> Descriptor" under WIN32.
>
> I guess it fair to say that, under .Net, there are currently no methods or
> properties available to extract a source reference when a user places an
> Office object / graphic on the clipboard.
>
> If there is a workaround, by all means, please share.
>
> Best Regards,
>
> Todd
>
>
>
>
>
> "Cor Ligthert" <notfirstname@planet.nl> wrote in message
> news:eByIfJ%23cEHA.3728@TK2MSFTNGP09.phx.gbl...
> > Hi TC,
> >
> > Keep in mind that it is not important for dotNet how it is set on the
> > clipboard the only thing that is important what object is on the
> clipboard.
> >
> > Here some links that should answer all your questions.
> >
> >
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconDragDropClipboardSupport.asp
> >
> >
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchimpdragdrop.asp
> >
> > I hope this helps a little bit?
> >
> > Cor
> >
> >
>
>
>
- Next message: style: "Re: Missing interface after converting an IDL file to a TLB file (type library) with Midl.exe"
- Previous message: Phil Wilson: "OLEAutomation Interop with object []"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|