ActiveReports 7 Now Available! (click for details)

ActiveReports 6 Support

Started by jyoder at 04-07-2009 1:25 PM. Topic has 2 replies.

Print Search Rate
Sort Posts:    
   04-07-2009, 1:25 PM
jyoder is not online. Last active: 12/20/2012 9:55:41 PM jyoder

Top 50 Posts
Joined on 10-24-2003
Posts 612
Drag and Drop no longer works

This is the code we've been using, but it no longer works. (The cursor doesn't even change to show a plus sign when hovering over the designer as it does in AR3.)...



    Private Sub TreeMouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles trFields.MouseDown
        If CType(sender, SasControls.SuTreeView).ActiveNode Is Nothing Then Exit Sub
        Const ARDesigner_DataObjectFormat As String = "{5CED4213-77BB-42ec-8358-0482CEDDA50B}"
        Dim dataFieldList As New ArrayList

        ' the key is [query].[field]
        Dim aNode As Infragistics.Win.UltraWinTree.UltraTreeNode = CType(sender, SasControls.SuTreeView).ActiveNode
        If aNode.HasNodes Then Exit Sub

        ' Replace characters "(", ")", and ":" with "_" or AR will give error with naming.
        dataFieldList.Add(aNode.Parent.Text & "." & aNode.Text.Replace("("c, "_"c).Replace(")"c, "_"c).Replace(":"c, "_"c))

        Dim doData As DataObject = New DataObject(ARDesigner_DataObjectFormat, dataFieldList)
        CType(sender, SasControls.SuTreeView).DoDragDrop(doData, DragDropEffects.Copy)
    End Sub



Do I simply need a different value for "Const ARDesigner_DataObjectFormat" that relates to AR6?


   Report 
   04-07-2009, 8:44 PM
raji is not online. Last active: 8/29/2012 11:05:49 PM raji

Top 25 Posts
Joined on 08-28-2004
Dublin, OH
Posts 788

DDStaff
Re: Drag and Drop no longer works
jyoder

Try this GUID : FCED4213-77BB-42ec-8358-0482CEDDA500

   Report 
   04-08-2009, 7:25 AM
jyoder is not online. Last active: 12/20/2012 9:55:41 PM jyoder

Top 50 Posts
Joined on 10-24-2003
Posts 612
Re: Drag and Drop no longer works

That worked. Thanks!


   Report 
GrapeCity » Product Support » ActiveReports 6... » Re: Drag and Drop no longer works

Privacy Policy | Copyright © 1997-2013 — GrapeCity, inc.
All trademarks mentioned are the property of their respective owners.