473,395 Members | 1,452 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Drag and Drop problems

I've got a owner-drawn listview control that displays images and now I'm
trying to implement drag and drop so I can drag images from the control and
drop them onto other applications. So far if I drop on windows explorer it
works (i.e. an image file is created where I dropped the image) or the
console displays the full path to the image. Unfortunately it doesn't work
with Excel. Nothing at all happens. No error, nothing.

The code I am using is partially adapted from the FotoVision application,
but done in C#. The FotoVision code works as desired, but isn't directly
usable, hence the reason for reimplementing it.

Are there special requirements to drop images onto Excel? Is there something
obvious I might be missing?

Thanks

Colin
Jul 21 '05 #1
6 2627
Hi Colin,

Regarding on the issue, I am
finding proper resource to assist you and we will update as soon as posible.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security(This posting is provided "AS IS",
with no warranties, and confers no rights.)

Jul 21 '05 #2
Hi Colin,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to drag and drop an object
from your application to Excel and Windows Explorer. If there is any
misunderstanding, please feel free to let me know.

Based on my research, we cannot drag and drop an image file from windows
explorer to Excel directly. Dragging it to Excel means to open the image
file using Excel. However Excel cannot open image file. so the operation
failed.

I would like to know how you passed that image object to windows explorer.
We can try to pass the image to Excel as an object, not URL. Could you show
us your code? If FotoVision code works, how did it achieve that? Please
provide us with more information, so that we can resovled the problem mroe
quickly. Thanks!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #3
Now it isn't working from FotoVision. Odd because I specifically tested it
with Excel (or I was hallucinating from a lack of sleep or food, or from the
ridiculous humidity around here, any of which are possible).

It looks like it isn't going to be possible for me to provide a nice drag
and drop interface for my users to insert images into a spreadsheet. I'll
have to look into using VSTO to come up with some sort of solution.

Thanks

Colin

"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:yk**************@cpmsftngxa06.phx.gbl...
Hi Colin,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to drag and drop an object
from your application to Excel and Windows Explorer. If there is any
misunderstanding, please feel free to let me know.

Based on my research, we cannot drag and drop an image file from windows
explorer to Excel directly. Dragging it to Excel means to open the image
file using Excel. However Excel cannot open image file. so the operation
failed.

I would like to know how you passed that image object to windows explorer.
We can try to pass the image to Excel as an object, not URL. Could you show us your code? If FotoVision code works, how did it achieve that? Please
provide us with more information, so that we can resovled the problem mroe
quickly. Thanks!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #4
Hi Colin,

It seems that we need Excel to accept the type of drop, so that we can
decide what type of data we should pass. However, I don't think we can
change the behavior of Excel.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #5
It would be nice if we could change the behaviour of Excel. I'd still like
to know exactly what I was doing when I became convinced you could drop
image on Excel (it can't be done from anywhere, even Explorer). My memory of
doing it is so vivid...

Colin

"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:rW**************@cpmsftngxa06.phx.gbl...
Hi Colin,

It seems that we need Excel to accept the type of drop, so that we can
decide what type of data we should pass. However, I don't think we can
change the behavior of Excel.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #6
I made a porting of FotoVision from VisualBasic.Net to C#. I ported
only the web application. I used the C# ASP.NET application to realize
a web site with my digital photos that are designed to be used as
full-screen computer desktop backgrounds. The images are available for
free download in 1600x1200 resolution.
I made available the FotoVision C# source code in this website at :
http://www.mybackgrounds.tk

If you know a web ring of other sites that feature similar content
please let me known.

Moreno Borsalino

Visit my desktop photos collection at http://www.mybackgrounds.tk
(made with FotoVision)
Jul 21 '05 #7

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

Similar topics

1
by: James Allen Bressem | last post by:
- hehe - When you're explaining every angle of a socio economic scenario in the context of a review of current technical issues it can take a little time to get it right - slibS, slibW, slibD (so...
9
by: Wang, Jay | last post by:
Hello, all, I would like to enable some text between <SPAN url="http://www.testserver.com/">WORD TO BE DRAGGED </SPAN>. I put some javascript and it will extract http://www.testserver.com/ from...
2
by: matthewmacchia | last post by:
I believe this is a Firefox bug but I was hoping someone found a workaround. I have implemented drag and drop functionality, but if I try to drag an element from a div that happens to have a div...
8
by: WindAndWaves | last post by:
Hi everyone, Has anyone got any experience with drop and drag in Access? I would like to make a calendar style form where my users can drop and drag appointments.... I am using Access 2003...
0
by: James Allen Bressem | last post by:
Do drag n drop in VB.Net in ten lines of code - (too easy) I was searching through the MSDN documentation trying to figure out how to do drag n drop and I found a sample program. The sample...
2
by: TarheelsFan | last post by:
I am having problems with drag and drop into a listview. I am able to drag and drop items from within the listview, as well as drag items from the listview and drop into a picturebox. However, I...
0
by: joey.powell | last post by:
I have a Windows Forms application where I need to be able to drag and then drop onto a datagridview control. I already have the code necessary to make the drag part work. I am having problems,...
0
by: RHSFSS | last post by:
Hi, I have a Drag and Drop registration problem (See http://www.thescripts.com/forum/thread434707.html for similar problem post), can anyone out thereadvise on the best solution? I have a .NET 2.0 ...
2
by: Harshad | last post by:
Hi, I'm writing a program using Python 2.4 and PyQt4. The aim is to implement drag and drop from filesystem and display a list of files dragged on to the listWidget. This function will later...
2
by: weird0 | last post by:
i am developing an application in which i can drag and drop icons using c#. I tried out a few tutorials on code-project.com, but they don't seem to work and are too hard to understand, like the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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...
0
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...
0
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...

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.