loListener = NEWOBJECT('IOListener_Directives','IOListener.vcx') loListener.LISTENERTYPE = 1and then
REPORT FORM oRegistry.ReportDir + "PartsOrderGridReport" OBJECT loListener TO PRINTER PROMPT PREVIEWI looked into the code in IOListener_Directives class, it has lots of complex code with references to FRX and GdiPlus.
* Purpose: Use this code to run reports maximized when reportbehavior=90. * Taken from http://www.levelextreme.com/wconnect/wc.dll?LevelExtreme~2,41,17,965887 *------------------------------------ * A Customised ReportPreview Factory. * _REPORTPREVIEW = <this program> *------------------------------------ LPARAMETER pcRef DO HOME()+"ReportPreview.App" WITH pcRef pcRef.SetExtensionHandler( NEWOBJECT("PreviewExtension") ) RETURN DEFINE CLASS PreviewExtension AS CUSTOM PROCEDURE SHOW( iModal ) THIS.PreviewForm.ZOOMLEVEL=5 && 100% THIS.PreviewForm.TOOLBAR.DOCK(0) THIS.PreviewForm.WINDOWSTATE = 2 ENDPROC PROCEDURE AddBarsToMenu( cPop, iNext ) ENDPROC PROCEDURE HandledKeyPress( nKey, nMod ) ENDPROC PROCEDURE PAINT() ENDPROC PROCEDURE RELEASE() ENDPROC ENDDEFINECould it be the problem?