Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crystal Reports Smart View
Message
De
03/05/2000 01:30:57
Tan Aik Jin
Aranea WebLab Sdn Bhd
Kuala Lumpur, Malaisie
 
 
À
28/04/2000 06:30:13
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00364029
Message ID:
00365486
Vues:
20
Walter,

Thanks again for replying. Here is my code ( command1.click() ):

Local loCRApp, loCRReport, lcView

m.loCrApp = CreateObject('Crystal.CRPE.Application')

If type('loCrApp') = "O" and ! Isnull(loCrApp)
loCRReport = .null.
loCRReport = loCRApp.OpenReport( "D:\Seagate Software\Crystal Reports\RT01.Rpt" )
Else
messagebox('Could not initialise Crystal Reports', 48, 'Error')
Return
Endif

If type('loCrReport') = "O" and ! Isnull(loCrReport)
Thisform.OleControl1.ReportSource = loCrReport
Thisform.OleControl1.ViewReport()
Else
messagebox('Could not open Report', 48, 'Error')
Endif

My form has only two controls, Command1 ( CommandButton ) and OleControl1 ( Smartviewer Control ). I am using Vfp 5a and Crystal Reports Professional V7.01. One unusual thing is that the smart viewer control appears transparent in my vfp form. It shows all its controls in VB though.

Jin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform