Results 1 to 16 of 16

Thread: [RESOLVED] How to deploy crystal report 9 on client machines

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    182

    Resolved [RESOLVED] How to deploy crystal report 9 on client machines

    I have developed an application in vb6 which also generates reports using crystal report 9. It all works well on the developer machine but when i want to deploy it on client machine it gives an error. I know that there are some dll reuquired, could any one please tell me what are the exact dll required. Also i want it to make it run on win 98.

    Thanks

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

    Re: How to deploy crystal report 9 on client machines

    Welcome to the Forums.

    You should have the special help file in -
    ?:\Program Files\Seagate Software\Crystal Reports\Developer Files\Help\Runtime.hlp

    In this help file it will list out all the CR dlls and ocxs required depending on the references, functions, and controls used in your program.
    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
    Join Date
    Oct 2005
    Posts
    182

    Re: How to deploy crystal report 9 on client machines

    Thanx for the quick reply. I have seen that file before posting this message and i have tried to register those files but the problem is that one of the dll which i try to register doesn't give me a message that it is registered successfuly or not. I dont remember the name of that file. I was wondering if some one already have a package which i can use to deploy the files.

    thanks

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

    Re: How to deploy crystal report 9 on client machines

    If you gather all teh dlls and ocxs it will be about 20Mbs. I highly doubt that you want to deploy all files. This si what the runtime file is to help you with. There is no way for anyone to tell you all the dependancies you need without your entire app's source code.
    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
    Join Date
    Oct 2005
    Posts
    182

    Re: How to deploy crystal report 9 on client machines

    oh ok i get the point, i would have a more closer look as to what i need before deployment. How ever i just made a small check with this statement Set crystal = New CRAXDRT.Application. I commented all my code after this line and for this i registered the required dll but it failed.

    I am not creating the crystal reports in the vb designer. I just call it and display it in a form using crviewer.

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

    Re: How to deploy crystal report 9 on client machines

    Yes, I have done that one before. It doesnt need that many dependancies. Do you have error trapping in your app so you can get the most descriptive error message? Also, if you are supporting the export button on the viewer control then there are a few more dlls to include as there are one or two for each export type.
    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

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    182

    Re: How to deploy crystal report 9 on client machines

    The code below is what i am using and i am not using the export button.

    VB Code:
    1. Dim conn As New ADODB.Connection
    2.     Dim rs As New ADODB.Recordset
    3.     Dim crystal As CRAXDRT.Application      'LOADS REPORT FROM FILE
    4.     Dim Report As CRAXDRT.Report            'HOLDS REPORT
    5.    
    6.     Set crystal = New CRAXDRT.Application
    7.    
    8.     CRViewer.DisplayBorder = False          'MAKES REPORT FILL ENTIRE FORM
    9.     CRViewer.DisplayTabs = False            'THIS REPORT DOES NOT DRILL DOWN, NOT NEEDED
    10.     CRViewer.EnableDrilldown = False        'REPORT DOES NOT SUPPORT DRILL-DOWN
    11.     CRViewer.EnableRefreshButton = False    'ADO RECORDSET WILL NOT CHANGE, NOT NEEDED
    12.      
    13.     conn.Open ConnectionString
    14.    
    15.     rs.Open "SELECT * FROM ViewLoanSetCheckSheet where LoanSetID=305", conn, adOpenStatic, adLockReadOnly
    16.      
    17.              'MANAGES REPORTS
    18.      
    19.     Set Report = crystal.OpenReport(App.Path & "\CrystalReports\Report1.rpt")  'OPEN OUR REPORT
    20.      
    21.     Report.DiscardSavedData                      'CLEARS REPORT SO WE WORK FROM RECORDSET
    22.     Report.Database.SetDataSource rs             'LINK REPORT TO RECORDSET
    23.      
    24.     CRViewer.ReportSource = Report              'LINK VIEWER TO REPORT
    25.     CRViewer.ViewReport                         'SHOW REPORT
    26.      
    27.     Do While CRViewer.IsBusy              'ZOOM METHOD DOES NOT WORK WHILE
    28.        DoEvents                          'REPORT IS LOADING, SO WE MUST PAUSE
    29.     Loop                                  'WHILE REPORT LOADS.
    30.      
    31.     CRViewer.Zoom 94
    32.      
    33.     rs.Close                            'ALL BELOW HERE IS CLEANUP
    34.     Set rs = Nothing
    35.      
    36.     conn.Close
    37.     Set conn = Nothing
    38.      
    39.     Set crystal = Nothing
    40.     Set Report = Nothing

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

    Re: How to deploy crystal report 9 on client machines

    For the viewer control you need several files. Find the index page titled: Method Used to Access the Crystal Report Engine

    Under this page is a listing of Method, Project Reference Names, and Description columns. This is your starting point. Click the links on the method column that are used in your references or controls. There are several conditions if you need to add each, described on each of the links destination page.

    I can not post the contents as they are copyrighted.
    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

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    182

    Re: How to deploy crystal report 9 on client machines

    you have been a great help...Dependency Files for Craxdrt9.dll...i think i should register the associated files with it..a week ago i did follow this and when i tried to register one of these dll file...i got no message that it was either registered or not...i dont exactly remember the dll file probably it was crqe.dll or usp10.dll..

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

    Re: How to deploy crystal report 9 on client machines

    I only have v. 8.5 developer and I cant find crqe.dll. I did find the crpe32.dll and crpe.dll Crystal Rpeorts Print Engine used for printing from code in vb.
    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

  11. #11

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    182

    Re: How to deploy crystal report 9 on client machines

    did you ever had any problem in registering one of the files...

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

    Re: How to deploy crystal report 9 on client machines

    Yes, but I just ignored the error and it seem to be fine. Been running at the clients site for 9 months.
    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

  13. #13

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    182

    Re: How to deploy crystal report 9 on client machines

    alrite i'll give it a go...if i find some error, i know where to look...thanks mate

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

    Re: [RESOLVED] How to deploy crystal report 9 on client machines

    No problem. glad to help
    I didnt add those problematic dependancy files and did a simple copy/paste into the appropriate folder. The ones that registered correctly I added to the setup package.
    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

  15. #15
    New Member
    Join Date
    Oct 2005
    Posts
    15

    Re: [RESOLVED] How to deploy crystal report 9 on client machines

    You must have created a reference to crystal report in your project right? So create Application Package and it will include the required dlls by it self and then install it on client machines.

    Should work.

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

    Re: [RESOLVED] How to deploy crystal report 9 on client machines

    Its not that simple with CR. With a single reference you need to include several dlls. If you use the CR Viewer control you neeed allot more. If you use just the print engine you need others. This is why CR created the runtime help file.
    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

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