TBarCode.NET Barcodes in MS SQL Reporting Services



Similar documents
SAP Enterprise Portal 6.0 KM Platform Delta Features

Working in a ubiquitous computing environment

BC407 Reporting: QuickViewer, InfoSet Query and SAP Query

Multiple Components in One Database -

Sabine Reich SAP. Test Workbench - Introduction

SAP NetWeaver Gateway Throughput & Scalability. David Freidlin

Capacity Planning in the Process Industry

Management and Monitoring of a J2EE Server and Applications Using JMX. Reinhold Kautzleben, Gregor Frey Speaker Title, SAP AG

Security Audit Log (BC-SEC)

Michael Collet 28th January 2005, Frankfurt, GI -Fachgruppe SECMGT

BC481 SAP Interactive Forms by Adobe

Electronic Data Interchange / IDoc Interface (SD-EDI)

Table of Contents. How to Find Database Index usage per ABAP Report and Creating an Index

Budget Control by Cost Center

SAP BusinessObjects Dashboards Influence Session. Scott Leaver Solution Management François Imberton Product Management

Business Partner Master Data (LO-MD-BP)

" # Portal Integration SAP AG 2004, 3

Building a multi-source universe

Leveraging Utilibill. Tim Vanderheide Bluewater Power V.P. Client Services

Closed-Loop Engineering Integrated Product Development at a Vehicle Manufacturer

Certificate SAP INTEGRATION CERTIFICATION

Test Plan Security Assertion Markup Language Protocol Interface BC-AUTH-SAML 1.0

Download and Install Crystal Reports for Eclipse via the Eclipse Software Update Manager

Growing pressures that are here to stay

Application Map Release 2005

User Experience in Custom Apps

Integration of SAP Netweaver User Management with LDAP

mysap Supply Chain Management Solution Map Release 2005

Intelligent Business Operations Chapter 1: Overview & Strategy

Enterprise Software - Applications, Technologies and Programming

Global Transport Label - General Motors -

USDL XG WP3 SAP use case. Kay Kadner

NWBC10 NetWeaver Business Client

SAPFIN. Overview of SAP ERP Financials COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Process Archiving using NetWeaver Business Process Management

UI Framework Simple Search in CRM WebClient based on NetWeaver Enterprise Search (ABAP) SAP Enhancement Package 1 for SAP CRM 7.0

Job Scheduling Management Integration with SAP CPS by Redwood SAP Solution Manager 7.1. SAP AG August, 2011

FSC130 SAP Bank Communication Management

HR400 SAP ERP HCM Payroll Configuration

RUN BETTER Become a Best-Run Business with Remote Support Platform for SAP Business One

Quality Management (QM)

How To Develop In Java (J2Ee) And J2Ee (Sap) Together (Sapp)

BC450 ABAP Performance: Analysis and Optimization

Data Archiving in CRM: a Brief Overview

BRFplus Field Configuration for Portfolio Management

Capital Project and Portfolio Management

Configuring Distribution List in Compliant User Provisioning

Maintaining Different Addresses and Ids for a Business Partner via CRM Web UI

R/3 and J2EE Setup for Digital Signature on Form 16 in HR Systems

Installation Guide Customized Installation of SQL Server 2008 for an SAP System with SQL4SAP.VBS

SAP Master Data Governance- Hiding fields in the change request User Interface

Alert Notification in SAP Supply Network Collaboration. SNC Extension Guide

Secure MobiLink Synchronization using Microsoft IIS and the MobiLink Redirector

Next Generation Digital Banking with SAP

How To Configure MDM to Work with Oracle ASM-Based Products

Sales and Distribution (SD) Workflow Scenarios

Fixed Asset in SAP Business One 9.0

Understanding HR Schema and PCR with an Example

Business One in Action - How can we post bank fees and charges while posting Incoming or Outgoing Payment transactions?

AC200. Basics of Customizing for Financial Accounting: General Ledger, Accounts Receivable, Accounts Payable COURSE OUTLINE

Sales Rush Sales Order Processing S01- Lean Baseline Package. SAP Lean Baseline Package Version: V1.500 Country: UK Language: EN Date: February 2006

SAP's Journey of Implementing SAP Disclosure Management and Notes Management Session 2002

How To Use the ESR Eclipse Tool with the Enterprise Service Repository

SAP Business Partner (SAP BP)

SAP Service Tools for Performance Analysis

Accounts Receivable. SAP Best Practices

Third Party Digital Asset Management Integration

Project Cost Reporting for PPM

HR Data Retrieval in a LDAP- Enabled Directory Service

How to Schedule Report Execution and Mailing

SAP NetWeaver BRM 7.3

OData in a Nutshell. August 2011 INTERNAL

Ariba Network Integration to SAP ECC

How To Distribute Organizational Management In A Distributed System

Product Lifecycle Management (PLM)

SAP Business ByDesign Reference Systems. Scenario Outline. SAP ERP Integration Scenarios

How to Set Up an Authorization for a Business Partner in Customer Relationship Management (CRM) Internet Sales: Sample Case

Implementing Outlook Integration for SAP Business One

