Hello,

I am familiar with obtaining source file reference material from the system
clipboard using the old Win32 API.

For example, copy an Excel chart onto the clipboard and goto Word. Under,
Edit & PasteSpecial, there is a label called "Source:" which will contain
the file path, etc.

How can one obtain the source file reference material utilizing .Net
technology?

Thanks & Regards,

TC

Re: how to get the source file reference data from the clipboard in .Net by Cor

Cor
Sun May 23 01:33:33 CDT 2004

Hi TC,

Two links, one of them is a start link which leads you to all kinds of other
posibilities with copy paste cut and the drag functions.

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



Re: how to get the source file reference data from the clipboard in .Net by TC

TC
Sun May 23 11:04:35 CDT 2004

Hey Cor,

Thanks for the effort, but no, this doesn't help.

It's not "drag & drop" that I'm looking for.

I need assistance with the very specific task of retrieving source file
information from the clipboard and whether or not this is possible WITHOUT
the Win32 API under the .Net platform.

Regards,

Todd




"Cor Ligthert" <notfirstname@planet.nl> wrote in message
news:OrFo0$IQEHA.3140@TK2MSFTNGP11.phx.gbl...
> Hi TC,
>
> Two links, one of them is a start link which leads you to all kinds of
other
> posibilities with copy paste cut and the drag functions.
>
>
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
>
>



Re: how to get the source file reference data from the clipboard in .Net by Cor

Cor
Sun May 23 11:28:41 CDT 2004

Hi TC,

> I need assistance with the very specific task of retrieving source file
> information from the clipboard and whether or not this is possible WITHOUT
> the Win32 API under the .Net platform.

That is on the first link I sended, the second is useless for you I see now.

When you start with that get clipboard data you can come on pages like this
one

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWindowsFormsClipboardClassGetDataObjectTopic.asp

Cor



Re: how to get the source file reference data from the clipboard in .Net by TC

TC
Sun May 23 15:22:59 CDT 2004

Hey Cor,

OK. There seems to be some confusion regarding what I am looking for.

I know & understand how to get the data from the clipboard.

For example, if I have a bitmap representing an Excel chart, I can check for
the bitmap dataformat and then insert the object accordingly.

However, inserting the object does not insert its source reference.

COM components communicate this information, though and if one goes to MS
Word after putting an Excel chart on the clipboard and then uses the "Edit >
Paste Special" dialog, one will see the source reference represented.

This source reference is obtainable via the Win32 API.

Is there a way to access this material in .Net without the use of the Win32
API?

Thanks & Regards,

Todd




"Cor Ligthert" <notfirstname@planet.nl> wrote in message
news:%23J8qZMOQEHA.2132@TK2MSFTNGP11.phx.gbl...
> Hi TC,
>
> > I need assistance with the very specific task of retrieving source file
> > information from the clipboard and whether or not this is possible
WITHOUT
> > the Win32 API under the .Net platform.
>
> That is on the first link I sended, the second is useless for you I see
now.
>
> When you start with that get clipboard data you can come on pages like
this
> one
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWindowsFormsClipboardClassGetDataObjectTopic.asp
>
> Cor
>
>



Re: how to get the source file reference data from the clipboard in .Net by Jerry

Jerry
Sun May 23 23:13:56 CDT 2004

I think you do not fully understand how clipboard works. What you see when
you select Paste Special... is the various formats of data stored in the
clipboard. You can get a list of those formats using the
IDataObject.GetFormats method and then pick the one that represents the data
you need and use it when calling IDataObject.GetData. But if it's not there
(such as when you copy data from notepad) then it's not there and there's
nothing you can do about it.

Jerry

"TC" <getmyemails2@yahoo.com> wrote in message
news:ej61CPQQEHA.2716@tk2msftngp13.phx.gbl...
> Hey Cor,
>
> OK. There seems to be some confusion regarding what I am looking for.
>
> I know & understand how to get the data from the clipboard.
>
> For example, if I have a bitmap representing an Excel chart, I can check
for
> the bitmap dataformat and then insert the object accordingly.
>
> However, inserting the object does not insert its source reference.
>
> COM components communicate this information, though and if one goes to MS
> Word after putting an Excel chart on the clipboard and then uses the "Edit
>
> Paste Special" dialog, one will see the source reference represented.
>
> This source reference is obtainable via the Win32 API.
>
> Is there a way to access this material in .Net without the use of the
Win32
> API?
>
> Thanks & Regards,
>
> Todd
>
>
>
>
> "Cor Ligthert" <notfirstname@planet.nl> wrote in message
> news:%23J8qZMOQEHA.2132@TK2MSFTNGP11.phx.gbl...
> > Hi TC,
> >
> > > I need assistance with the very specific task of retrieving source
file
> > > information from the clipboard and whether or not this is possible
> WITHOUT
> > > the Win32 API under the .Net platform.
> >
> > That is on the first link I sended, the second is useless for you I see
> now.
> >
> > When you start with that get clipboard data you can come on pages like
> this
> > one
> >
> >
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWindowsFormsClipboardClassGetDataObjectTopic.asp
> >
> > Cor
> >
> >
>
>



Re: how to get the source file reference data from the clipboard in .Net by TC

TC
Mon May 24 22:40:45 CDT 2004

Hey Jerry,

Thanks for the note.

Actually, you can do something about as I keep mentioning.

There are Win32 APIs that one can use to acquire the source reference
material of COM-related files.

If you look at the "PasteSpecial" dialog, there is a label called "Source"
which will display the full path of a file if it is available.

I know that one can gain access to this material because I have code under
VB6 that does just that.

However, the question I am seeking an answer to is:

Can one gain access to the source reference material under the .Net
Framework without the use of Win32 APIs?

