Click here to Skip to main content
15,886,806 members
Home / Discussions / C#
   

C#

 
GeneralRe: hard disk serail number Pin
Luc Pattyn20-Jul-09 6:57
sitebuilderLuc Pattyn20-Jul-09 6:57 
GeneralRe: hard disk serail number Pin
Eddy Vluggen20-Jul-09 8:20
professionalEddy Vluggen20-Jul-09 8:20 
AnswerRe: hard disk serail number Pin
Luc Pattyn20-Jul-09 7:00
sitebuilderLuc Pattyn20-Jul-09 7:00 
QuestionRe: hard disk serail number Pin
harold aptroot20-Jul-09 10:54
harold aptroot20-Jul-09 10:54 
QuestionCrystalReports Pin
CodingYoshi20-Jul-09 6:06
CodingYoshi20-Jul-09 6:06 
AnswerRe: CrystalReports Pin
CodingYoshi20-Jul-09 13:05
CodingYoshi20-Jul-09 13:05 
AnswerRe: CrystalReports Pin
_Maxxx_20-Jul-09 18:17
professional_Maxxx_20-Jul-09 18:17 
GeneralRe: CrystalReports Pin
CodingYoshi21-Jul-09 4:34
CodingYoshi21-Jul-09 4:34 
viewer.DataBind() is not an available method on CrystalReportViewer control. This is a desktop application, not a web application. Basically what I am trying to do is as following, for example:

I have created the layout of the form for customer orders. Each order should be on a separate page but the layout will be consistent. I grab the data using many stored procedures and then put them into one table (TableAll for example). I have also created one dataset with one table (TableDataSet for example), at design time, which has exactly the same structure as TableAll. I set the crystal report's datasource to   the TableDataSet by using Database Expert (Right click the Database field). I drag the fields from the Database fields onto my report.

At run time, my app populate DataAll and I set the report's table (TableDataSet) source to DataAll as below:

OrderReport report = new OrderReport(); // Crystal report

// The first table of the report gets its data from DataAll, they have same structure
report.Database.Tables(0).SetDataSource(DataAll);

// Create the viewer
CrystalReportViewer viewer = new CrystalReportViewer();
viewer.ReportSource = report;
viewer.Visible = true;

The report however only contains the layout but no data. Why do you think?

CodingYoshi

Artificial Intelligence is no match for Human Stupidity.

Questionwhat to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
svt gdwl20-Jul-09 5:00
svt gdwl20-Jul-09 5:00 
AnswerRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
Mirko198020-Jul-09 5:05
Mirko198020-Jul-09 5:05 
AnswerRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
PIEBALDconsult20-Jul-09 5:57
mvePIEBALDconsult20-Jul-09 5:57 
AnswerRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
Ennis Ray Lynch, Jr.20-Jul-09 7:25
Ennis Ray Lynch, Jr.20-Jul-09 7:25 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
Luc Pattyn20-Jul-09 7:51
sitebuilderLuc Pattyn20-Jul-09 7:51 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
Ennis Ray Lynch, Jr.20-Jul-09 8:02
Ennis Ray Lynch, Jr.20-Jul-09 8:02 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
Luc Pattyn20-Jul-09 8:06
sitebuilderLuc Pattyn20-Jul-09 8:06 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
PIEBALDconsult20-Jul-09 8:43
mvePIEBALDconsult20-Jul-09 8:43 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
Ian Shlasko20-Jul-09 10:23
Ian Shlasko20-Jul-09 10:23 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
PIEBALDconsult20-Jul-09 10:53
mvePIEBALDconsult20-Jul-09 10:53 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
Ian Shlasko20-Jul-09 11:23
Ian Shlasko20-Jul-09 11:23 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
PIEBALDconsult20-Jul-09 12:03
mvePIEBALDconsult20-Jul-09 12:03 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
S. Senthil Kumar20-Jul-09 19:28
S. Senthil Kumar20-Jul-09 19:28 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
PIEBALDconsult20-Jul-09 19:32
mvePIEBALDconsult20-Jul-09 19:32 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
N a v a n e e t h20-Jul-09 15:35
N a v a n e e t h20-Jul-09 15:35 
Questionscan using Twain in c#.net Pin
balu1234520-Jul-09 4:09
balu1234520-Jul-09 4:09 
AnswerRe: scan using Twain in c#.net Pin
DaveyM6920-Jul-09 4:17
professionalDaveyM6920-Jul-09 4:17 

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.