TM111. ERP Integration for Order Management (Shipper Specific) COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Log Analysis Tool for SAP NetWeaver AS Java

SAP HANA Cloud Integration Document Version: Template Guide for SAP Sales and Operations Planning

BW370 BI Integrated Planning

Integrating Easy Document Management System in SAP DMS

K in Identify the differences between the universe design tool and the information design tool

How to Configure Access Control for Exchange using PowerShell Cmdlets A Step-by-Step guide

Maintenance Bills of Material (CS-BD/PM-EQM-BM)

Portfolio and Project Management 5.0: Excel Integration for Financial and Capacity Planning

SOP through Long Term Planning Transfer to LIS/PIS/Capacity. SAP Best Practices

How to configure BusinessObjects Enterprise with Citrix Presentation Server 4.0

Integration of Universal Worklist into Microsoft Office SharePoint

UI Framework Task Based User Interface. SAP Enhancement Package 1 for SAP CRM 7.0

How to Create a Support Message in SAP Service Marketplace

How To Improve Your Business Process With Sap

ITSCM at SAP Best practices

Settlement in TM 9.0 New functionalities with TM 9.0. Ananth Bhat SAP Development, Transportation & Logistics December 2012

B1WS: B1 Web Services wrapper

SAP GRC Access Control: Background jobs for risk analysis and remediation (formerly Virsa Compliance Calibrator)

Compliant, Business-Driven Identity Management using. SAP NetWeaver Identity Management and SBOP Access Control. February 2010

Transcription:

TBarCode.NET Barcodes in MS SQL Reporting Services Version 1.0.1 Printing Barcodes with MS SQL Reporting Services 29 January 2013 TEC-IT Datenverarbeitung GmbH Hans-W agner-str. 6 A-4400 Steyr, Austria t ++43 (0)7252 72720 f ++43 (0)7252 72720 77 office@tec-it.com www.tec-it.com

1 Content 1 Content 2 2 Disclaimer 3 3 Haftungsausschluss 4 4 Before Starting 5 4.1 MS SQL Reporting Services and TBarCode.NET 5 5 Sample 6 5.1 Creating the Reporting Project 6 5.2 Creating the Barcode 7 5.2.1 Steps needed to create the barcode: 7 6 Contact and Support Information 10 Page 2 of 10

2 Disclaimer The actual version of this product (document) is available as is. TEC-IT declines all warranties which go beyond applicable rights. The licensee (or reader) bears all risks that might take place during the use of the system (the documentation). TEC-IT and its contractual partners cannot be penalized for direct and indirect damages or losses (this includes non-restrictive, damages through loss of revenues, constriction in the exercise of business, loss of business information or any kind of commercial loss), which is caused by use or inability to use the product (documentation), although the possibility of such damage was pointed out by TEC-IT. We reserve all rights to this document and the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden. Für dieses Dokument und den darin dargestellten Gegenstand behalten wir uns alle Rechte vor. Vervielfältigung, Bekanntgabe an Dritte oder Verwendung außerhalb des vereinbarten Zweckes sind nicht gestattet. 1998-2013 TEC-IT Datenverarbeitung GmbH Wagnerstr. 6 A-4400 Austria t.: +43 (0)7252 72720 f.: +43 (0)7252 72720 77 http://www.tec-it.com Page 3 of 10

3 Haftungsausschluss Dieses Produkt (bzw. Dokument) steht Ihnen in der aktuellen Version WIE BESEHEN ohne Gewährleistung zur Verfügung. TEC-IT weist alle Garantien, die über das anwendbare Recht hinausgehen, zurück. Risiken, die aus der Benutzung des Produkts und der Dokumentation entstehen, trägt der Lizenznehmer bzw. Benutzer. TEC-IT und seine Vertragspartner dürfen nicht für direkte oder indirekte Schäden oder Verluste belangt werden (dies beinhaltet, uneingeschränkt, Schäden durch den Verlust von Einkünften, Einschränkungen in der Geschäftsausübung, Verlust von Geschäftsinformationen sowie andere wirtschaftliche Verluste), die aus der Benutzung oder Unfähigkeit zur Benutzung des Produkts (der Dokumentation) entstanden sind, selbst wenn TEC-IT auf die Möglichkeit solcher Schäden hingewiesen hat. We reserve all rights to this document and the information contained therein. Reproduction, use or disclosure to third parties without express authority is strictly forbidden. Für dieses Dokument und den darin dargestellten Gegenstand behalten wir uns alle Rechte vor. Vervielfältigung, Bekanntgabe an Dritte oder Verwendung außerhalb des vereinbarten Zweckes sind nicht gestattet. 1998-2013 TEC-IT Datenverarbeitung GmbH Wagnerstr. 6 A-4400 Austria t.: +43 (0)7252 72720 f.: +43 (0)7252 72720 77 http://www.tec-it.com Page 4 of 10