Thanks & Regards,

Todd





"Jerry Pisk" <jerryiii@hotmail.com> wrote in message
news:unEeJWUQEHA.3456@TK2MSFTNGP11.phx.gbl...
> I think you do not fully understand how clipboard works. What you see when
> you select Paste Special... is the various formats of data stored in the
> clipboard. You can get a list of those formats using the
> IDataObject.GetFormats method and then pick the one that represents the
data
> you need and use it when calling IDataObject.GetData. But if it's not
there
> (such as when you copy data from notepad) then it's not there and there's
> nothing you can do about it.
>
> Jerry
>
> "TC" <getmyemails2@yahoo.com> wrote in message
> news:ej61CPQQEHA.2716@tk2msftngp13.phx.gbl...
> > Hey Cor,
> >
> > OK. There seems to be some confusion regarding what I am looking for.
> >
> > I know & understand how to get the data from the clipboard.
> >
> > For example, if I have a bitmap representing an Excel chart, I can check
> for
> > the bitmap dataformat and then insert the object accordingly.
> >
> > However, inserting the object does not insert its source reference.
> >
> > COM components communicate this information, though and if one goes to
MS
> > Word after putting an Excel chart on the clipboard and then uses the
"Edit
> >
> > Paste Special" dialog, one will see the source reference represented.
> >
> > This source reference is obtainable via the Win32 API.
> >
> > Is there a way to access this material in .Net without the use of the
> Win32
> > API?
> >
> > Thanks & Regards,
> >
> > Todd
> >
> >
> >
> >
> > "Cor Ligthert" <notfirstname@planet.nl> wrote in message
> > news:%23J8qZMOQEHA.2132@TK2MSFTNGP11.phx.gbl...
> > > Hi TC,
> > >
> > > > I need assistance with the very specific task of retrieving source
> file
> > > > information from the clipboard and whether or not this is possible
> > WITHOUT
> > > > the Win32 API under the .Net platform.
> > >
> > > That is on the first link I sended, the second is useless for you I
see
> > now.
> > >
> > > When you start with that get clipboard data you can come on pages like
> > this
> > > one
> > >
> > >
> >
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWindowsFormsClipboardClassGetDataObjectTopic.asp
> > >
> > > Cor
> > >
> > >
> >
> >
>
>



Re: how to get the source file reference data from the clipboard in .Net by Jerry

Jerry
Tue May 25 00:54:43 CDT 2004

Yes, if it is there. Didn't you read my post? You need to get the list of
available formats (source will be one of them) and then get the data.

Jerry

"TC" <getmyemails2@yahoo.com> wrote in message
news:u3yoZogQEHA.3420@TK2MSFTNGP11.phx.gbl...
> Hey Jerry,
>
> Thanks for the note.
>
> Actually, you can do something about as I keep mentioning.
>
> There are Win32 APIs that one can use to acquire the source reference
> material of COM-related files.
>
> If you look at the "PasteSpecial" dialog, there is a label called "Source"
> which will display the full path of a file if it is available.
>
> I know that one can gain access to this material because I have code under
> VB6 that does just that.
>
> However, the question I am seeking an answer to is:
>
> Can one gain access to the source reference material under the .Net
> Framework without the use of Win32 APIs?
>
> Thanks & Regards,
>
> Todd
>
>
>
>
>
> "Jerry Pisk" <jerryiii@hotmail.com> wrote in message
> news:unEeJWUQEHA.3456@TK2MSFTNGP11.phx.gbl...
> > I think you do not fully understand how clipboard works. What you see
when
> > you select Paste Special... is the various formats of data stored in the
> > clipboard. You can get a list of those formats using the
> > IDataObject.GetFormats method and then pick the one that represents the
> data
> > you need and use it when calling IDataObject.GetData. But if it's not
> there
> > (such as when you copy data from notepad) then it's not there and
there's
> > nothing you can do about it.
> >
> > Jerry
> >
> > "TC" <getmyemails2@yahoo.com> wrote in message
> > news:ej61CPQQEHA.2716@tk2msftngp13.phx.gbl...
> > > Hey Cor,
> > >
> > > OK. There seems to be some confusion regarding what I am looking for.
> > >
> > > I know & understand how to get the data from the clipboard.
> > >
> > > For example, if I have a bitmap representing an Excel chart, I can
check
> > for
> > > the bitmap dataformat and then insert the object accordingly.
> > >
> > > However, inserting the object does not insert its source reference.
> > >
> > > COM components communicate this information, though and if one goes to
> MS
> > > Word after putting an Excel chart on the clipboard and then uses the
> "Edit
> > >
> > > Paste Special" dialog, one will see the source reference represented.
> > >
> > > This source reference is obtainable via the Win32 API.
> > >
> > > Is there a way to access this material in .Net without the use of the
> > Win32
> > > API?
> > >
> > > Thanks & Regards,
> > >
> > > Todd
> > >
> > >
> > >
> > >
> > > "Cor Ligthert" <notfirstname@planet.nl> wrote in message
> > > news:%23J8qZMOQEHA.2132@TK2MSFTNGP11.phx.gbl...
> > > > Hi TC,
> > > >
> > > > > I need assistance with the very specific task of retrieving source
> > file
> > > > > information from the clipboard and whether or not this is possible
> > > WITHOUT
> > > > > the Win32 API under the .Net platform.
> > > >
> > > > That is on the first link I sended, the second is useless for you I
> see
> > > now.
> > > >
> > > > When you start with that get clipboard data you can come on pages
like
> > > this
> > > > one
> > > >
> > > >
> > >
> >
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWindowsFormsClipboardClassGetDataObjectTopic.asp
> > > >
> > > > Cor
> > > >
> > > >
> > >
> > >
> >
> >
>
>