473,834 Members | 1,972 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 1806
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
2690
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
2132
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
4082
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
9800
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9651
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
10802
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...
0
10516
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10557
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
10225
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
4429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3987
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3085
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.