Mar 5, 2011

Generate a report using Crystal Reports in Visual Studio 2010 tutorials.



10 comments:

Anonymous

Thank you very much.Now I can create the crystal report in vs2010.

Anonymous

Thank you very much.
but i have a small problem..
when i run the report from VS 2010 my report is working properly.but when i publish it in IIS (V5.1) its not working.it gives me this error
"Unable to find the report in the manifest resources. Please build the project, and try again. ".please gimme a help.

Thank you.

محمدعلی

Hi Tarun

Your article about CrystalReport is so useful, and the pictures make your articles So Clear.

but I have a big Problem.
when I join (INNER JOIN) 2 tables in CrystalReport and run the report just show me my report design like this picture:
https://blufiles.storage.live.com/y1pdWbPMi0qrmqW2kPo04jfAd6dmiecw6gU-2Yktfk2-RObP88bZYIwGRfYe8wHO7gygA78uiuB8CA/Report.png?psid=1
I hope you can see it,
i use this codes to connect my DataSet to my Crystal Report:

string connection = "Data Source=.\\SQLEXPRESS;AttachDbFilename=C:\\KianiWorkShopDB\\Kiani.mdf;User Instance=True;Integrated Security=True;";

SqlConnection mycon = new SqlConnection(connection);
mycon.Open();
SqlDataAdapter myadap = new SqlDataAdapter("SELECT Materials.Material,ExtraMaterial.Supply,ExtraMaterial.PersianDate FROM ExtraMaterial JOIN Materials ON ExtraMaterial.MaterialID=Materials.ID", mycon);
KianiDataSet myset = new KianiDataSet();
myadap.Fill(myset, "Materials");
CrystalReport1 Prodreport = new CrystalReport1();
Prodreport.SetDataSource(myset);
proreport.ReportSource = Prodreport;
proreport.Refresh();
mycon.Close();
thank you for helping me

Tarun

Hi you have mention your code and provide me a screen shot as well. But i think you have not mentioned your problem can you please tell the the problem where you are stuck, So I can help you to move forward.

Noel77

I am very happy to read you sir Tarum , could I use this version of Crystal Reports for solution deployment ?

Thank and God bless you

Anonymous

I am having a problem. I am not able to open the crystal report 8 in visual studio 2008 c# asp.net. It is opening in Binary mode.
Can anybody solve this issue?
Thanks for the help in advance.

Kenneth

Thanks, how to insert the crystal report viewer in ms visual studio prof edition. Thanks

Anonymous

hi, I see that you are putting desirewallet.com advertisement code which doesnt exist kindly remove it , if you realy want to earn money then put a valid active account publisher code inside , thanks

Unknown

hi Tarun Dudhatra
its a great post ...
but i am having one problem. i want to create report based on two tables and use join in my query. I tried my best but no luck. can you plz make a tutorial in which two tables are used.

Thanks
Ali

Anonymous

thank you..

Post a Comment

Author Profile

Total Pageviews

Categories

Followers

 
Top Programming   Sites Technology Top Blogs Technology blogs Technology Blogs

Sponsors