473,804 Members | 3,461 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to get the source file reference data from the clipboard in .Net

TC
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
Nov 16 '05 #1
7 1804
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/de...ardSupport.asp

http://msdn.microsoft.com/library/de...mpdragdrop.asp

I hope this helps a little bit?

Cor
Nov 16 '05 #2
TC
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" <no**********@p lanet.nl> wrote in message
news:Or******** ******@TK2MSFTN GP11.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/de...ardSupport.asp
http://msdn.microsoft.com/library/de...mpdragdrop.asp
I hope this helps a little bit?

Cor

Nov 16 '05 #3
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/de...bjectTopic.asp

Cor
Nov 16 '05 #4
TC
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" <no**********@p lanet.nl> wrote in message
news:%2******** ********@TK2MSF TNGP11.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/de...bjectTopic.asp
Cor

Nov 16 '05 #5
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.Get Formats method and then pick the one that represents the data
you need and use it when calling IDataObject.Get Data. 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" <ge**********@y ahoo.com> wrote in message
news:ej******** ******@tk2msftn gp13.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" <no**********@p lanet.nl> wrote in message
news:%2******** ********@TK2MSF TNGP11.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/de...bjectTopic.asp

Cor


Nov 16 '05 #6
TC
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 "PasteSpeci al" 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" <je******@hotma il.com> wrote in message
news:un******** ******@TK2MSFTN GP11.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.Get Formats method and then pick the one that represents the data you need and use it when calling IDataObject.Get Data. 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" <ge**********@y ahoo.com> wrote in message
news:ej******** ******@tk2msftn gp13.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" <no**********@p lanet.nl> wrote in message
news:%2******** ********@TK2MSF TNGP11.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/de...bjectTopic.asp
Cor



Nov 16 '05 #7
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" <ge**********@y ahoo.com> wrote in message
news:u3******** ******@TK2MSFTN GP11.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 "PasteSpeci al" 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" <je******@hotma il.com> wrote in message
news:un******** ******@TK2MSFTN GP11.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.Get Formats method and then pick the one that represents the

data
you need and use it when calling IDataObject.Get Data. 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" <ge**********@y ahoo.com> wrote in message
news:ej******** ******@tk2msftn gp13.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" <no**********@p lanet.nl> wrote in message
news:%2******** ********@TK2MSF TNGP11.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/de...bjectTopic.asp
>
> Cor
>
>



Nov 16 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2689
by: TC | last post by:
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
0
2129
by: TC | last post by:
Hello, Here is what I'm trying to do: -- Make sure both MS Excel and MS Word are running -- Create an Excel chart -- Save the Excel file -- Copy the Excel chart onto the clipboard using Ctrl + C -- Go to Word and look under Edit > Paste Special -- Note there is a source reference and an option to paste the chart as a
5
4080
by: TC | last post by:
Hello, Here is what I'm trying to do: -- Make sure both MS Excel and MS Word are running -- Create an Excel chart -- Save the Excel file -- Copy the Excel chart onto the clipboard using Ctrl + C -- Go to Word and look under Edit > Paste Special -- Note there is a source reference and an option to paste the chart as a
8
16260
by: John Smith | last post by:
Hi folks, I know how to place text into the user's clipboard: Clipboard.SetDataObject("My Copied Text"); but how do I place a file in there? So, if I have a file C:\test.txt, how can I place that file into the user's clipboard so that they can later paste it into explorer? Thanks!!!
0
9576
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10567
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10310
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10074
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7613
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5515
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3809
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2983
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.