Re: Using VB.Net or C#, utilizing the clipboard object, how to cop

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Inbar (Inbar_at_discussions.microsoft.com)
Date: 08/26/04


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
> >
> >
>
>
>



Relevant Pages

  • Re: Using VB.Net or C#, utilizing the clipboard object, how to cop
    ... 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 ... > Similarly to the .Net clipboard, one would register this format, check for ... > it on the clipboard and then retrieve using several API calls. ...
    (microsoft.public.dotnet.faqs)
  • Re: Using VB.Net or C#, utilizing the clipboard object, how to cop
    ... 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 ... > Similarly to the .Net clipboard, one would register this format, check for ... > it on the clipboard and then retrieve using several API calls. ...
    (microsoft.public.dotnet.framework)
  • Re: Using VB.Net or C#, utilizing the clipboard object, how to cop
    ... 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 ... > Similarly to the .Net clipboard, one would register this format, check for ... > it on the clipboard and then retrieve using several API calls. ...
    (microsoft.public.dotnet.general)
  • Re: Using VB.Net or C#, utilizing the clipboard object, how to cop
    ... > Similarly to the .Net clipboard, one would register this format, check for ... > it on the clipboard and then retrieve using several API calls. ... > Office object / graphic on the clipboard. ...
    (microsoft.public.dotnet.framework)
  • Re: Using VB.Net or C#, utilizing the clipboard object, how to cop
    ... > Similarly to the .Net clipboard, one would register this format, check for ... > it on the clipboard and then retrieve using several API calls. ... > Office object / graphic on the clipboard. ...
    (microsoft.public.dotnet.framework.interop)