Implementing Crystal report OCX with Progress OpenEdge 10.1b

Olive

New Member
Hi everybody,
I am using Progress OE 10.1b with crystal reports 8.0 in a Windows xp environment. I am programming with a text connection file through DSN file and schema.ini.
I have a window with a Crystal Report Control ocx (C:\WINDOWS\system32\Crystl32.ocx), my code looks like:
-----
chCtrlFrame:CrystalReport:WindowWidth = 700.
chCtrlFrame:CrystalReport:WindowHeight = 500.
IF rsPrinter = 2 THEN chCtrlFrame:CrystalReport:printFileType=cFormato.
chCtrlFrame:CrystalReport:ReportFileName = pcRepFileName.
chCtrlFrame:CrystalReport:WindowShowPrintSetupBtn = TRUE.
chCtrlFrame:CrystalReport:WindowShowCloseBtn = TRUE.
chCtrlFrame:CrystalReport:WindowShowRefreshBtn = TRUE.
chCtrlFrame:CrystalReport:WindowShowSearchBtn = TRUE.
chCtrlFrame:CrystalReport:WindowShowZoomCtl = TRUE.
chCtrlFrame:CrystalReport:WindowShowNavigationCtls = TRUE.
chCtrlFrame:CrystalReport:WindowState = 1.
chCtrlFrame:CrystalReport:WindowShowExportBtn = FALSE.
chCtrlFrame:CrystalReport:WindowTitle = pcReportTitle.
chCtrlFrame:CrystalReport:Destination = rsPrinter.
chCtrlFrame:CrystalReport:CopiesToPrinter = F-NumberCopies.
chCtrlFrame:CrystalReport:printerStartPage = R-PageBeg.
chCtrlFrame:CrystalReport:printerStopPage = R-PageEnd.
chCtrlFrame:CrystalReport:printFileName = R-OutputFile.
chCtrlFrame:CrystalReport:printReport.
----
When i run this piece of code nothing happens!, no error message,
i don't know where is the error, what is missing.
please if somebody can tell me.
GBE!
Olive.
 
Lets break it down.
In the window with the control, comment out the code that initializes the attributes.
Just have a blank control in UR window, sat there.
Then uncomment code periodically.
Try loading a different file, even if it is the same file just with a different filename - call it something different.
Make sure the code is actually opening a file.
Long debuggin process I know, but thats the business
Good luck
 

vdennis

Member
Did you get this working? If you do not CR2008 installed on the machine running the code it won't work as support for activeX was 'sorta' dropped in CR10.
-Dennis Voegler-
Adams-Burch Company
 
Top