StrokeScribe Barcode Library for SSRS - the API Overview

This library allows to display linear and 2D barcodes in SSRS reports.

Download

You need to stop the report server when updating the library.

Properties and Methods

The class library structure in the current release:

Namespace StrokeScribeSSRS Public Class Barcode Public Function Initialize() As Long Public Function SetTextProp(PropName As String, value As String) As Long Public Function SetLongProp(PropName As String, value As Long) As Long Public Function GetPictureArray(Format As Long, W As Long, H As Long, ByRef arr As Byte()) As Long Public Function GetLongProp(PropName As String, ByRef val As Long) As Long End Class End Namespace

SetLongProp

Sets the value of a numeric property of the barcode generator.

Syntax

Parameters:

Return value

Examples

Choosing a barcode type:

barcode.SetLongProp ("Alphabet", 5) ' 5 = CODE128

Encoding data in UTF-8:

barcode.SetLongProp ("CodePage", 65001)

Remarks

The list of properties that can be modified through the SetLongProp (the library shares the property names with the ActiveX):

SetTextProp

Sets the value of a text property.

Syntax

Parameters:

Return value

Examples

Encoding a text string in the barcode:

barcode.SetTextProp("Text", "ABCDE3457")

Modifying the text below the barcode:

barcode.SetTextProp ("TextBelow", "Some text")

Remarks

The list of properties that can be modified through the SetTextProp (the library shares the property names with the ActiveX):

GetLongProp

Retrieves a value associated with the specified property name.

Syntax

Parameters:

Return value

Example

See GetPictureArray.

Remarks

The list of properties that can be read through the GetLongProp (the library shares property names with the ActiveX):

GetPictureArray

The function creates a byte array that stores the image bytes in BMP/JPG/GIF formats.

Syntax

Parameters:

Return value

Example

barcode.Initialize barcode.SetLongProp ("Alphabet", 25) ' 25 = QR Code barcode.SetTextProp ("Text", "123ABC") dim rc as long dim w as long rc = barcode.GetLongProp("BitmapW", w) ' The minimum width of the picture (in pixels) that can fit the barcode if rc<>0 then return nothing dim arr as byte() rc = barcode.GetPictureArray(1, w, w, arr) ' A square barcode with 1x1px modules in GIF format if rc<>0 then return nothing return arr

Example

barcode.Initialize barcode.SetLongProp ("Alphabet", 5) ' 5 = CODE 128 barcode.SetTextProp ("Text", "123ABC") dim rc as long dim w as long rc = barcode.GetLongProp("BitmapW", w) ' The minimum width of the picture (in pixels) that can fit the barcode if rc<>0 then return nothing dim arr as byte() rc = barcode.GetPictureArray(1, w*3, w, arr) ' With linear barcodes, you may specify any value for the image height. if rc<>0 then return nothing return arr
Facebook X Bluesky Youtube Contacts

© 2026 StrokeScribe. All rights reserved. Use of any portion of this site constitutes acceptance of our Terms of Use and Privacy Policy. The website material may not be reproduced, except with the prior written permission.