MSDataReportLib, COM interface constants for VB.Net / VBScript

MSDataReportLib - interface constants

     This page contains simple VBA include for the MSDataReportLib COM library.

library parameters

File NameWINDOWS\system32\MSDBRPTR.DLL
Guid{642AC760-AAB4-11D0-8494-00A0C90DC8A9}
Enums16

BorderStyleConstants

enum, 6 members.
  'BorderStyle property constants
Public Enum BorderStyleConstants

  'Transparent
  rptBSTransparent = 0  '&H0

  'Solid
  rptBSSolid = 1  '&H1

  'Dashes
  rptBSDashes = 2  '&H2

  'Dots
  rptBSDots = 3  '&H3

  'Dash Dot
  rptBSDashDot = 4  '&H4

  'Dash Dot Dot
  rptBSDashDotDot = 5  '&H5
End Enum

BackStyleConstants

enum, 2 members.
  'BackStyle property constants
Public Enum BackStyleConstants

  'Transparent
  rptBkTransparent = 0  '&H0

  'Opaque
  rptBkOpaque = 1  '&H1
End Enum

ShapeConstants

enum, 6 members.
  'Shape property constants
Public Enum ShapeConstants

  'Rectangle
  rptShpRectangle = 0  '&H0

  'Square
  rptShpSquare = 1  '&H1

  'Oval
  rptShpOval = 2  '&H2

  'Circle
  rptShpCircle = 3  '&H3

  'Rounded Rectangle
  rptShpRoundedRectangle = 4  '&H4

  'Rounded Square
  rptShpRoundedSquare = 5  '&H5
End Enum

AlignmentConstants

enum, 3 members.
  'Alignment property constants
Public Enum AlignmentConstants

  'Left
  rptJustifyLeft = 0  '&H0

  'Right
  rptJustifyRight = 1  '&H1

  'Center
  rptJustifyCenter = 2  '&H2
End Enum

LineSlantConstants

enum, 2 members.
  'Slant property constants
Public Enum LineSlantConstants

  'Northwest to Southeast
  rptSlantNWSE = 0  '&H0

  'Northeast to Southwest
  rptSlantNESW = 1  '&H1
End Enum

SizeModeConstants

enum, 3 members.
  'SizeMode property constants
Public Enum SizeModeConstants

  'Clip
  rptSizeClip = 0  '&H0

  'Stretch
  rptSizeStretch = 1  '&H1

  'Zoom
  rptSizeZoom = 2  '&H2
End Enum

PictureAlignmentConstants

enum, 9 members.
  'PictureAlignment property constants
Public Enum PictureAlignmentConstants

  'Top Left
  rptPATopLeft = 0  '&H0

  'Top
  rptPATop = 1  '&H1

  'Top Right
  rptPATopRight = 2  '&H2

  'Right
  rptPARight = 3  '&H3

  'Bottom Right
  rptPABottomRight = 4  '&H4

  'Bottom
  rptPABottom = 5  '&H5

  'Bottom Left
  rptPABottomLeft = 6  '&H6

  'Left
  rptPALeft = 7  '&H7

  'Center
  rptPACenter = 8  '&H8
End Enum

ExportFormatTypeConstants

enum, 4 members.
  'FormatType property constants
Public Enum ExportFormatTypeConstants

  'HTML format
  rptFmtHTML = 0  '&H0

  'Text format
  rptFmtText = 1  '&H1

  'Unicode text format
  rptFmtUnicodeText = 2  '&H2

  'UTF-8 encoded HTML format
  rptFmtUnicodeHTML_UTF8 = 3  '&H3
End Enum

PageBreakConstants

enum, 4 members.
  'ForcePageBreak property constants
Public Enum PageBreakConstants

  'No forced page breaks
  rptPageBreakNone = 0  '&H0

  'Force a page break before printing this section
  rptPageBreakBefore = 1  '&H1

  'Force a page break after printing this section
  rptPageBreakAfter = 2  '&H2

  'Force a page break before and after printing this section
  rptPageBreakBeforeAndAfter = 3  '&H3
End Enum

PageRangeConstants

enum, 2 members.
  'PrintReport, ExportReport methods: Range constants
Public Enum PageRangeConstants

  'Print all pages.
  rptRangeAllPages = 0  '&H0

  'Print specified range of pages.
  rptRangeFromTo = 1  '&H1
End Enum

AsyncTypeConstants

enum, 3 members.
  'Constants to identify asynchronous operation
Public Enum AsyncTypeConstants

  'Print preview operation (Show method)
  rptAsyncPreview = 0  '&H0

  'Print operation (PrintReport method)
  rptAsyncPrint = 1  '&H1

  'Export operation (ExportReport method)
  rptAsyncExport = 2  '&H2
End Enum

FunctionTypeConstants

enum, 8 members.
  'FunctionType property constants
Public Enum FunctionTypeConstants

  'Sum a column
  rptFuncSum = 0  '&H0

  'Average a column
  rptFuncAve = 1  '&H1

  'Min value of a columns
  rptFuncMin = 2  '&H2

  'Max value of a columns
  rptFuncMax = 3  '&H3

  'Count of rows
  rptFuncRCnt = 4  '&H4

  'Count of non-null values
  rptFuncVCnt = 5  '&H5

  'Standard deviation
  rptFuncSDEV = 6  '&H6

  'Standard error
  rptFuncSERR = 7  '&H7
End Enum

