Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report objects events
Message
De
26/05/2003 21:51:55
H. C. Doughty
Cybernet Services Inc.
Lansing, Illinois, États-Unis
 
 
À
26/05/2003 11:49:21
Franco Felosi
Acut Servizi Srl
Brescia, Italie
Information générale
Forum:
Visual FoxPro
Catégorie:
Crystal Reports
Divers
Thread ID:
00792835
Message ID:
00792919
Vues:
27
Franco:

Maybe if you tell us what you are trying to do with the viewer. I have Craig's book and have also subclassed the viewer. I have not experienced any of the problems that you have described.

For instance if you are looking for the total numbe of pages in a report, that will be in the PrintingStatus object.

Using the following from the VFP command window:
oCRw = CREATEOBJECT("CrystalRuntime.Application")
oRPT = oCrw.OpenReport("The fully qualified path\YourReportName.rpt")
loPrintingStatus = orpt.PrintingStatus()

Now you can interogate the items of the PrintingStatus object. If you have VFP-Intellisense on then you will see objects & methods available to the viewer, RDC etc.

? loPrintingStatus.NumberofPages
? loPrintingStatus.NumberofRecordsSelected

Then if you want to use this information to present to the user the Print dialogbox with some of the information already filled in you could do:

nStartPage = 1
nEndPage = loPrintingStatus.NumberofPages
oRPT.PrintOut(,2,,nStartPage,nEndPage)

Do not know if this helps you any, but, again if you can tell us waht you are attempting to do, I am sure someone can help.

Regards
Haydn
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform