Information générale
Catégorie:
Crystal Reports
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement