IFsrmReportManager::SetReportSizeLimit method

Sets the current value of the specified report size limit.

Syntax


HRESULT SetReportSizeLimit(
  [in] FsrmReportLimit limit,
  [in] VARIANT         limitValue
);

Parameters

limit [in]

Identifies the limit which is used to limit the files listed in a report. For possible values, see the FsrmReportLimit enumeration.

limitValue [in]

The limit. Must be greater than zero. You can specify the variant as a short, int, or long that is either signed or unsigned. The method will also accept a string value. The method must be able to convert the value to a positive, long number. For example, to pass the value as a long, set the variant type to VT_I4 and then set the lVal member of the variant to the limit value.

Return value

The method returns the following return values.

S_OK

Success

E_INVALIDARG

Returned for any of the following reasons:

  • The limit value is not valid.
  • The value could not be converted to a positive, long number.

Remarks

The following list lists the default limits for the FsrmReportLimit enumeration values used for the limit parameter.

LimitDefault value
FsrmReportLimit_MaxDuplicateGroups100 duplicate groups
FsrmReportLimit_MaxFiles1,000 files
FsrmReportLimit_MaxFileGroups10 groups
FsrmReportLimit_MaxFileScreenEvents1,000 file screen events
FsrmReportLimit_MaxFilesPerDuplGroup10 files per duplicate group
FsrmReportLimit_MaxFilesPerFileGroup100 files per group
FsrmReportLimit_MaxFilesPerOwner100 files per owner
FsrmReportLimit_MaxFilesPerPropertyValue100 files per property
FsrmReportLimit_MaxOwners10 owners
FsrmReportLimit_MaxPropertyValues10 properties
FsrmReportLimit_MaxQuotas1,000 quotas
FsrmReportLimit_MaxFolders1,000 folders

 

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008

Header

FsrmReports.h (include FsrmReports.h or FsrmTlb.h)

DLL

SrmSvc.dll

CLSID

CLSID_FsrmReportManager is defined as 0058ef37-aa66-4c48-bd5b-2fce432ab0c8

IID

IID_IFsrmReportManager is defined as 27b899fe-6ffa-4481-a184-d3daade8a02b

See also

IFsrmReportManager
FsrmReportManager

 

 

Show: