Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New to Crystal Report 7.0
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00655838
Message ID:
00656471
Views:
7
>>>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?
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform