15,894,907 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by ruzan hizar (Top 15 by date)
ruzan hizar
6-Mar-12 2:20am
View
Thanks for the help...but it also not supporting in my case. I'm taking the data from Access database using XML dataset and assigning the dataset to an object. from that object only i'm taking to the report.
here is my code...
DataTable dt = new DataTable();
Class.clsReport rpt = new Cost.Class.clsReport();
dt = rpt.GenerateMainReport(Pcode);
DataSet ds = new dsReport();
foreach (DataRow dr in dt.Rows)
{
ds.Tables["mainReport"].ImportRow(dr);
}
Report.MainReport objMain = new MainReport();
objMain.SetDataSource(ds);
crvMain.ReportSource = objMain;
crvMain.Refresh();
--------------------------------------------------------------------
public DataTable GenerateMainReport(string Pcode)
{
DataTable ds = new DataTable();
try
{
string sqlStr = "SELECT * FROM tblCost WHERE Product_Code = '" + Pcode + "'";
con = new OleDbConnection(clsConnection.connect);
con.Open();
da = new OleDbDataAdapter();
da.SelectCommand = new OleDbCommand(sqlStr, con);
da.SelectCommand.ExecuteNonQuery();
da.Fill(ds);
return ds;
}
catch (Exception ee)
{
throw ee;
return ds;
}
}
Please any one can check this codes and let me know if any other easy ways to do this task... because i'm new to c#...
Thanks.
ruzan hizar
17-Oct-11 9:03am
View
thanks archanakumari,
earlier i don't know what technology to use for this function. thansk again and now i can try in the trigges
ruzan hizar
17-Aug-11 7:05am
View
Thanks for the Explanation ..
Thanks a lot
ruzan hizar
17-Aug-11 7:01am
View
Thanks a lot All my friends..
It works.
thanks once again...
ruzan hizar
11-Jul-11 3:45am
View
while i'm saving the date from my form it send to sql server db as this format "mm/dd/yyyy"
but it save in the sql server as this format "yyyy/mm/dd"
when i'm selecting that date from crystal report the month column comes as date and date column as month.
ruzan hizar
28-Jun-11 4:57am
View
OK Thanks ,
First i'll try and if i can not i'll let you know.
Thanks for your help ..
ruzan hizar
22-Jun-11 5:17am
View
it comes error in query and asking to insert SELECT, INSERT OR DELETE
ruzan hizar
22-Jun-11 5:07am
View
Will this method support for C#? if so please can u explain Bit clearly.
Thanks.
ruzan hizar
22-Jun-11 5:06am
View
In this way All option coming in the top of the Combo but once select the All option in the combo It wont output all values. i mean it wont take all the values in the combo.
Thanks.
ruzan hizar
22-Jun-11 5:04am
View
This Query is not working and SELECT have to be there next to UNION. but even it wont output all Values once i select the ALL in combo.
ruzan hizar
22-Jun-11 5:02am
View
In this way All option coming in the top of the Combo but it wont out put any values
ruzan hizar
20-Jun-11 8:06am
View
It shows "All" in combo box but once i select all it wont generate All in the report
ruzan hizar
20-Jun-11 7:47am
View
Pls brother shall i have ur mail id then i can send my project. then u can see.
shall i have?
ruzan hizar
20-Jun-11 7:15am
View
thanks
ruzan hizar
20-Jun-11 7:15am
View
Deleted
I am using the Access 2007 Database..so will it work?
and
It wont work. it show a error message" Invalid SQL statement " as
Show More