Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
See more:
I want to be able to drag an excel file/worksheet onto a form. Wondering if there is anything published that I can use as a template. I will then access the sheet and do the work of using the data.
Posted

1 solution

You can find more than enough code samples here: http://msdn.microsoft.com/en-us/library/ms742859.aspx[^].

This CodeProject article can also be useful: WPF Drag-and-Drop Smorgasbord[^].

The key is: it's not important what is the source of dragged data, Excel or not, so don't pay attention for how it's done in the samples. All you need is the compatible data type from the provider. It looks like the problem of data types is explained in the article referenced above.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900