CrystalReportViewerBase.NavigateTo Method
Navigates to a specific report object that satisfies the data context for the current report source.
Namespace CrystalDecisions.Web Assembly CrystalDecisions.Web (CrystalDecisions.Web.dll)
Syntax
'Declaration
Public Sub NavigateTo ( _
ByVal sDataContext As String, _
ByVal sObjectName As String _
)
public void NavigateTo (
string sDataContext,
string sObjectName
)
Parameters
- sDataContext
The data context that is used to filter the report object.
- sObjectName
The report object name.
Remarks
Data context is used to filter the data records that are displayed on the report.
Example
This example shows how to use the NavigateTo method in the CrystalReportViewerBase class.
'Declaration
Private Sub NavigateTo(ByVal myReportName As String)
Dim myDataContext As String = "/{Table.Field}/{Table.Field}"
CrystalReportViewerBase.NavigateTo(myDataContext, myReportName)
End Sub
private void NagivateTo(String reportName)
{
String dataContext = "/{Table.Field}/{Table.Field}";
crystalReportViewerBase.NavigateTo(dataContext, reportName);
}
Version Information
Crystal Reports Basic for Visual Studio 2008
Supported since: Crystal Reports .NET 9
See Also
Reference
CrystalReportViewerBase Class
CrystalReportViewerBase Members
CrystalDecisions.Web Namespace