Click here to Skip to main content
15,912,204 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Program Settings Pin
blah2blah5-Jul-04 5:43
blah2blah5-Jul-04 5:43 
GeneralRe: Program Settings Pin
Jaime Stuardo5-Jul-04 5:51
Jaime Stuardo5-Jul-04 5:51 
GeneralRe: Program Settings Pin
sweep1235-Jul-04 6:05
sweep1235-Jul-04 6:05 
GeneralRe: Program Settings Pin
sweep1235-Jul-04 6:49
sweep1235-Jul-04 6:49 
GeneralMaking multi-parameter function Pin
Gian5-Jul-04 4:42
Gian5-Jul-04 4:42 
GeneralRe: Making multi-parameter function Pin
Michael Dunn5-Jul-04 5:03
sitebuilderMichael Dunn5-Jul-04 5:03 
GeneralVC 2003 and crystal reports Pin
Irish_GUI5-Jul-04 4:37
Irish_GUI5-Jul-04 4:37 
GeneralRe: VC 2003 and crystal reports Pin
Michael P Butler5-Jul-04 10:13
Michael P Butler5-Jul-04 10:13 
Irish_GUI wrote:
if crystal reports works with unmanaged c++ in visual studio 2003 ?

I'm using Crystal Reports 8.5 with VS2003, without any problem (well apart from the usual Crystal problems)

I dropped the Crystal Report viewer activex control onto a formview resource.

I then #import "craxdrt.tlb" to get the IApplication and IReport interfaces, which I use to load the report and then pass the loaded report into the active x.

Roughly

CCrystalViewer m_Report;<br />
IApplicationPtr m_Application;<br />
IReportPtr m_ReportObject;

<br />
<br />
HRESULT hr = m_Application.CreateInstance(__uuidof(Application));<br />
<br />
  m_ReportObject = m_Application->OpenReport(strFilename);<br />
 _bstr_t bstrSQL = m_ReportObject->GetSQLQueryString();<br />
<br />
  TRACE("%s\n", (LPCTSTR)bstrSQL);<br />
<br />
<br />
  m_ReportObject->put_ReportTitle(_bstr_t(strTitle));<br />
<br />
  m_Report.put_ReportSource(m_ReportObject);<br />
<br />
  m_Report.ViewReport();


Michael

CP Blog [^]

GeneralDisplaying multiple image overlays in MFC tree or list control Pin
Anonymous5-Jul-04 4:02
Anonymous5-Jul-04 4:02 
GeneralStatic control fonts Pin
si_695-Jul-04 3:29
si_695-Jul-04 3:29 
GeneralRe: Static control fonts Pin
Stlan5-Jul-04 3:40
Stlan5-Jul-04 3:40 
GeneralRe: Static control fonts Pin
Jaime Stuardo5-Jul-04 3:43
Jaime Stuardo5-Jul-04 3:43 
GeneralRe: Static control fonts Pin
Roger Allen5-Jul-04 3:44
Roger Allen5-Jul-04 3:44 
GeneralRe: Static control fonts Pin
Michael P Butler5-Jul-04 4:22
Michael P Butler5-Jul-04 4:22 
GeneralAbut media player Pin
Anonymous5-Jul-04 1:21
Anonymous5-Jul-04 1:21 
GeneralTo Find row &amp; column Pin
Pazzuzu5-Jul-04 1:10
Pazzuzu5-Jul-04 1:10 
GeneralRe: To Find row &amp; column Pin
Jaime Stuardo5-Jul-04 3:37
Jaime Stuardo5-Jul-04 3:37 
GeneralRe: To Find row &amp; column Pin
Pazzuzu5-Jul-04 3:43
Pazzuzu5-Jul-04 3:43 
QuestionHow can we parse the exe file Pin
karhea5-Jul-04 0:45
karhea5-Jul-04 0:45 
GeneralVC++ and VB Pin
Neelesh K J Jain5-Jul-04 0:32
Neelesh K J Jain5-Jul-04 0:32 
GeneralRe: VC++ and VB Pin
Maximilien5-Jul-04 0:44
Maximilien5-Jul-04 0:44 
GeneralRe: VC++ and VB Pin
V.5-Jul-04 0:53
professionalV.5-Jul-04 0:53 
GeneralRe: VC++ and VB Pin
Michael P Butler5-Jul-04 1:15
Michael P Butler5-Jul-04 1:15 
GeneralRe: VC++ and VB Pin
Antony M Kancidrowski5-Jul-04 2:18
Antony M Kancidrowski5-Jul-04 2:18 
GeneralRe: VC++ and VB Pin
Stlan5-Jul-04 3:45
Stlan5-Jul-04 3:45 

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.