15,881,852 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 Kuldeep B (Top 29 by date)
Kuldeep B
24-Dec-12 10:59am
View
Thanks I like to go with Flash...
Thank u Very much
Kuldeep B
13-Dec-12 8:44am
View
Hi Sumit...I tried as u suggested but it shows only one table data...
But my problem is solved..Check http://www.codeproject.com/Questions/506858/HowplusToplusCreateplusBillplusinpluscrystalplusre
Kuldeep B
12-Dec-12 4:11am
View
Deleted
Y
Kuldeep B
12-Dec-12 4:08am
View
Amit Problem Is solved ..Now I'm getting data from both tables.
I Do what u say.
1)Delete Sub report
2)inserts fields from database fields in main report
3)Debug Project
4)Inserted sub Report
5)Double click on sub report ..In field explorer I right click on database fields ..then selected database expert ...And next steps are same..
Thank you very Much Amit:)
Kuldeep B
12-Dec-12 3:59am
View
Yes Ankit It show Data In Main report When I disable Subreport.
Kuldeep B
12-Dec-12 3:46am
View
ya... datasource has data....
I'm getting data from ds2 but not from ds1...Now problem is only with Main report...
...My assigning method is correct or any changes required...please go through code if u have free time...Please..
Thanks for giving time for me..
Kuldeep B
12-Dec-12 3:27am
View
Main report print only Column Name ....Not print data....Only columns are display
Kuldeep B
12-Dec-12 3:14am
View
Anit :Thanks for Solution
I tried with your Idea but I'm getting only second table values in sub report.
And no any value in Main report....
Below is my code wht I tried:
SqlDataAdapter da = q.fillbill(bill);
da.Fill(ds1, "billtable");
//dt1.Clear();
//da.Fill(dt1);
if (dt.Rows.Count > 0)
{
//Assign data to the primary report
// CrystalReport1 RptDoc = new CrystalReport1();
ReportDocument RptDoc = new ReportDocument();
RptDoc.Load("C:\\Users\\Sunlogic\\Documents\\Visual Studio 2008\\Projects\\My Stock\\My Stock\\CrystalReport1.rpt");
RptDoc.SetDataSource(ds1);
SqlDataAdapter da1 = q.fillcurrentsale();
da1.Fill(ds2, "saletable");
//dt2.Clear();
//da.Fill(dt2);
q.disconnect();
//Get sub report and assign datatable1 to that report
foreach (ReportObject repOp in RptDoc.ReportDefinition.ReportObjects)
{
if (repOp.Kind == ReportObjectKind.SubreportObject)
{
string SubRepName = ((SubreportObject)repOp).SubreportName;
ReportDocument subRepDoc = RptDoc.Subreports[SubRepName];
subRepDoc.SetDataSource(ds2);
}
}
//Assign report to the crystal report viewer
billp.crystalReportViewer1.ReportSource = RptDoc;
// billp.crystalReportViewer1.DataBind();
}
Kuldeep B
11-Dec-12 1:45am
View
Use two datasets and then use Merge methode..
Kuldeep B
10-Dec-12 0:58am
View
@ Sumit : I don't have number of record are same ..
dataset 1....Only one record
dataset 2....More than one records
Kuldeep B
24-Apr-12 11:28am
View
sorry yar its possible with access db....
Kuldeep B
16-Apr-12 23:51pm
View
Please give details of how you inserting record.Is there any query you written for insert in table.
Kuldeep B
16-Apr-12 23:40pm
View
Improve Question Please..
What you want to do?
Kuldeep B
16-Apr-12 12:20pm
View
Same problem I'm facing.
http://www.codeproject.com/Questions/362084/How-to-setup-crystal-report-layout-in-Windows-appl
Kuldeep B
16-Apr-12 12:12pm
View
Perfect Answer VJ
Kuldeep B
16-Apr-12 8:51am
View
Good Advice Nelek....
Kuldeep B
15-Apr-12 23:27pm
View
c=5;
Sorry for reading question lazily..
your solution work correct in my solution slide change is required for odd...
Kuldeep B
15-Apr-12 13:55pm
View
Update--
Gridview1.Databind();
Kuldeep B
15-Apr-12 13:41pm
View
fields count is not issue.
when you call update method all edited data is updated
Kuldeep B
14-Apr-12 12:50pm
View
VJ Rock Answer For Beginner..
Kuldeep B
14-Apr-12 12:47pm
View
Nice Solution Griff......
Kuldeep B
14-Apr-12 12:40pm
View
Thank U VJ..
Kuldeep B
14-Apr-12 1:43am
View
Question Is not more clear please improve question..
Kuldeep B
14-Apr-12 1:22am
View
Tharre
Connection string need to reconstructed.
I posted the solution because I also faced same problem like you.
I developed my application in 32 bit and when trying to install on 64bit then same error.Also need to change odbc provider.By Solution 1 I solved my problem.
So my advice is you try solution 1 even after that you have same problem we will look to other options from others..
OK...
Kuldeep B
9-Apr-12 13:36pm
View
Thanks OriginalGriff...
I'm facing hit test problem..I posted my code under Discussion Tab..with Subkect wpf
http://www.codeproject.com/Forums/1004257/Silverlight-WPF.aspx
Please solve this for me...
Kuldeep B
9-Apr-12 13:28pm
View
Any One know about this please post....
Kuldeep B
9-Apr-12 13:14pm
View
Please help me developers.............Please..
Kuldeep B
8-Apr-12 13:09pm
View
check that your query return result(some row) or it may be not content record...
Kuldeep B
8-Apr-12 7:54am
View
Lakmraju I posted the code here
http://www.codeproject.com/Forums/1004257/Silverlight-WPF.aspx
Subject WPF3d
Please check and help me to implement hittest.....Please..
Show More