Results 1 to 5 of 5

Thread: Crystal Report Data Source Using DLL

  1. #1

    Thread Starter
    Addicted Member LeonX's Avatar
    Join Date
    Dec 2004
    Location
    Jakarta, Indonesia
    Posts
    172

    Question Crystal Report Data Source Using DLL

    Is this possible?
    I want to add database to crystal report (I'm using crystal report 8.5) from a dll file.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Crystal Report Data Source Using DLL

    Could you explain what you are trying to do a little more in depth?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    Addicted Member LeonX's Avatar
    Join Date
    Dec 2004
    Location
    Jakarta, Indonesia
    Posts
    172

    Re: Crystal Report Data Source Using DLL

    Usually to add a data source I choose Database -> Add Database to Report, right? Then I will choose the connection to db that I want, I'm usually using ADO and OLEDB. The DB itself maybe an access file or from SQL Server (here I'm using SQL Server). After finish adding a database, if I choose Database -> Set Location, at the Database group there is a list of table name that I've choose before and at the Location group show where the table came from e.g. Table: MYDB.dbo.MYTABLE, right?

    Ok then, my question is, how to make the Location of the table in list came from a dll files e.g. Files: C:\MyFolder\MyDLL.dll.

    Thanks. Hope u can understand my explaination.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Crystal Report Data Source Using DLL

    Ok, a little better. If you mean to change the datasource at runtime to the
    dll location, then that one thing, but if you mean for design time then I dont
    think you can do it for a dll. Which is what you need?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5

    Thread Starter
    Addicted Member LeonX's Avatar
    Join Date
    Dec 2004
    Location
    Jakarta, Indonesia
    Posts
    172

    Re: Crystal Report Data Source Using DLL

    Quote Originally Posted by RobDog888
    Ok, a little better. If you mean to change the datasource at runtime to the
    dll location, then that one thing, but if you mean for design time then I dont
    think you can do it for a dll. Which is what you need?
    Ok, that thing is fine. Can you give me an example?
    And by the way, please take a look at the attachment, and see menu
    Database -> Set Location. How can?

    Thanks RobDog888.
    Attached Files Attached Files

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