|
-
Feb 20th, 2005, 10:56 PM
#1
Thread Starter
New Member
How to show a crystal report in vb .net?
Guys,
Good day!
Hope you can help me with this... Im using vb .net and created a report using crystal report...How can i show the report when i run the prog by simply clicking to a button? Whats the code for this?
Thanks and more power!
-
Feb 20th, 2005, 11:20 PM
#2
Re: How to show a crystal report in vb .net?
Welcome to the Forums.
Here is a link to a short example of displaying a CR in VB.NET
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 
-
Feb 21st, 2005, 12:58 AM
#3
Thread Starter
New Member
Re: How to show a crystal report in vb .net?
Thanks for your prompt reply sir but im juz a newbie in using vb .net...
Appreciate if you can help me where to place the code uv given me... here's my code:
thanks again!
*the main form is pqesmainform
*the crystal report is pqes
Public Class pqesmainform
Inherits System.Windows.Forms.Form
Dim setupform As Form
Dim pqesmainform As Form
Dim pqes As pqes
#Region " Windows Form Designer generated code "
Private Sub reportbutton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles reportbutton.Click
pqes = New
pqes.Load()
End Sub
-
Feb 21st, 2005, 01:18 AM
#4
Re: How to show a crystal report in vb .net?
Look through the demo. Did you add the Imports statement at the top of your class?
VB Code:
Imports CrystalDecisions.Shared
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 
-
Feb 21st, 2005, 04:30 AM
#5
Thread Starter
New Member
Re: How to show a crystal report in vb .net?
Sir, I did it but there is a "declaration expected" error
-
Feb 21st, 2005, 12:25 PM
#6
Re: How to show a crystal report in vb .net?
Have you added the CR control to your form yet?
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
|