KeyserSoze
Programmer
Is there a way to produce the group tree display when a Crystal Reports V7.0 report is previewed on the screen?<br><br>I seem to be having a problem getting it to work. Here is a sample of the code:<br><br>Public Sub OutputToWindow(WindowTitle$)<br><br>Dim Handle As Integer<br>Dim ErrorNum As Integer<br>Dim PreviewWindow As PEWindowOptions<br>Dim ReportOptions As PEReportOptions<br><br> ReportOptions.hasGroupTree = 1<br> Handle = PESetReportOptions(JobNumber, ReportOptions)<br> PreviewWindow.hasGroupTree = 1<br> Handle = PESetWindowOptions(JobNumber, PreviewWindow)<br> Handle = PEOutputToWindow(JobNumber, WindowTitle$, 0, 0, 520, 520, 0, 0)<br> Handle = PEStartPrintJob(JobNumber, True)<br> If Handle = 0 Then<br> ErrorNum = PEGetErrorCode(JobNumber)<br> MsgBox "An error occurred starting the print job. Error = " & ErrorNum<br> End If<br> <br>End Sub<br><br>Everything works except for the group tree. Help!<br><br>Thanks!<br><br><br>