Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New to Crystal Report 7.0
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00655838
Message ID:
00656481
Vues:
4
>>>>Hi all
>>>>I try to control mi report this way
>>>>
>>>>locr = CREATEOBJECT("CrystalRuntime.Application")
>>>>lrap = locr.OpenReport('c:\report4.rpt')
>>>>ldatabase = lRap.Database
>>>>ltable = lDatabase.Tables
>>>>lTable.Item(1).Location="C:\zx0ysx58.dbf"
>>>>ltable.Item(1).Name = "Propo"
>>>>lRap.PrintOut()
>>>>
>>>>
>>>>How can i preview mi report ??
>>>>
>>>>
>>>>Ben..
>>>
>>>To preview your report, you use the CRViewer object like in the following example:
>>>
>>>THIS.oCrystalReports = CREATEOBJECT('CrystalRuntime.Application')
>>>THIS.oReport = CREATEOBJECT('CrystalRuntime.Report')
>>>THIS.oReport = THIS.oCrystalReports.OpenReport(myreport.rpt')
>>>THIS.addObject('oleCRViewer','oleControl','crViewer.crViewer')
>>>THIS.oleCRViewer.Top = 1
>>>THIS.oleCRViewer.Left = 1
>>>THIS.oleCRViewer.Height = THISFORM.Height - 2
>>>THIS.oleCRViewer.Width = THISFORM.Width - 2
>>>THIS.oleCRViewer.ReportSource = THISFORM.oReport
>>>THIS.oleCRViewer.ViewReport()
>>
>>
>>Thank's Cathi
>>it help me
>>I have a new question I try to put a command button over the oleCrviewer but the oleCrviewer always on top. The zorder of the oleCrviewer = 1 the button Zorder = 0
>>any tips
>>
>>Thank's again
>>Ben
>
>
>This is an issue with using ActiveX controls where you can't put objects on top if them like what you are trying to do. Is there any other way to redesign your layout to have the button some place else besides on top of the CRViewer?

Yes
That's what I have done
I change the layout of my form..

Thanks
Ben
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform