Results 1 to 7 of 7

Thread: Include dll-files

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    4

    Question

    Hi!

    I'm new att writing VB so this question is probably very easy, but...

    I'm using Crystel Report and found a module to use when calling Crystel Report. This module call on functions that are in crpe.dll. I know where it is located on my computer and tried to add it to my projekt by Project - Reference and browse. But it won't include it. Why???
    And how can I include it???????

    I'm confused so any help will be apprisiated!

    //Eddi

  2. #2
    Addicted Member LAURENS's Avatar
    Join Date
    Jan 2000
    Location
    Utrecht, the Netherlands
    Posts
    138
    I assume your using a CR version that comes with vb. This doesn't have an object model. There is an ocx you can use. Add this to your toolbox.
    Regards,
    Laurens

    Using VB5 Enterprise edition SP3
    VB6 Enterprise edition SP5

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    4

    cr4.5

    Thanks for the answer!

    I'm using CR4.5. When we bought this we got an module for VB. The reason I don't use ocx is that I'm not going to have any form in this project. Then I can't use ocx,
    can I??

    //Eddi

  4. #4
    Addicted Member LAURENS's Avatar
    Join Date
    Jan 2000
    Location
    Utrecht, the Netherlands
    Posts
    138
    As far as I know need a form to put the ocx on.

    You could use a form and simply not show it, just a create. This will enable you to use any control and it's methods on it.

    Create a form with the CrystalReports control on it, then
    call it from a module.
    Like this:

    Private Sub main()
    Dim frmPrintForm As Form1

    Set frmPrintForm = New Form1

    frmPrintForm.CrystalReport1.AboutBox

    Set frmPrintForm = Nothing


    End Sub

    Again, if you just have the standard version of CR that comes with vb you just have the ocx, no object libraries.

    For this you'll have to buy the full version.
    Regards,
    Laurens

    Using VB5 Enterprise edition SP3
    VB6 Enterprise edition SP5

  5. #5

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    4

    We have bought the entire CR4.5

    Thanks again!
    We have bought CR4.5 seperatly - the entire version.

    In general, can't you load any dll-file you want to? How do you do? (Like I said, tried Project - Reference and browse, but it wouldn't load the dll into the project)

    //Eddi

    Use VB6

  6. #6
    Addicted Member LAURENS's Avatar
    Join Date
    Jan 2000
    Location
    Utrecht, the Netherlands
    Posts
    138

    Wink

    I don't exactly know. I believe a dll has to meet the ActiveX standards for you to reference it from your project. Remember you can't load the windows dll's either. If you want to use functions from those dll's you have to declare them first. I guess that's the way it works with all none ActiveX dll's. But again, I don't know the details.

    I didn't even know you could still buy the full 4.5 version.
    Last year they gave away 6.0 and there on version 8.0 right now.

    I don't know about version 4.5 but the 7.0 version I'm using has it's objects in CRAXDRT.dll. This one you can reference directly from VB.

    Well, that's three times 'I don't know' in one reply, I'm such a help !!!
    Regards,
    Laurens

    Using VB5 Enterprise edition SP3
    VB6 Enterprise edition SP5

  7. #7

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    4

    Smile You've been a great help

    Don't say that. You give me new ideas and most of all hope!!!

    I'll look in deeper at ActivX, that's probably why I can't see the dll-file directly under Project-References. Perhaps I have to do some settings in Crystel Report. (They bought it a long time ago, I also have CR8 but the rpt-files I'm calling are made in RS4.5, so...)


    Thank you again for all help!!!

    //Eddi

Posting Permissions

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



Click Here to Expand Forum to Full Width