1693758 - Cannot SetFocus on Crystal Report windows Form Viewer

SAP Knowledge Base Article - Public

1693758 - Cannot SetFocus on Crystal Report windows Form Viewer

Symptom

Windows Form Viewer in Visual Studio .NET does not set the focus to the Page in the report viewer.

Environment

Crystal Reports for Visual Studio 2010

Cause

No API exists for this feature/functionality.

Resolution

Enhancement Request created - ADAPT01521485

Solution:

Create a Button on the Windows Form and add this new API to it:

     crystalReportViewer1.SetFocusOn(UIComponent.Page);

Also note: the values allowed are as follows:

  • crystalReportViewer1.SetFocusOn(UIComponent.GroupTree);
  • crystalReportViewer1.SetFocusOn(UIComponent.Page);
  • crystalReportViewer1.SetFocusOn(UIComponent.PageAlbumTab);
  • crystalReportViewer1.SetFocusOn(UIComponent.ParameterPanel);
  • crystalReportViewer1.SetFocusOn(UIComponent.ToolBar);

 

Keywords

Visual Studio 2010, CR for VS 2010, focus, Set Page focus , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Product Enhancement

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio