Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to minimize a program in C#? Pin
Morten Kristensen5-Feb-04 22:18
Morten Kristensen5-Feb-04 22:18 
AnswerRe: How to minimize a program in C#? Pin
Mazdak5-Feb-04 22:28
Mazdak5-Feb-04 22:28 
GeneralType of control object... Pin
Weiye Chen5-Feb-04 21:54
Weiye Chen5-Feb-04 21:54 
GeneralRe: Type of control object... Pin
thomasa5-Feb-04 22:56
thomasa5-Feb-04 22:56 
GeneralRe: Type of control object... Pin
Dan_P5-Feb-04 23:31
Dan_P5-Feb-04 23:31 
GeneralRe: Type of control object... Pin
Weiye Chen6-Feb-04 1:11
Weiye Chen6-Feb-04 1:11 
GeneralRe: Type of control object... Pin
Weiye Chen6-Feb-04 1:07
Weiye Chen6-Feb-04 1:07 
GeneralCrystal reports with multi typed datasets Pin
SimonS5-Feb-04 21:03
SimonS5-Feb-04 21:03 
Here's my scenario:

I want to create a report with a header, details and footer where each of these sections come from a separate typed dataset.

So, for an invoice I want to do the following:
header - client info
details - line items for order
footer - totals for order

I can't go directly to the database with Crystal, so I thought using typed datasets would be OK.
I can create a header report and a line item report with separate typed datasets, but can't come right with one report composing of three typed datasets.

To create one report I'm using:
CrystalReport1 report1 = new CrystalReport1();
report1.SetDataSource(lines); //lines = a typed dataset
crystalReportViewer1.ReportSource = report1;

For the composite report, I've tried:
dsCompo.Tables.Add( lines.Copy());
dsCompo.Tables.Add( companytx.Copy());
CrystalReport4 report4 = new CrystalReport4();
report4.SetDataSource(ds);
crystalReportViewer1.ReportSource=report4;

But the viewer jsut asks for a database login...
I have tried using a subreport, but get the same result.


Is there something obvious I'm missing?



Cheers,
Simon

sig ::
"Don't try to be like Jackie. There is only one Jackie.... Study computers instead.", Jackie Chan on career choices.

article :: animation mechanics in SVG     blog:: brokenkeyboards

GeneralRe: Crystal reports with multi typed datasets Pin
SimonS5-Feb-04 21:28
SimonS5-Feb-04 21:28 
GeneralRe: Crystal reports with multi typed datasets Pin
Heath Stewart6-Feb-04 2:44
protectorHeath Stewart6-Feb-04 2:44 
QuestionHow to create a fadein dialog by C#? Pin
tuliplanetrain5-Feb-04 20:59
tuliplanetrain5-Feb-04 20:59 
AnswerRe: How to create a fadein dialog by C#? Pin
Mazdak5-Feb-04 21:27
Mazdak5-Feb-04 21:27 
AnswerRe: How to create a fadein dialog by C#? Pin
tuliplanetrain5-Feb-04 21:51
tuliplanetrain5-Feb-04 21:51 
GeneralRe: How to create a fadein dialog by C#? Pin
Morten Kristensen5-Feb-04 22:23
Morten Kristensen5-Feb-04 22:23 
GeneralRe: How to create a fadein dialog by C#? Pin
Mazdak5-Feb-04 22:34
Mazdak5-Feb-04 22:34 
GeneralRe: How to create a fadein dialog by C#? Pin
Mazdak5-Feb-04 22:58
Mazdak5-Feb-04 22:58 
AnswerRe: How to create a fadein dialog by C#? Pin
tuliplanetrain5-Feb-04 22:40
tuliplanetrain5-Feb-04 22:40 
GeneralRe: How to create a fadein dialog by C#? Pin
Morten Kristensen5-Feb-04 23:01
Morten Kristensen5-Feb-04 23:01 
GeneralRe: How to create a fadein dialog by C#? Pin
Mazdak5-Feb-04 23:08
Mazdak5-Feb-04 23:08 
GeneralXPath problem Pin
alexiev_nikolay5-Feb-04 20:44
alexiev_nikolay5-Feb-04 20:44 
GeneralRe: XPath problem Pin
Mazdak5-Feb-04 21:33
Mazdak5-Feb-04 21:33 
QuestionHow to convert Virtual-Key code to char? Pin
Anonymous5-Feb-04 19:34
Anonymous5-Feb-04 19:34 
AnswerRe: How to convert Virtual-Key code to char? Pin
Heath Stewart6-Feb-04 2:42
protectorHeath Stewart6-Feb-04 2:42 
GeneralChanging the X and Y properties of a point Pin
Meysam Mahfouzi5-Feb-04 18:44
Meysam Mahfouzi5-Feb-04 18:44 
GeneralRe: Changing the X and Y properties of a point Pin
Heath Stewart5-Feb-04 19:01
protectorHeath Stewart5-Feb-04 19:01 

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.