Click here to Skip to main content
15,917,795 members
Home / Discussions / C#
   

C#

 
AnswerRe: I have function that finds a smaller image within a big image, but I'm stuck Pin
leppie26-May-06 12:23
leppie26-May-06 12:23 
GeneralRe: I have function that finds a smaller image within a big image, but I'm stuck Pin
Psytherium26-May-06 14:27
Psytherium26-May-06 14:27 
GeneralRe: I have function that finds a smaller image within a big image, but I'm stuck Pin
leppie26-May-06 21:35
leppie26-May-06 21:35 
QuestionMinimize button click event? Pin
NaNg1524126-May-06 10:29
NaNg1524126-May-06 10:29 
AnswerRe: Minimize button click event? Pin
Dan Neely26-May-06 10:34
Dan Neely26-May-06 10:34 
GeneralRe: Minimize button click event? Pin
NaNg1524126-May-06 10:35
NaNg1524126-May-06 10:35 
AnswerRe: Minimize button click event? Pin
Member 861778022-May-12 9:48
Member 861778022-May-12 9:48 
QuestionOne Crystal Report, Two Subreports Pin
CombatRob26-May-06 10:23
CombatRob26-May-06 10:23 
Ok, here is the situation, I have a form named Worksheet with 2 typed datasets, RevenueDS and CostDS. The form shows all Revenue and Cost entries (in seperate panes) for the current contract. Also the net profit is calculated and printed at the bottom.
It serves it purpose, but people are complaining they cant print.

I need to make a single crystal report that shows all the above information on a single page. From what I gather, I need 2 subreports to accomplish this goal, one for Revenue and one for Costs and then the Net profit somehow will be computed on the main report(havent got that far yet).

The only problem is, I need to use the datasets in the program rather then have crystal reports get the data from the server. This has been no problem for a report with no subreports since I can just use something like:

<br />
WorksheetReport Report = new WorksheetReport();<br />
PrintingForm pf = new PrintingForm();<br />
Report.Database.Tables["Revenue"].SetDataSource(RevenueDS);<br />
Report.Database.Tables["Cost"].SetDataSource(CostDS);<br />
pf.CRViewer.ReportSource = Report;<br />
pf.Show();<br />


However, I can't find a reasonable way to get to the database of the Subreports, as there is no Subreports data member for Report such as:

<br />
Report.Subreports[0].Database.Table["Revenue"].SetDataSource(RevenueDS); // dont exist<br />


So, what can I do?

Thanks in advance.
Rob
Questionupdate with datagridview Pin
kjosh26-May-06 10:14
kjosh26-May-06 10:14 
AnswerRe: update with datagridview Pin
maryamf26-May-06 10:56
maryamf26-May-06 10:56 
GeneralRe: update with datagridview Pin
kjosh26-May-06 11:07
kjosh26-May-06 11:07 
GeneralRe: update with datagridview Pin
Sean8926-May-06 12:09
Sean8926-May-06 12:09 
AnswerRe: update with datagridview [modified] Pin
Mairaaj Khan26-May-06 20:04
professionalMairaaj Khan26-May-06 20:04 
QuestionXML root not found (Stream problem) [modified] Pin
NaNg1524126-May-06 9:19
NaNg1524126-May-06 9:19 
AnswerRe: XML root not found (Stream problem) Pin
Dustin Metzgar26-May-06 9:25
Dustin Metzgar26-May-06 9:25 
GeneralRe: XML root not found (Stream problem) Pin
NaNg1524126-May-06 9:34
NaNg1524126-May-06 9:34 
QuestionRotating line Pin
Mega700026-May-06 9:01
Mega700026-May-06 9:01 
AnswerRe: Rotating line Pin
led mike26-May-06 9:18
led mike26-May-06 9:18 
Questionwhat is Shell Protection and how to Protect My EXE ? Pin
hdv21226-May-06 7:56
hdv21226-May-06 7:56 
AnswerRe: what is Shell Protection and how to Protect My EXE ? Pin
Judah Gabriel Himango26-May-06 9:51
sponsorJudah Gabriel Himango26-May-06 9:51 
GeneralRe: what is Shell Protection and how to Protect My EXE ? Pin
hdv21226-May-06 13:01
hdv21226-May-06 13:01 
GeneralRe: what is Shell Protection and how to Protect My EXE ? Pin
Judah Gabriel Himango27-May-06 10:41
sponsorJudah Gabriel Himango27-May-06 10:41 
QuestionConnection String Pin
zaboboa26-May-06 7:44
zaboboa26-May-06 7:44 
AnswerRe: Connection String Pin
Dustin Metzgar26-May-06 8:17
Dustin Metzgar26-May-06 8:17 
GeneralRe: Connection String Pin
zaboboa26-May-06 9:09
zaboboa26-May-06 9:09 

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

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