FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Crystal Reports upgrade 8.5 to Release 10
Posts: 99
Joined: Fri Dec 16, 2011 03:30 PM
Crystal Reports upgrade 8.5 to Release 10
Posted: Sat Oct 22, 2016 08:20 AM

Crystal Reports upgrade 8.5 to Release 10+

Currently I am using crystal reports version 8.5, and calling startreport function to activate the preview. My usual practice is to create a temporary dbf file and append the required data into the temp file and call that temp file into the crystal rpt file.

I need to upgrade the crystal reports version higher than release 10. Reason for upgrade to be compatible with new version of windows and office products. After installing the new version, my reports do not open.

If there some new functions to compile for the new crystal reports version. If so any help for guidance is appreciated...

Thnx / regards

FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Crystal Reports upgrade 8.5 to Release 10
Posted: Sat Oct 22, 2016 11:51 AM
Try this, I don't know if it works with release 10, though:

Code (fw): Select all Collapse
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oCrystal := CREATEOBJECT( "CrystalRuntime.Application" )
    LOCAL oReport  := oCrystal:OpenReport( "test.rpt" )

    LOCAL oWnd, oCRViewer

    DEFINE WINDOW oWnd

    oCRViewer = TActiveX():New( oWnd, "CRViewer10.CRViewer" )

    oCRViewer:SetProp( "ReportSource", oReport )
    oCRViewer:Do( "ViewReport" )

    oWnd:oClient = oCRViewer

    ACTIVATE WINDOW oWnd;
             MAXIMIZED

    RETURN NIL


EMG
Posts: 99
Joined: Fri Dec 16, 2011 03:30 PM
Re: Crystal Reports upgrade 8.5 to Release 10
Posted: Sun Oct 23, 2016 04:42 AM

Thanks Enrico, will try this out next week.
Regards

FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan

Continue the discussion