CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2013

    Angry Can i make 2 instances of the same datareport?

    Hi Guys!

    i'm working with datarepots on VB6, and the system offers many ways to show the listview. So, for each listview model, i need to align and resize all the objects again.

    I was thinking about create some instances of the same datareport, and resize all objects without modify all the rest of the instances.

    It's possible?

    i'm trying like the code:
    dim obj(2) as DataReport1
    set obj(0) = New DataReport1
    set obj(1) = New DataReport1

    But, when i try to run the code... i receive a exception, and my VS close.

    The exception is about win32 5504.

    More 1 question... is possible to reset all the objects positions in the runtime?

  2. #2
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008

    Re: Can i make 2 instances of the same datareport?

    Do you really need to have multiple reports displayed at once?

    I don;t use the Vb Datareport but in theory it should work.

    What is the error message and on what line do you receive the error?
    Always use [code][/code] tags when posting code.

  3. #3
    Join Date
    May 2013

    Re: Can i make 2 instances of the same datareport?

    Problem Solved :P

    i already found another way to solve this question.

  4. #4
    Join Date
    Jan 2006
    Fox Lake, IL

    Re: Can i make 2 instances of the same datareport?

    Post it for the next person that needs help!

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.