|
-
Feb 13th, 2006, 12:45 PM
#1
Thread Starter
Lively Member
Problem setting report source:
I have a windows form with a report viewer and a report. What I would like to do is to connect to an Access database on a remote computer and display the report using VB.NET. I created the report, previewed it on the development computer and it works fine. Then I copied the report file it’s class file to the remote computer where the database is located (now having two copies, one on the solution folder and the remote report file) and changed the path for the data source in the viewer and it worked fine also. However, when I try to open the project from another computer in the network, I get an error:
“File or assembly name crystal decisions.windows.forms, or one of its dependencies not found”
I have tried the following from the form load event (the database has not password):
1.- Dim crystalreportbytype As New CrystalReportbytype
Dim tbCurrent As CrystalDecisions.CrystalReports.Engine.Table
Dim tliCurrent As CrystalDecisions.Shared.TableLogOnInfo
' Create a report document instance to hold the report
Dim myreport As New ReportDocument
' Load the report
myreport.Load("..\CrystalReportbytype.rpt")
2. - Me.CrystalReportViewer1.ReportSource = "..\CrystalReportbytype.rpt"
3. - Me.CrystalReportViewer1.ReportSource = Application.StartupPath & "\" & "CrystalReportbytype.rpt"
4. - Me.crystalreportviewer1.reportsource = \\acm1022\2151\rpt\CrystalReportbytype.rpt
I have also set the source directly from the viewer to the path in the remote computer but still get the same error.
Can anyone point me to the right direction or give me a sample code to get this work? I would really appreciate it.
None for now 
-
Feb 13th, 2006, 12:53 PM
#2
Re: Problem setting report source:
I have a VB6/CR Viewer example in my signature but since it for VB6 it will be a little different. The logic should be the same but if you try to run it from a system that you didnt install your setup package on it will fail because of possible missing .NET framework and missing CR Mergemodules. Its client based and not server based.
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|