Crystal Reports in VB.NET

Posted by .Netlearner under VB.NET on 5/21/2013 | Points: 10 | Views : 1552 | Status : [Member] | Replies : 1
Hello All,

Am working on hotel management, am new to am using visual studio 2010.

i want to create a report the displays the roomtype and its number of rooms for that particular room type.

First if the user didnt select the roomtype i want to display all room type and number of rooms in that room types and when the user chooses particular roomtype i want to display only the selected roomtype and its no of rooms in the crystal report.

i created the crystal report and added datafields and just had the code as follows
CrystalReportViewer1.Visible = True
CrystalReportViewer1.ReportSource = rep

its working fine but i dont know how to set conditions.Please help.Its urgent


Posted by: .Netlearner on: 5/22/2013 [Member] Starter | Points: 25

I got solved. I used select formula as in


rep.RecordSelectionFormula =" formula"
ReportRoomType.CrystalReportViewer1.Visible = True
ReportRoomType.CrystalReportViewer1.ReportSource = rep

.Netlearner, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response