Answered by:
vb.net and crystal report

Question
-
Hi all,
i have never before worked with crystal reports...
Can anyone just tell me the first few steps...
I have form1 and textbox1, textbox2 ...etc...
I also have form2 and crystal report viewer on it...
Now i want to have the values of textboxes in crystal report....
Thanks.
Regards, Vache.
- Changed type Vache Sunday, August 9, 2009 2:05 PM
Sunday, August 9, 2009 2:03 PM
Answers
-
try to have a look here:
http://www.jack-frost.co.uk/vb_net_crystal_reports.html
http://vb.net-informations.com/crystal-report/vb.net_crystal_report_summary_fields.htm
all the best for you...
DeepF1- Marked as answer by Vache Monday, August 10, 2009 7:07 PM
Sunday, August 9, 2009 6:56 PM -
Thank you Malange for your friendly help.
Hi Vache,
Welcome to MSDN forums!1. In your scenario, I think Crystal Reports is not required, but a DataGridView control is just OK.
Code sample:
Prerequisites: Drag&drop DataGridView1 onto Form2.
Public Class Form2
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' Add two columns to DataGridView
DataGridView1.AllowUserToAddRows = True
DataGridView1.Columns.Add(0, "ID")
DataGridView1.Columns.Add(1, "NAME")
' Add four rows/records to DataGridView
DataGridView1.Rows.Add("100", "Vache")
DataGridView1.Rows.Add("200", "Malange")
DataGridView1.Rows.Add("300", "Martin Xie")
DataGridView1.Rows.Add(Form1.TextBox1.Text, Form1.TextBox2.Text)
End Sub
End Class
Then when you open Form2 from Form1, the value of Form1’s TextBoxes will be displayed on Form2’s DataGridView.
2. Generally speaking, Crystal Reports is related to retrieving data from datanase.
Here are some code samples and tutorials about Crystal Reports for you to check:
Introductions to Crystal Reports in .NET
http://www.c-sharpcorner.com/UploadFile/mahesh/CrystalReportsIntroduction11082005014959AM/CrystalReportsIntroduction.aspx
How to Load and Display Crystal Reports in VB.NET
http://www.codeproject.com/KB/recipes/CrystalReports_in_VBNET.aspx
How to Print a Crystal Report Programmatically in ASP.NET?
http://www.c-sharpcorner.com/UploadFile/mahesh/CRPrinting10062006161454PM/CRPrinting.aspx
How to use Crystal Reports with Access databaseCreating Reports in VB.NET using Crystal Reports with Xml data Definitions
Different methods of loading Crystal Report in Crystal Report Viewer
How to run Crystal Report using Crystal Report Viewer in VS.NET 2005?
Accessing Crystal Report in ASP.NET using VB.Net
3. By the way, Crystal Reports for Visual Studio Forum is here:http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/threads
Best regards,
Martin Xie
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback on our support, please contact msdnmg@microsoft.com- Proposed as answer by Cor Ligthert Monday, August 10, 2009 4:47 AM
- Marked as answer by Vache Monday, August 10, 2009 7:07 PM
Monday, August 10, 2009 3:38 AM
All replies
-
try to have a look here:
http://www.jack-frost.co.uk/vb_net_crystal_reports.html
http://vb.net-informations.com/crystal-report/vb.net_crystal_report_summary_fields.htm
all the best for you...
DeepF1- Marked as answer by Vache Monday, August 10, 2009 7:07 PM
Sunday, August 9, 2009 6:56 PM -
Thank you Malange for your friendly help.
Hi Vache,
Welcome to MSDN forums!1. In your scenario, I think Crystal Reports is not required, but a DataGridView control is just OK.
Code sample:
Prerequisites: Drag&drop DataGridView1 onto Form2.
Public Class Form2
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' Add two columns to DataGridView
DataGridView1.AllowUserToAddRows = True
DataGridView1.Columns.Add(0, "ID")
DataGridView1.Columns.Add(1, "NAME")
' Add four rows/records to DataGridView
DataGridView1.Rows.Add("100", "Vache")
DataGridView1.Rows.Add("200", "Malange")
DataGridView1.Rows.Add("300", "Martin Xie")
DataGridView1.Rows.Add(Form1.TextBox1.Text, Form1.TextBox2.Text)
End Sub
End Class
Then when you open Form2 from Form1, the value of Form1’s TextBoxes will be displayed on Form2’s DataGridView.
2. Generally speaking, Crystal Reports is related to retrieving data from datanase.
Here are some code samples and tutorials about Crystal Reports for you to check:
Introductions to Crystal Reports in .NET
http://www.c-sharpcorner.com/UploadFile/mahesh/CrystalReportsIntroduction11082005014959AM/CrystalReportsIntroduction.aspx
How to Load and Display Crystal Reports in VB.NET
http://www.codeproject.com/KB/recipes/CrystalReports_in_VBNET.aspx
How to Print a Crystal Report Programmatically in ASP.NET?
http://www.c-sharpcorner.com/UploadFile/mahesh/CRPrinting10062006161454PM/CRPrinting.aspx
How to use Crystal Reports with Access databaseCreating Reports in VB.NET using Crystal Reports with Xml data Definitions
Different methods of loading Crystal Report in Crystal Report Viewer
How to run Crystal Report using Crystal Report Viewer in VS.NET 2005?
Accessing Crystal Report in ASP.NET using VB.Net
3. By the way, Crystal Reports for Visual Studio Forum is here:http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/threads
Best regards,
Martin Xie
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback on our support, please contact msdnmg@microsoft.com- Proposed as answer by Cor Ligthert Monday, August 10, 2009 4:47 AM
- Marked as answer by Vache Monday, August 10, 2009 7:07 PM
Monday, August 10, 2009 3:38 AM