.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

Problem with Crystal Report display

Posted By: Naim Khan     Posted Date: December 06, 2010    Points:2   Category :C#
hello friends,

i made report on crystal report... but when i m built report or project than its show me Error... i dont know what should i do for it..

The type or namespace name 'Shared' does not exist in the namespace 'CrystalDecisions' (are you missing an assembly reference)...

I already added Reference in Project but still its showing me Error...
Plz Help me Out...

Thanks In Advance

Author: krishana singh             
Posted Date: December 07, 2010     Points: 5   

if (con.State == ConnectionState.Closed)
string sql = "SELECT Distinct Series, InvoiceNo, Date, Customer, BalanceAmount, TotalDiscount, OtherAdjustments, (CASE WHEN Credit = 1 THEN 'Credit' ELSE (CASE WHEN Cash = 1 THEN 'Cash' ELSE '' END) END) AS Credit FROM tblSales WHERE Date BETWEEN '"+ txtDateFrom.Text +"' AND '"+ txtDateTo.Text +"'";
SqlDataAdapter dscmd = new SqlDataAdapter(sql, con);
DataSet ds = new DataSet();
dscmd.Fill(ds, "tblSales");

CopySalesDetailedReport c = new CopySalesDetailedReport();
crystalReportViewer1.ReportSource = c;

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend