Click here to Skip to main content
15,907,910 members

Bugs and Suggestions

   

General discussions, site bug reports and suggestions about the site.

For general questions check out the CodeProject FAQs. To report spam and abuse Head to the Spam and abuse watch. If you wish to report a bug privately, especially those related to security, please email webmaster@codeproject.com

 
GeneralRe: Text Wrapping Pin
Chris Maunder14-Jun-12 0:57
cofounderChris Maunder14-Jun-12 0:57 
GeneralRe: Text Wrapping Pin
Bassam Abdul-Baki14-Jun-12 1:00
professionalBassam Abdul-Baki14-Jun-12 1:00 
GeneralRe: Text Wrapping Pin
Chris Maunder14-Jun-12 1:05
cofounderChris Maunder14-Jun-12 1:05 
GeneralRe: Text Wrapping Pin
Bassam Abdul-Baki14-Jun-12 1:08
professionalBassam Abdul-Baki14-Jun-12 1:08 
GeneralRe: Text Wrapping Pin
Fabio V Silva18-Jun-12 5:26
Fabio V Silva18-Jun-12 5:26 
QuestionHow can I.. Pin
Prasad_Kulkarni13-Jun-12 0:14
Prasad_Kulkarni13-Jun-12 0:14 
AnswerRe: How can I.. Pin
Pete O'Hanlon13-Jun-12 2:56
mvePete O'Hanlon13-Jun-12 2:56 
GeneralRe: How can I.. Pin
Prasad_Kulkarni13-Jun-12 3:08
Prasad_Kulkarni13-Jun-12 3:08 
Thank You Pete!
So here's the article I am talking about:
Generate a Report using Crystal Reports in Visual Studio 2010[^]

Code provided by author is accurate, but last ten lines are either re-typed or remained by mistake:

protected void Page_Load(object sender, EventArgs e)
{
ReportDocument rptDoc = new ReportDocument();
dsSample ds = new dsSample(); // .xsd file name
DataTable dt = new DataTable();
// Just set the name of data table
dt.TableName = "Crystal Report Example";
dt = getAllOrders(); //This function is located below this function
ds.Tables[0].Merge(dt);
// Your .rpt file path will be below
rptDoc.Load(Server.MapPath("../Reports/SimpleReports.rpt")); 
//set dataset to the report viewer.
rptDoc.SetDataSource(ds);
CrystalReportViewer1.ReportSource = rptDoc;
}
public DataTable getAllOrders()
{
//Connection string replace 'databaseservername' with your db server name
string sqlCon = "User ID=sa;PWD=sa; server=databaseservername;
	INITIAL CATALOG=SampleDB;PERSISTSECURITY INFO=FALSE;Connect Timeout=0";
SqlConnection Con = new SqlConnection(sqlCon);
SqlCommand cmd = new SqlCommand();
DataSet ds = null;
SqlDataAdapter adapter;
try
{
Con.Open();
//Stored procedure calling. It is already in sample db.
cmd.CommandText = "getAllOrders";
cmd.CommandType = CommandType.StoredProcedure;
cmd.Connection = Con;
ds = new DataSet();
adapter = new SqlDataAdapter(cmd);
adapter.Fill(ds, "Users");
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
finally
{
cmd.Dispose();
if (Con.State != ConnectionState.Closed)
Con.Close();
}
return ds.Tables[0];
}hrow new Exception(ex.Message);// From here all the lines are retyped
}
finally
{
cmd.Dispose();
if (Con.State != ConnectionState.Closed)
Con.Close();
}
return ds.Tables[0];
} 


I have added comment from the line it is a mistake there.
AnswerRe: How can I.. Pin
Chris Maunder13-Jun-12 6:38
cofounderChris Maunder13-Jun-12 6:38 
GeneralRe: How can I.. Pin
Prasad_Kulkarni17-Jun-12 23:09
Prasad_Kulkarni17-Jun-12 23:09 
QuestionWhy no signatures in Q&A? Pin
Manas Bhardwaj12-Jun-12 22:48
professionalManas Bhardwaj12-Jun-12 22:48 
AnswerRe: Why no signatures in Q&A? Pin
Chris Maunder13-Jun-12 6:38
cofounderChris Maunder13-Jun-12 6:38 
SuggestionABOUT PHP Pin
Mohibur Rashid12-Jun-12 16:12
professionalMohibur Rashid12-Jun-12 16:12 
GeneralRe: ABOUT PHP Pin
Richard MacCutchan12-Jun-12 22:16
mveRichard MacCutchan12-Jun-12 22:16 
GeneralRe: ABOUT PHP Pin
Mohibur Rashid13-Jun-12 2:21
professionalMohibur Rashid13-Jun-12 2:21 
SuggestionA Lounge sub-forum for jokes/humor Pin
Nish Nishant12-Jun-12 4:35
sitebuilderNish Nishant12-Jun-12 4:35 
GeneralRe: A Lounge sub-forum for jokes/humor Pin
Manfred Rudolf Bihy12-Jun-12 5:38
professionalManfred Rudolf Bihy12-Jun-12 5:38 
GeneralRe: A Lounge sub-forum for jokes/humor Pin
Nish Nishant12-Jun-12 5:39
sitebuilderNish Nishant12-Jun-12 5:39 
GeneralRe: A Lounge sub-forum for jokes/humor Pin
Pete O'Hanlon12-Jun-12 5:48
mvePete O'Hanlon12-Jun-12 5:48 
GeneralRe: A Lounge sub-forum for jokes/humor Pin
Nish Nishant12-Jun-12 5:51
sitebuilderNish Nishant12-Jun-12 5:51 
GeneralRe: A Lounge sub-forum for jokes/humor Pin
Luc Pattyn12-Jun-12 5:51
sitebuilderLuc Pattyn12-Jun-12 5:51 
GeneralRe: A Lounge sub-forum for jokes/humor Pin
Nish Nishant12-Jun-12 5:54
sitebuilderNish Nishant12-Jun-12 5:54 
GeneralRe: A Lounge sub-forum for jokes/humor Pin
Pete O'Hanlon12-Jun-12 6:01
mvePete O'Hanlon12-Jun-12 6:01 
GeneralRe: A clean Lounge? Pin
Luc Pattyn12-Jun-12 6:17
sitebuilderLuc Pattyn12-Jun-12 6:17 
GeneralRe: A clean Lounge? Pin
Pete O'Hanlon12-Jun-12 6:42
mvePete O'Hanlon12-Jun-12 6:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Flags: FixedAnswered

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.