Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

Help Creating Crystal Report

Redzen1220

Recruit
Basic Member
Messages
19
Reaction score
0
Points
16
hello guys.. beginner po aq sa paggawa ng Crystal Report... tumingin na po aq sa youtube kaso ayaw naman gumana sakin..VB.net 2010 at SQL po gamit q database.. gusto q po sana gumawa ng Report using dataset.. any help po salamat.. :)
 
hello guys.. beginner po aq sa paggawa ng Crystal Report... tumingin na po aq sa youtube kaso ayaw naman gumana sakin..VB.net 2010 at SQL po gamit q database.. gusto q po sana gumawa ng Report using dataset.. any help po salamat.. :)

Have you already installed Crystal Reports in your system?
 
panong ayaw gumana dude sa vb.net 2010 ?. pero nag try kanaba i mean mag run ng crystal report ?.
 
Have you already installed Crystal Reports in your system?

yes sir i already installed Crystal Reports in my system... ang problem lang po eh.. hindi q alam qng saan kukunin ung database q.. nka lagay napo kc ung DB q sa loob ng project q.. project\bin\debug sql 2008 po gamit q...
sir may tutorial po ba kau dyan?.. Crystal Report using Dataset..
 
anu ba SP ung crystal report na ininstall mo?
try mo install ung latest Crystal report (SP14) HERE
 
- - - Updated - - -

panong ayaw gumana dude sa vb.net 2010 ?. pero nag try kanaba i mean mag run ng crystal report ?.

opo sir nag try po aq.. nanuod po aq ng tutorial sa youtube kaso nahirapan aq.. gusto q po sana gumamit ng Dataset sa crystal report.. :(
penge po tutorial.
 
Last edited:
Meron ka na po bang dataset?naipasa mo na ba ang data mo sa dataset?
Pag wala pa, create ka ng dataset mo..tapos fill mo every column. Ung dataset mo na yan , yan ung pinaka datasource mo sa crystal report.
 
sir alam nyo po ba gamitin yung crystal report sa vs2010? v10 kasi pinapagamit sakin e salamat
 
hello guys.. beginner po aq sa paggawa ng Crystal Report... tumingin na po aq sa youtube kaso ayaw naman gumana sakin..VB.net 2010 at SQL po gamit q database.. gusto q po sana gumawa ng Report using dataset.. any help po salamat.. :)

Instructions:

-Open your project
-Right click on your Solution's Name and click Add -> New Item then select dataset give it a name of your choice then click Add
-On the Server Explorer right click Data Connections and then click Add Connection.
-Enter your server name and other credentials and select the Database.
-After that drag a table(yung table na panggagalingan ng report mo) to the DataSet Tab that you created.
-Now right click on the project in Solution Explorer and select Add New Item. Select Crystal Report from the list and name it as you want
-The Crystal Report Gallery will open. Select Blank Report and click OK.
-Now in the field explorer window right click on Database Fields and click Database Expert.
-Click the plus sign of Project Data, then ADO.NET DataSets. Select the table that you have added in your DataSet . Click the add (>) button to add the table to our report and click OK.
-You will get all the fields of the table that you have selected from Database Fields in Field Explorer. Drag and drop the required fields of you report(i-design mo na yung report mo) then save it.
-Finally drag CrystalReportViewer control from the Reporting section of the Toolbox into a Form dedicated for viewing reports. Or add new Windows Form then drag it there.
-Now go to the code behind page and write the following code in the Form's Load event:
private void Form1_Activated(object sender, EventArgs e)
{
Application.DoEvents();

try
{
SqlConnection connection = new SqlConnection("Server=your_server;uid=sa;pwd=your_password;Database=your_database_name");
SqlCommand command = new SqlCommand("Select * From your_table", connection);
SqlDataAdapter adapter = new SqlDataAdapter(command);
DataSet dataset = new DataSet();
adapter.Fill(dataset, "any_name");
ReportDocument your_prefered_name = new ReportDocument();
your_prefered_name.Load(@"your_report's_fullpath_here_Or_use_.NetObject_than_will_map_your_report");
your_prefered_name.SetDataSource(dataset.Tables["any_name"]);

crystalReportViewer1.ReportSource = your_prefered_name ;
crystalReportViewer1.RefreshReport();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message + ex.StackTrace, "Error!");
}

}

-Run the Program and view the report.
-Get debugging whenever things wont work.
-If there are other questions or error just post it back here sir.
-Happy CODING! ;)

*Advise ko lang sir, pagaralan mo ang gumamit ng stored procedures para lahat ng queries mo(kahit hindi sa reports) ay sa SQL lahat nakalagay. sa case ng pag-gawa ng report, mahabang proseso ang report generation using DataSet, pag Stored Proc. yan, lesser procedure, more secure and best practice.
 
Last edited:
Back
Top Bottom