Click here to Skip to main content
15,895,084 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Saving rtf-file Pin
Luc Pattyn16-Dec-11 3:41
sitebuilderLuc Pattyn16-Dec-11 3:41 
AnswerRe: Saving rtf-file Pin
Luc Pattyn17-Dec-11 3:24
sitebuilderLuc Pattyn17-Dec-11 3:24 
GeneralRe: Saving rtf-file Pin
jtpaa18-Dec-11 21:36
jtpaa18-Dec-11 21:36 
AnswerRe: Saving rtf-file Pin
Luc Pattyn19-Dec-11 2:09
sitebuilderLuc Pattyn19-Dec-11 2:09 
QuestionVB.NET DevExpress XtraRichEdit Problem Pin
Framework .l.14-Dec-11 22:29
Framework .l.14-Dec-11 22:29 
AnswerRe: VB.NET DevExpress XtraRichEdit Problem Pin
Eddy Vluggen15-Dec-11 9:50
professionalEddy Vluggen15-Dec-11 9:50 
GeneralRe: VB.NET DevExpress XtraRichEdit Problem Pin
Framework .l.15-Dec-11 16:54
Framework .l.15-Dec-11 16:54 
Questionentity framework - crystal report with fields from multiple tables Pin
alejx14-Dec-11 14:50
alejx14-Dec-11 14:50 
Hello !

i have a project with VB.net 2010 / Entity framework 4. How can i create a crystal report that include columns from different tables.

Table1 Table2

id1 id2

name value

city date

id1



i want to display on report : value date Name

i can make the query to get records that i need to display on report ,

with report wizard , i have created the crystal report ( CrystalReport1.rpt ) with fields from both 2 tables : value date name.

Now , this is my code :

---------------------------------------------------------------------

Dim report As New ReportDocument

report.Load("c:\Crystalreport1.rpt" )

Dim context As New myEntities

Dim query = From t In context.table2 where ....conditions

Select select t1.value , t1.date , t1.table1.name 

report.SetDataSource(query.ToList)

Form1.CrystalReportViewer1.ReportSource = report



------------------------------------------------------------------------------

when the report is open , the columns value and date are filled with values , but the column name is empty.

What can i do ?

thank you.
AnswerRe: entity framework - crystal report with fields from multiple tables Pin
coded00715-Dec-11 2:54
professionalcoded00715-Dec-11 2:54 
GeneralRe: entity framework - crystal report with fields from multiple tables Pin
alejx15-Dec-11 8:36
alejx15-Dec-11 8:36 
QuestionVB Developer Interview Pin
Chris_B8414-Dec-11 5:03
Chris_B8414-Dec-11 5:03 
AnswerRe: VB Developer Interview Pin
Richard MacCutchan14-Dec-11 6:07
mveRichard MacCutchan14-Dec-11 6:07 
AnswerRe: VB Developer Interview Pin
Clark Kent12314-Dec-11 8:15
professionalClark Kent12314-Dec-11 8:15 
AnswerRe: VB Developer Interview Pin
Dalek Dave14-Dec-11 22:56
professionalDalek Dave14-Dec-11 22:56 
QuestionDataGrid always capture the arrow keys of it child controls (VB.NET, VS2008) Pin
trinh.nguyen13-Dec-11 20:31
trinh.nguyen13-Dec-11 20:31 
QuestionDateTime.Now.TimeOfDay Display Format Pin
Framework .l.12-Dec-11 15:06
Framework .l.12-Dec-11 15:06 
AnswerRe: DateTime.Now.TimeOfDay Display Format Pin
Clark Kent12313-Dec-11 3:03
professionalClark Kent12313-Dec-11 3:03 
AnswerRe: DateTime.Now.TimeOfDay Display Format Pin
Luc Pattyn13-Dec-11 19:11
sitebuilderLuc Pattyn13-Dec-11 19:11 
GeneralRe: DateTime.Now.TimeOfDay Display Format Pin
Clark Kent12314-Dec-11 1:58
professionalClark Kent12314-Dec-11 1:58 
AnswerRe: DateTime.Now.TimeOfDay Display Format Pin
Luc Pattyn14-Dec-11 8:00
sitebuilderLuc Pattyn14-Dec-11 8:00 
Questionvb.net 2010 crystal report help Pin
alejx12-Dec-11 7:41
alejx12-Dec-11 7:41 
AnswerRe: vb.net 2010 crystal report help Pin
thatraja12-Dec-11 17:34
professionalthatraja12-Dec-11 17:34 
QuestionApplication Deployment Pin
jugnu_ad12-Dec-11 1:32
jugnu_ad12-Dec-11 1:32 
AnswerRe: Application Deployment Pin
Dave Kreskowiak12-Dec-11 8:34
mveDave Kreskowiak12-Dec-11 8:34 
AnswerRe: Application Deployment Pin
dr.kitanjal15-Dec-11 1:57
dr.kitanjal15-Dec-11 1:57 

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.