Click here to Skip to main content
15,442,199 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHOW TO ACCESS CHILDFRAME VARIABLES INTO CHILDVIEW Pin
sourabh27231810-Feb-06 2:37
Membersourabh27231810-Feb-06 2:37 
AnswerRe: HOW TO ACCESS CHILDFRAME VARIABLES INTO CHILDVIEW Pin
David Crow10-Feb-06 2:41
MemberDavid Crow10-Feb-06 2:41 
AnswerRe: HOW TO ACCESS CHILDFRAME VARIABLES INTO CHILDVIEW Pin
Maximilien10-Feb-06 2:44
MemberMaximilien10-Feb-06 2:44 
GeneralRe: HOW TO ACCESS CHILDFRAME VARIABLES INTO CHILDVIEW Pin
Jim Crafton10-Feb-06 6:38
MemberJim Crafton10-Feb-06 6:38 
AnswerRe: HOW TO ACCESS CHILDFRAME VARIABLES INTO CHILDVIEW Pin
ThatsAlok13-Feb-06 21:34
MemberThatsAlok13-Feb-06 21:34 
Questionhow to access childframe data into childview Pin
sourabh27231810-Feb-06 2:23
Membersourabh27231810-Feb-06 2:23 
AnswerRe: how to access childframe data into childview Pin
David Crow10-Feb-06 2:38
MemberDavid Crow10-Feb-06 2:38 
QuestionCrystal Report and ADO question ... Pin
Hadi Rezaee10-Feb-06 1:39
MemberHadi Rezaee10-Feb-06 1:39 
Hi,
I'm using VS .NET 2003 and CR 8.5 ...
My project type is MFC Dialog-based program and i should display a ADO Recordset query result in viewer activex ...
It's what i've done:

1- I made the Report with Crystal Report 8.5 and with connecting to .mdb database via OLEDB connection ... (it's ok)

2- Then i insert the Viewer Control in my project and also made the ado recordset object with a simple query like this: "select * from some_table where code=1"

3- i wrote below code:
	m_RptApp.CreateInstance( "CrystalRuntime.Application" );<br />
	m_RptReportInfo = m_RptApp->OpenReport( _bstr_t(_T("rpt\\CompanyInfo_FA.rpt")) );<br />
Line1:	m_RptReportInfo->Database->SetDataSource( _variant_t( (IDispatch *)m_pRec, true ) );<br />
	m_ReportViewer.put_ReportSource( m_RptReportInfo );<br />
	m_ReportViewer.ViewReport();

I tried this code for Line1 too:
m_RptReportInfo->Database->Tables->GetItem( 1 )->SetDataSource( _variant_t( (IDispatch *)m_pRec, true ) );
The Problem:

the problem is the program shows ALL records ... and NOT the filtered recs !!

1- Can u tell me what's wrong with my code ?!
2- ( ADO Question ):
say i have two _RecordsetPtr objects ..
for example: _Rec1, _Rec2 ..
_Recs1 fills by some records (by Open() mehod)
Is there anyway to copy some records from _Rec1 to _Rec2 ?!
for example i want to copy Record (pos) number 3, 10, 16 to _Rec2

( sorry for my english .. )

Regards,
Hadi
AnswerRe: Crystal Report and ADO question ... Pin
Hadi Rezaee10-Feb-06 6:09
MemberHadi Rezaee10-Feb-06 6:09 
QuestionWhen edit control is added to a dialog, application is crashing Pin
BiswaR10-Feb-06 1:21
MemberBiswaR10-Feb-06 1:21 
AnswerRe: When edit control is added to a dialog, application is crashing Pin
toxcct10-Feb-06 1:38
Membertoxcct10-Feb-06 1:38 
GeneralRe: When edit control is added to a dialog, application is crashing Pin
BiswaR10-Feb-06 2:42
MemberBiswaR10-Feb-06 2:42 
GeneralRe: When edit control is added to a dialog, application is crashing Pin
_anil_10-Feb-06 4:26
Member_anil_10-Feb-06 4:26 
QuestionRe: When edit control is added to a dialog, application is crashing Pin
David Crow10-Feb-06 2:42
MemberDavid Crow10-Feb-06 2:42 
AnswerRe: When edit control is added to a dialog, application is crashing Pin
BiswaR10-Feb-06 2:44
MemberBiswaR10-Feb-06 2:44 
QuestionRe: When edit control is added to a dialog, application is crashing Pin
David Crow10-Feb-06 3:17
MemberDavid Crow10-Feb-06 3:17 
QuestionHow to open notepad.exe Pin
hanno2510-Feb-06 0:57
Memberhanno2510-Feb-06 0:57 
AnswerRe: How to open notepad.exe Pin
Cedric Moonen10-Feb-06 1:11
MemberCedric Moonen10-Feb-06 1:11 
GeneralRe: How to open notepad.exe Pin
hanno2510-Feb-06 2:19
Memberhanno2510-Feb-06 2:19 
GeneralRe: How to open notepad.exe Pin
Cedric Moonen10-Feb-06 2:22
MemberCedric Moonen10-Feb-06 2:22 
GeneralRe: How to open notepad.exe Pin
hanno2510-Feb-06 2:32
Memberhanno2510-Feb-06 2:32 
GeneralRe: How to open notepad.exe Pin
Cedric Moonen10-Feb-06 2:37
MemberCedric Moonen10-Feb-06 2:37 
GeneralRe: How to open notepad.exe Pin
David Crow10-Feb-06 2:44
MemberDavid Crow10-Feb-06 2:44 
GeneralRe: How to open notepad.exe Pin
hanno2510-Feb-06 3:11
Memberhanno2510-Feb-06 3:11 
GeneralRe: How to open notepad.exe Pin
Cedric Moonen10-Feb-06 3:31
MemberCedric Moonen10-Feb-06 3:31 

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.