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!
Printable View
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!
Welcome to the Forums.
Here is a link to a short example of displaying a CR 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
Look through the demo. Did you add the Imports statement at the top of your class?
VB Code:
Imports CrystalDecisions.Shared
Sir, I did it but there is a "declaration expected" error
Have you added the CR control to your form yet?