OrientationConstants

enum, 3 members.
Public Enum OrientationConstants
  rptOrientDefault = 0  '&H0
  rptOrientPortrait = 1  '&H1
  rptOrientLandscape = 2  '&H2
End Enum

ExportTagConstants

module, 2 members.
  'Constants for creating ExportFormat Templates
Public Enum ExportTagConstants

  'Title of report
  rptTagTitle = "" 

  'Body of report
  rptTagBody = "" 
End Enum

ExportKeyConstants

module, 4 members.
  'ExportReport method Key constants 
Public Enum ExportKeyConstants

  'Default HTML ExportFormat object
  rptKeyHTML = "key_def_HTML" 

  'Default UTF-8 encoded HTML ExportFormat object
  rptKeyUnicodeHTML_UTF8 = "key_def_UnicodeHTML_UTF8" 

  'Default text ExportFormat object
  rptKeyText = "key_def_Text" 

  'Default Unicode text ExportFormat object
  rptKeyUnicodeText = "key_def_UnicodeText" 
End Enum

ErrorConstants

enum, 47 members.
  'Runtime error constants
Public Enum ErrorConstants

  'Out of memory
  rptErrOutOfMemory = 7  '&H7

  'Subscript out of range
  rptErrSubscriptRange = 9  '&H9

  'Type mismatch
  rptErrTypeMismatch = 13  '&HD

  'Invalid property value
  rptErrInvalidPropertyValue = 380  '&H17C

  'Duplicate key value '|1'
  rptErrDuplicateKey = 8500  '&H2134

  'Key value '|1' not found
  rptErrKeyNotFound = 8501  '&H2135

  'General error
  rptErrUnknown = 8502  '&H2136

  'Invalid name
  rptErrInvalidName = 8503  '&H2137

  'Invalid key
  rptErrInvalidKey = 8504  '&H2138

  'Unexpected error
  rptErrUnexpected = 8505  '&H2139

  'ExportFormats collection is empty
  rptErrExportFormatsEmpty = 8506  '&H213A

  'Invalid argument
  rptErrInvalidArg = 8507  '&H213B

  'File I/O error, file '|1'
  rptErrGeneralFileIO = 8510  '&H213E

  'Invalid file version
  rptErrInvalidFileVersion = 8511  '&H213F

  'File already exists: '|1'
  rptErrFileAlreadyExists = 8512  '&H2140

  'Access denied, file '|1'
  rptErrAccessDenied = 8513  '&H2141

  'Path not found: '|1'
  rptErrPathNotFound = 8514  '&H2142

  'Cannot access the file '|1' because it is being used by another process
  rptErrSharingViolation = 8515  '&H2143

  'Invalid export template string
  rptErrInvalidTemplate = 8516  '&H2144

  'Invalid file filter
  rptErrInvalidFileFilter = 8517  '&H2145

  'Invalid filename: '|1'
  rptErrInvalidFilename = 8519  '&H2147

  'Invalid Data Source
  rptErrInvalidDateSource = 8520  '&H2148

  'Unable to initialize chapter
  rptErrChapterInit = 8521  '&H2149

  'Invalid Rowset
  rptErrInvalidRowset = 8522  '&H214A

  'Invalid column index
  rptErrInvalidColIndex = 8523  '&H214B

  'Invalid rowset index
  rptErrInvalidRowIndex = 8524  '&H214C

  'DataField '|1' not found
  rptErrInvalidDataField = 8526  '&H214E

  'Left and right margins are wider than the paper width
  rptErrMarginsTooWide = 8540  '&H215C

  'Top and bottom margins are higher than the paper height
  rptErrMarginsTooTall = 8541  '&H215D

  'Report width is larger than the paper width
  rptErrReportTooWide = 8542  '&H215E

  'Error generating temporary filename
  rptErrTempFileName = 8550  '&H2166

  'Control '|1' cannot be placed in this section
  rptErrBoundCtlNotAllowed = 8551  '&H2167

  'Error creating or writing to temporary file
  rptErrTempFileWrite = 8552  '&H2168

  'Error wrapping lines of text in control '|1'
  rptErrLineBreak = 8553  '&H2169

  'Error opening or reading from temporary file
  rptErrTempFileRead = 8554  '&H216A

  'Error obtaining printer information
  rptErrPrinterInfo = 8555  '&H216B

  'Error creating font
  rptErrCreatingFont = 8556  '&H216C

  'Error initializing print job
  rptErrPrintInit = 8557  '&H216D

  'Error during printing
  rptErrPrint = 8558  '&H216E

  'Report sections do not match data source
  rptErrSectDontMatchData = 8570  '&H217A

  'Sections do not fit vertically on the page
  rptErrReportTooTall = 8571  '&H217B

  'Error creating window
  rptErrCreatingWindow = 8572  '&H217C

  'The object '|1' was not found
  rptErrObjectNotFoundInCollection = 8574  '&H217E

  'This property or method cannot be accessed during the generation of the report.
  rptErrNotAllowedInReportGenerating = 8576  '&H2180

  'Failed getting Rowset(s) from current data source
  rptErrCannotGetRowsetsFromDataSource = 8577  '&H2181

  'Data type mismatch in Function object '|1'
  rptErrDataTypeAndFunctionMismatch = 8578  '&H2182

  'Property is read-only at runtime
  rptErrReadOnlyAtRunTime = 8579  '&H2183
End Enum
WUtils.com