Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Drag/drop from TreeView (not in ActionsPane) to Excel Worksheet ?

Hi,

Is it possible to drag from a TreeView to an excel worksheet where the
TreeView was spawned from a click event on a command bar button ? The command
bar is created by a VSTO app-level add-in. We are using C#.

More specifically, the nodes in the TreeView represent Reports that would
appear in the Excel worksheet after they are dragged into it. (We do not want
to use an actions pane because we need the TreeView to be application level
and we have to make it work in Excel 2003 -- which does not support app-level
actions panes or app-level Custom Task Panes). So there are really 2
questions he

1) How do we accomplish the drag drop operation in this scenario ?
Especially the drop part.

2) How do we recognize the drop target in such a way that we can read a
bunch of metadata (containing cell contents) from perhaps an XML file or some
other file to create the report in the Excel spreadsheet ?

Is this a dream or can it actually be done ?

We greatly appreciate any guidance you could provide.

Thanks,

Tom
Standard & Poor's
--
Tom in Denver
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Drag/drop from TreeView (not in ActionsPane) to Excel Worksheet ?

Kinda surprised nobody responded, but I found this article quite helpful:

http://msdn2.microsoft.com/en-us/lib...ontoSupplyData

The one thing missing is I don't know what Excel event to use if there is no
workbook open. The SheetChange event covers the case when there is a workbook
open.
--
Tom in Denver


"TomInDenver" wrote:

Hi,

Is it possible to drag from a TreeView to an excel worksheet where the
TreeView was spawned from a click event on a command bar button ? The command
bar is created by a VSTO app-level add-in. We are using C#.

More specifically, the nodes in the TreeView represent Reports that would
appear in the Excel worksheet after they are dragged into it. (We do not want
to use an actions pane because we need the TreeView to be application level
and we have to make it work in Excel 2003 -- which does not support app-level
actions panes or app-level Custom Task Panes). So there are really 2
questions he

1) How do we accomplish the drag drop operation in this scenario ?
Especially the drop part.

2) How do we recognize the drop target in such a way that we can read a
bunch of metadata (containing cell contents) from perhaps an XML file or some
other file to create the report in the Excel spreadsheet ?

Is this a dream or can it actually be done ?

We greatly appreciate any guidance you could provide.

Thanks,

Tom
Standard & Poor's
--
Tom in Denver

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
TreeView Control V - 6.0 - Drag-Drop Nodes mecg96 Excel Programming 6 March 8th 08 08:34 PM
TreeView Drag & Drop Nostromo Excel Programming 0 July 30th 07 09:35 AM
Excel 2003 Multi-worksheet copy via drag/drop idrabefi Excel Worksheet Functions 0 April 12th 05 06:18 PM
treeview drag drop Richard Daniels Excel Programming 0 November 7th 03 10:58 AM
XL 2000: automating drag-and-drop for worksheet ranges. Using Code! Dan P Excel Programming 3 September 3rd 03 03:36 AM


All times are GMT +1. The time now is 08:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"