Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report preview
Message
From
09/06/2004 04:50:48
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Title:
Report preview
Miscellaneous
Thread ID:
00911580
Message ID:
00911580
Views:
60
I tried these codes from samples with my VFP9 beta
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"

What I must to do?

And a second:
I want to localize close button on preview toolbar. How can I do that? Is preview applications source codes available? Can I do that with don't hack code?
Next
Reply
Map
View

Click here to load this message in the networking platform