Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. VC 2003 and crystal reports

VC 2003 and crystal reports

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studioquestionannouncement
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Irish_GUI
    wrote on last edited by
    #1

    hi, can anyone tell me if crystal reports works with unmanaged c++ in visual studio 2003 ? I have installed version 9 and 10 and cannot use either any tips, Regards, Dermot

    M 1 Reply Last reply
    0
    • I Irish_GUI

      hi, can anyone tell me if crystal reports works with unmanaged c++ in visual studio 2003 ? I have installed version 9 and 10 and cannot use either any tips, Regards, Dermot

      M Offline
      M Offline
      Michael P Butler
      wrote on last edited by
      #2

      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; IApplicationPtr m_Application; IReportPtr m_ReportObject; HRESULT hr = m_Application.CreateInstance(__uuidof(Application)); m_ReportObject = m_Application->OpenReport(strFilename); _bstr_t bstrSQL = m_ReportObject->GetSQLQueryString(); TRACE("%s\n", (LPCTSTR)bstrSQL); m_ReportObject->put_ReportTitle(_bstr_t(strTitle)); m_Report.put_ReportSource(m_ReportObject); m_Report.ViewReport(); Michael CP Blog [^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups