A Sandcastle Documented Class Library

# IViewService SaveReportAsScorecard Method

Converts and saves an existing report as a new scorecard.

Namespace: Dundas.BI.Entities.Views
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    Guid SaveReportAsScorecard(
    	Guid viewId,
    	Guid targetId,
    	string newName,
    	EntryCreationOptions options
    )

    Function SaveReportAsScorecard (
    	viewId As Guid,
    	targetId As Guid,
    	newName As String,
    	options As EntryCreationOptions
    ) As Guid

    Guid SaveReportAsScorecard(
    	Guid viewId,
    	Guid targetId,
    	String^ newName,
    	EntryCreationOptions^ options
    )

    abstract SaveReportAsScorecard :
            viewId : Guid *
            targetId : Guid *
            newName : string *
            options : EntryCreationOptions -> Guid

#### Parameters

viewId
  Type: System
  Guid
  The ID of the report.
targetId
  Type: System
  Guid
  The ID of the target to save the scorecard in.
newName
  Type: System
  String
  The file name of the scorecard to create.
options
  Type: Dundas.BI.FileSystem
  EntryCreationOptions
  Options for creating the copy; or
  to use the default options.

#### Return Value

Type: Guid
The ID of the new scorecard.
Exceptions

Exception | Condition
--- | ---
ArgumentException | viewId is Empty. -or- targetId is Empty. -or- newName is empty, only consists of whitespace, or contains invalid characters.
InvalidSessionException | The caller context is not associated with a valid session.
NoPrivilegeException | The caller does not have the Read privilege on the view. -or- The session does not have the privilege to create a scorecard.
NotFoundException | The entity with the specified ID does not exist.

See Also

#### Reference

IViewService Interface
Dundas.BI.Entities.Views Namespace