oPC = null DO (_REPORTPREVIEW) with m.oPC * set initial properties: oPC.currentPage = 4 && start on page 4 oPC.toolbarIsVisible = .F. && no toolbar, initially oPC.canvasCount = 2 && 2 pages side-by-side oPC.zoomlevel = 4 && 75% oPC.Caption = "My Preview" * Create a report listener: oRL = CREATEOBJECT("ReportListener") * Assign our Preview container to the listener: oRl.PreviewContainer = m.oPC * Run the report: REPORT FORM myreport OBJECT m.oRL NOWAIT * Now dynamically adjust the properties of the * modeless preview window at runtime: oPC.setCurrentPage( 1 ) oPC.setCanvasCount( 1 ) oPC.setZoomLevel( 10 )I couldn see a preview so I tried that code:
opc.show
and I get error message about "Report preview has not been initialized correctly"