4 Before Starting 4.1 MS SQL Reporting Services and TBarCode.NET In the following Sample we will create a Reporting Services report with integrated barcode image using TBarCode.NET and Visual Studio.NET 2008 Basically you need to install TBarCode SDK on your system. You can download a free evaluation version of TBarCode directly from our web site: http://www.tec-it.com/download/tbarcode/windows/download.aspx From the SDK we will use the TBarCode.NET component. Additional you need the following applications installed: Microsoft SQL Server Reporting Services Microsoft.NET Framework 3.5 or higher Microsoft Visual Studio.NET 2008 or higher Page 5 of 10

5 Sample 5.1 Creating the Reporting Project Open Visual Studio.NET 2008 and create a new report project In the project wizard choose your database connection (in the sample the Northwind database is used). Open the automatically generated Report1.rdlc and design your report as you want. Insert an image object into your report at the position where you want to create the barcode in. Page 6 of 10

5.2 Creating the Barcode In this step we ll create the barcode. This sample creates a Code 128 barcode, but with TBarCode you re able to create over 100 different barcode types. A list of all supported barcode symbologies is available here: Barcode symbologies supported by TBarCode 5.2.1 Steps needed to create the barcode: Open the Report1.rdlc in Visual Studio.NET 2008. In the menu select Report Report Properties Open the References tab and add the following references: TECIT.TBarCode System.Drawing System.Windows.Forms Now you have to create an instance of TBarCode. Therefore add the following Class name: TEC-IT.TBarCode.Barcode For the Instance name you use: TBarCode Page 7 of 10

In the next step you have to open the Code tab. Enter the function as specified below. The basic principle is to generate a barcode stream which is than shown in the image object. Public Function CreateBarcode(ByVal code As String) As Byte() Dim nsize As System.Drawing.Size Dim bytearray As Byte() Dim stream As New System.IO.MemoryStream() ' Set the barcode data to encode TBarCode.Data = code ' Set the barcode symbology TBarCode.BarcodeType = TECIT.TBarCode.BarcodeType.Code128 ' Set initial default size TBarCode.BoundingRectangle = New System.Drawing.Rectangle (0, 0, 200, 150) ' calculate pixel accurate width (for screen resolution) nsize = TBarCode.CalculateOptimalBitmapSize(Nothing, 1, 1) TBarCode.BoundingRectangle = New System.Drawing.Rectangle(0, 0,_ nsize.width, nsize.height) ' Create the barcode image (BMP) and write to stream TBarCode.DrawBitmap(nSize.Width, nsize.height).save(stream, _ System.Drawing.Imaging.ImageFormat.Bmp) ' Set the stream position to the beginning of the stream. stream.seek(0, System.IO.SeekOrigin.Begin) ' Read all Bytes from the stream. bytearray = New Byte(CType(stream.Length, Integer)) {} stream.read(bytearray, 0, stream.length) Return bytearray End Function To use the specified assemblies you have to trust them. Therefore open the Form which was created with the project. Open this form in the Code View and add a Load function with the following lines: Me.ReportViewer1.LocalReport.ExecuteReportInCurrentAppDomain(AppDomain.CurrentDomain.Evid ence) Me.ReportViewer1.LocalReport.AddTrustedCodeModuleInCurrentAppDomain("TECIT.TBarCode, Version=11.0.0.0, Culture=neutral, PublicKeyToken=1b5f4306b234b83d") Me.ReportViewer1.LocalReport.AddTrustedCodeModuleInCurrentAppDomain("System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a") Me.ReportViewer1.LocalReport.AddTrustedCodeModuleInCurrentAppDomain("System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089") Page 8 of 10

Finally you have to change the settings of the image object in the report. Set the Source property to Database and the Value property to call the CreateBarcode. For example: =Code.CreateBarcode(Fields!LastName.Value.ToString()) Page 9 of 10

6 Contact and Support Information TEC-IT Datenverarbeitung GmbH Address: Hans-Wagnerstr. 6 AT-4400 Steyr Austria/Europe Phone: +43 / (0)7252 / 72 72 0 Fax: +43 / (0)7252 / 72 72 0 77 Email: Web: office@tec-it.com http://www.tec-it.com AIX is a registered trademark of IBM Corporation. HTML, DHTML, XML, XHTML are trademarks or registered trademarks of W3C, World Wide Web Consortium, Laboratory for Computer Science NE43-358, Massachusetts Institute of Technology, 545 Technology Square, Cambridge, MA 02139. JAVA is a registered trademark of Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA. JAVASCRIPT is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. Linux is a registered trademark of Linus Torvalds in several countries. Microsoft, Windows, Microsoft Word, Microsoft Excel are registered trademarks of Microsoft Corporation. Navision is a registered trademark of Microsoft Business Solutions ApS in the United States and/or other countries. Oracle is a registered trademark of Oracle Corporation. PCL is a registered trademark of the Hewlett-Packard Company. PostScript is a registered trademark of Adobe Systems Inc. SAP, SAP Logo, R/2, R/3, ABAP, SAPscript are trademarks or registered trademarks of SAP AG in Germany (and in several other countries). UNIX is a registered trademark of The Open Group All other products mentioned are trademarks or registered trademarks of their respective companies. If any trademark on our web site or in this document is not marked as trademark (or registered trademark), we ask you to send us a short message (office@tec-it.com). Page 10 of 10