Click here to Skip to main content
15,894,646 members
Home / Discussions / C#
   

C#

 
GeneralRe: Access is denied when listen on a port Pin
George_George31-May-08 2:05
George_George31-May-08 2:05 
GeneralRe: Access is denied when listen on a port Pin
Zoltan Balazs31-May-08 2:40
Zoltan Balazs31-May-08 2:40 
GeneralRe: Access is denied when listen on a port Pin
George_George31-May-08 2:45
George_George31-May-08 2:45 
QuestionCustom Task Pane Close Button. Pin
Varad_Rajan29-May-08 0:13
Varad_Rajan29-May-08 0:13 
QuestionReportViewer on UserCotrol Pin
irinabe28-May-08 22:33
irinabe28-May-08 22:33 
AnswerRe: ReportViewer on UserCotrol Pin
carbon_golem29-May-08 2:19
carbon_golem29-May-08 2:19 
GeneralRe: ReportViewer on UserCotrol Pin
irinabe31-May-08 19:26
irinabe31-May-08 19:26 
GeneralRe: ReportViewer on UserCotrol Pin
carbon_golem2-Jun-08 2:16
carbon_golem2-Jun-08 2:16 
It is possible to put the ReportViewer on a UserControl, however I don't think it necessary as it already is a control. To bind to objects, you first have to have an object with the data that you want to display. Note that how you want to display the data has an impact on how you should construct the objects. I started with the display, then worked back to the objects that I needed to fill and then created FactoryMethods to process data in my application to fill those "report objects". In the example below, iData.GetHeader() returns a List<Header>. If you're still unsure, you should consider getting a book on report services, it's a broad topic with slim resources on the internet.
ReportDataSource rpd1 = new ReportDataSource("Logic_Header", iData.GetHeader());
ReportDataSource rpd2 = new ReportDataSource("Logic_DataA", iData.GetReportDataA());
ReportDataSource rpd3 = new ReportDataSource("Logic_DataB", iData.GetReportDataB());

viewer.LocalReport.SetParameters(GenerateGenrlReportParams(GetCorrectedFont(myFont)));

viewer.LocalReport.DataSources.Add(rpd1);
viewer.LocalReport.DataSources.Add(rpd2);
viewer.LocalReport.DataSources.Add(rpd3);

viewer.RefreshReport();


Scott P

“It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration.”
-Edsger Dijkstra

GeneralRe: ReportViewer on UserCotrol Pin
irinabe3-Jun-08 3:26
irinabe3-Jun-08 3:26 
QuestioncomboBox fill and update from and to dataSource Pin
Mr.Kode28-May-08 22:26
Mr.Kode28-May-08 22:26 
AnswerRe: comboBox fill and update from and to dataSource Pin
Gareth H29-May-08 0:11
Gareth H29-May-08 0:11 
QuestionSpace width. Pin
KBou28-May-08 21:45
KBou28-May-08 21:45 
AnswerRe: Space width. Pin
dan!sh 28-May-08 22:31
professional dan!sh 28-May-08 22:31 
GeneralRe: Space width. Pin
KBou28-May-08 23:06
KBou28-May-08 23:06 
GeneralRe: Space width. Pin
dan!sh 28-May-08 23:21
professional dan!sh 28-May-08 23:21 
GeneralRe: Space width. Pin
KBou28-May-08 23:34
KBou28-May-08 23:34 
GeneralRe: Space width. Pin
dan!sh 28-May-08 23:40
professional dan!sh 28-May-08 23:40 
GeneralRe: Space width. Pin
KBou29-May-08 0:05
KBou29-May-08 0:05 
GeneralRe: Space width. Pin
Pete O'Hanlon29-May-08 0:36
mvePete O'Hanlon29-May-08 0:36 
GeneralRe: Space width. Pin
KBou29-May-08 3:09
KBou29-May-08 3:09 
GeneralRe: Space width. Pin
benjymous29-May-08 0:08
benjymous29-May-08 0:08 
Questionlabel + image Pin
NETtune28-May-08 21:29
NETtune28-May-08 21:29 
AnswerRe: label + image Pin
leppie29-May-08 0:51
leppie29-May-08 0:51 
GeneralRe: label + image Pin
NETtune29-May-08 1:29
NETtune29-May-08 1:29 
GeneralRe: label + image Pin
leppie29-May-08 3:15
leppie29-May-08 3:15 

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.