Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report preview
Message
De
09/06/2004 04:50:48
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turquie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Titre:
Report preview
Divers
Thread ID:
00911580
Message ID:
00911580
Vues:
58
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?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform