Why report shows the Page Setup dialog box?
Posted on 2008-10-28
I have written several reports in CR XI R1. These reports are run and displayed using a Visual Basic 6 application. When the users view the reports and click on a field, some or all of the fields on the viewed report are highlighted with a blue background and the "Page Setup" dialog box is displayed.
When the users click the Cancel button on the Page Setup box, the printer dialog box is displayed but the fields on the report are still highlighted in blue.
The printing process seems to work fine but the highlighted fields are a distraction to the users and there is no reason for the Page Setup dialog box to be shown.
What is happening. This occurs on all of the users computers and on my development computer.
Thanks for any help or direction.
Below is my VB6 code for showing the CR report:
Dim Report As dsrMaster_Next_TD_No_By_Company
Private Sub CrystalActiveXReportViewer1_Clicked(ByVal X As Long, ByVal Y As Long, EventInfo As Variant, UseDefault As Boolean)
UseDefault = False
Report.PaperOrientation = crPortrait
On Error GoTo Cancel:
Private Sub Form_Activate()
Set Report = New dsrMaster_Next_TD_No_By_Company
Report.EnableParameterPrompting = False
Screen.MousePointer = vbHourglass
CrystalActiveXReportViewer1.ReportSource = Report
CrystalActiveXReportViewer1.DisplayTabs = False
CrystalActiveXReportViewer1.DisplayToolbar = True
CrystalActiveXReportViewer1.EnableGroupTree = False
CrystalActiveXReportViewer1.EnableExportButton = True
Screen.MousePointer = vbDefault
Private Sub Form_Resize()
CrystalActiveXReportViewer1.Top = 0
CrystalActiveXReportViewer1.Left = 0
CrystalActiveXReportViewer1.Height = ScaleHeight
CrystalActiveXReportViewer1.Width = ScaleWidth