Home
TBarCode .NET Developer Manual V11
Contents
1. List of all members Public Member Functions Barcode Initializes a new instance of the Barcode class float CalculateBarcodeHeight Graphics gfx Calculates the height of the barcode SizeF CalculateBarcodeSize Graphics gfx Calculates the size of the barcode CalculateBarcodeWidth Graphics gfx Calculates the width of the barcode CalculateCheckdigits Calculates the checkdigits CalculateModuleWidth Graphics gfx Calculates the width of a module CalculateNumberOfModules Calculates the number of modules float float int CalculateNumberOfRows Calculates the number of rows for 2d barcodes CalculateOptimalBitmapSize Graphics gfx int nScaleX int nScaleY Calculates the optimal size of a bitmap CalculateTextAreaHeight Graphics gfx Calculates the height of the text area int CalculatexColumnsOf2DBarcode Calculates the width of the barcode in modules CalculateXRowsOf2DBarcode Calculates the height of the barcode in modules CopyToClipboard int width int height Copies barcode to clipboard float double void Dispose Performs application defined tasks associated with freeing releasing or resetting unmanaged resources Draw Graphics gfx Draws the barcode into graphics context void Draw string filename ImageType imageType Draws the barcode to file Draw string filename ImageType imageType
2. E TECIT TBarCode CodablockF E TECIT TBarCode Code20f5 E TECIT TBarCode Composite Symbol E TECIT TBarCode CustomDrawingEventArgs E TECIT TBarCode DataMatrix E TECIT TBarCode Interop DillmportPortable Attribute E TECIT TBarCode DotCode E TECIT TBarCode Interop DoubleRectangle E TECIT TBarCode Interop GdiRectangle E TECIT TBarCode HanXin E TECIT TBarCode Web ImageBag E TECIT TBarCode Interop LibLoader E TECIT TBarCode Interop LOGFONT E TECIT TBarCode Interop LOGFONTA E TECIT TBarCode MacroPdf417 E TECIT TBarCode MaxiCode E TECIT TBarCode MicroPdf E TECIT TBarCode MicroQRCode E TECIT TBarCode Pdf417 E TECIT TBarCode QRCode E TECIT TBarCode QuietZones E TECIT TBarCode QuietZoneSettings E TECIT TBarCode Rss E TECIT TBarCode Interop TBarCodeDil E TECIT TBarCode Interop TBarCodeDilFactory E TECIT TBarCode Interop TBarCodePlatform E TECIT TBarCode Interop TBCWrapper E TECIT TBarCode Util Class Members Files x amp Print Options TBarCode NET 11 Developer Reference tarcode NeT 11 Windows m TECIT TBarCode Barcode Public Member Functions Static Public Member Functions 7 Protected Member Functions Properties Events TECIT TBarCode Barcode Class Reference A class to draw linear and 2d barcodes More
3. barcode BarcodeType BarcodeType DataMatrix barcode Data Here is some random context for my sample barcode private void Forml Paint object sender PaintEventArgs e Define the position and size of the barcode Rectangle rectangle this ClientRectangle rectangle Inflate 20 20 barcode BoundingRectangle rectangle Draw the barcode barcode Draw e Graphics In this sample we create a Data Matrix barcode which is a 2 dimensional barcode variant 7 5 Finally Run the application Please click Start Debugging to run the application The result can be seen in Figure 18 a Formi Figure 18 A Windows Form that renders a Barcode 7 6 Build Errors 7 6 1 Visual Studio 2010 with NET 4 Client Profile You may see an error that the TECIT namespace could not be found with the following warning The referenced assembly TECIT TBarCode Version 11 0 0 0 Culture neutral PublicKeyToken 1b5f4306b234b83d processorArchitecture x86 could not be resolved because it has a dependency on System Web Version 4 0 0 0 Culture neutral PublicKeyToken bO3f5f7f11d50a3a which is not in the currently targeted framework NETFramework Version v4 0 Profile Client WWW TEC IT COM Page 19 of 26 This is because your project is using the NET 4 0 client profile which does not include System Web Why is there a dependency on System Web The referenced TBarCode assembly file in your proj
4. A NET application that uses TBarCode SDK requires the following files TECIT TBarCode dil This is a NET assembly that contains the NET controls This file is mandatory TBarCode11 dll This is a native Win32 x86 library that performs barcode generation This file is mandatory for 32 Bit applications platform x86 or Any CPU on x86 systems TBarCode11_x64 dll This is a native Win64 x64 library that performs barcode generation This file is mandatory for 64 Bit applications platform x64 or Any CPU on x64 systems zlib1 dll This is a 3 d party library that performs data compression This file is optional It is only required when data compression in barcodes is enabled These files are located in the folder C Program Files Common Files TEC IT TBarCode 1 1 0 or in the folder you have chosen during setup Because we rely on native code also the Visual C 2010 SP1 runtime components have to be installed on the computer See next section how to distribute them with your application The target NET framework NET 2 0 3 0 3 5 4 must be available on the target system 9 2 Redistribution When redistributing a custom application the files described above need to be redistributed together with the application The DLLs should be located in the same folder as the executable Other files than those listed above must not be redistributed For web applications the DLLs should be placed in the bin directory of the web site
5. Ctrl a p Fom CE 4 Comm fal Solution WindowsFormsApplication1 1 project Nog List View a c eee BE Show All b Properties b m References goose Items A App config Fa Sort Items Alphabetically b Forml cs A Reset Toolbox b c Program cs p Bl Add Tab A DeleteTab A Rename Tab Bt Ft te Move Down O MonthCalendar gt 2 ke Notifylcon EE NumericUpDown PictureBox E ProgressBar Find Results 1 RadioButton a3 RichTextBox TextBox ta ToolTip TreeView WebBrowser 4 Containers k Pointer FlowLayoutPanel GroupBox EJ Panel ES SplitContainer Ci TabControl Solution Explorer VA View VA Outline Class View Find Results 1 Find Symbol Results Error List Pending Changes TableLayoutPanel Figure 2 The Toolbox Context Menu 3 Inthe Choose Toolbox Items dialog click the Browse button 4 Inthe Open dialog navigate to C Program Files Common Files TEC IT TBarCode 1 1 x or the path you have chosen during setup On Windows x64 systems you should add the 32 bit version of TBarCode in C Program Files x86 Common Files TEC IT TBarCode 1 1 x otherwise you may get the error not a Microsoft Net module 5 Select TECIT TBarCode dil and click Open 6 Two new controls named BarcodeControl should now show up in the Choose Toolbox Items dialog Make sure they are checked and click Ok 3 Since Visual Studio itself is compiled as a 32 bit application you should reference the x86 version of TBa
6. 9 2 Redistribution 9 2 1 Visual C 2010 SP1 Runtime 9 2 2 Using the MSI installer from TEC IT 9 2 3 Why Platform Specific Versions 10 Contact and Support Information Appendix A Related Downloads A 1 Barcode Reference A 2 Samples A 3 User Manual A 4 FAQ Frequently Asked Questions WWW TEC IT COM ODDONDOOD TWIN Pre GOOD Page 2 of 26 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 Ea 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 Fur dieses Dokument und den darin dargestellten Gegenstand behalten wir uns alle Rechte vor Vervielfaltigung Bekanntgabe an Dritte oder Verwendung auBerhalb des vereinbarten Zweckes sind nicht gestattet 1998 2013 TEC IT Datenverarbeitung GmbH Hans Wagner St
7. Brom 9 P Google Chrome Debug Any CPU Aa None 2em 2 Paes PEPPY PS A ou Solution Explorer AX Default aspxcs Default aspx Output Toolbox Ex a e 2f0d Site Master Search Toolbox Pr Regist L a Search Solution Explorer Ctrlr Pr BEE BE Wizard z por e Xm fal Solution WebApplication1 1 proj Home About Contact am a Custom MN BarcodeControl nen gt Data ee cel BarcodeControl BarcodeContol s 4 tal References iz p Validation Antir3 Runtime b Navigation a AspNet ScriptManager i tnnin u AspNet ScriptManager Server Explorer Toolbox DotNetOpenAuth AspNi Properties vax wa DotNetOpenAuth Cose BarcodeControll TECIT TBarCode Web BarcodeContro DotNetOpenAuth OAuti En DotNetOpenAuth OAutt Cut Cix En AF DotNetOpenAuth Openl cm ane E Data a E DotNetOpenAuth Openl Expressions xa EntityFramework ER u E Barcode TECIT TBarCode Barcode u Microsoft AspNet Memt Paste Aetea 0 E Microsoft AspNet Web Delete Del AdjustModuleWidthT False Ch are Cp View Code E Aztec TECIT TBarCode Aztec Microsoft ScriptManage BackgroundColor 255 255 255 Microsoft SeriptManage View in Browser Google Chrome Ctrl Shift W ed a 3 BarcodeColor 0 0 0 8 Microsoft Web Infrastru Edit Master Ctrl M Ctrl M y BarcodeType Codel28 Ban 4 t Tac Alte gt BarShape Default vi SystemComponentMoc Fo po leControl Barco gt P i ee sign Refresh deControl Barco BarShapelmagefile u System Core Erorlist Properties h STR Bar
8. Developer Reference WWW TEC IT COM Page 15 of 26 7 Barcode Class 7 1 Introduction TBarCode SDK not only provides a Windows Form Control and a Web Control to generate barcodes The core functions are implemented in the Barcode class This class can be used to generate barcodes in any type of application e g in a Windows Forms application on web site in console applications etc Here is a brief tutorial on how to render a barcode using the Barcode class Requirements to work through the tutorial TBarCode 11 installed Visual Studio 2005 or a Visual Studio 2005 Express Edition or newer versions Basic knowledge about the C language 7 2 Create a new Project Start Visual Studio and create a new project 1 Select File New Project 2 Choose Windows Forms Application and click Ok bs Start Page Microsoft Visual Studio Administrator Quick Launch Ctrl Q Pp FILE EDIT VIEW VASSISTX DEBUG TEAM SQL TOOLS TEST ANALYZE WINDOW HELP iB a we P Attach AA a fal a Qn p4 Solution Explorer A MaS n _ gt Recent NET Framework 4 5 Sort by Default GF Search Installed Templates Ctr E Pr 4 Installed G Ei Windows Forms Application Visual C Type Visual C 4 Templates z A project for creating an application with a 7 P s b Visual C E _ WPF Application Visual C Windows Forms user interface Windows Installer XML z ce LightSwitch Console Applicat
9. Graphics gfx Draws the barcode to file with respect to a given graphics context Figure 20 Screenshot of TBarCode NET 11 API Reference WWW TEC IT COM Page 21 of 26 8 How to license TBarCode 8 1 License Types Please check out http www tec it com order for available license types and pricing 8 2 License TBarCode Without a valid license an additional text Demo is drawn across the barcode as shown in Figure 21 As soon as you have acquired a license you can pass the license data to TBarCode for example barcode License John Smith LicenseType DeveloperOrWeb 1 00000000 TBarCodeProduct BarcodelD 1D License barcode License John Smith LicenseType DeveloperOrWeb 1 00000000 TBarCodeProduct Barcode2D 2D License Alternatively you can set the license by using the license properties of the barcode object For example barcode Licensee John Smith barcode LicenseType LicenseType DeveloperOrWeb barcode LicenseCount 1 barcode LicenseKey 00000000 barcode LicensedProduct TBarCodeProduct BarcodelD 1234567890ABCD Figure 21 Barcode rendered without a valid License Demo mode 1234567890ABCD Figure 22 Barcode rendered with a valid License WWW TEC IT COM Page 22 of 26 9 Redistributing TBarCode This chapter explains what is important when redistributing a custom application that uses the TBarCode NET controls 9 1 Dependencies
10. Project Visual C 4 Visual C N ae ce My L Windows Service Visual C Web af os ahi WPF Custom Control Library Visual C Cloud my eee E WPF User Control Lib Visual C ni b SharePoint ai at ke Silverlight 54 Tect a ri Windows Forms Control Library Visual C b Online Name WindowsFormsApplicationl Location R Test Test Projects Browse J Solution name C Create directory for solution C Add to Subversion OK Cancel Solution Explorer VA View VA Outline Class View Find Results1 Find Symbol Results Error List Pending Changes Figure 1 Create a New Project 2 The Visual Studio Express Editions are free development environments form Microsoft Visit http msdn microsoft com vstudio express default aspx to find out more WWW TEC IT COM Page 6 of 26 5 3 Reference the Barcode Controls To work with the barcode controls you first need to add them into Visual Studio 1 Open the Toolbox 2 Right click All Windows Forms and select Choose Items DQ WindowsFormsApplicationl Microsoft Visual Studio Administrator Quick Launch Ctrl Q FILE EDIT VIEW VASSISTX PROJECT BUILD DEBUG TEAM SQL TOOLS TEST ANALYZE WINDOW HELP D Start Debug Any CPU AQ amp oa DO A Oa 2 Solution Explorer 4x Fome Design X Output EEJ g a b 2 Oa orm Search Too 2 Search Solution Explorer
11. TBarCode QuietZoneSettings m E TECIT TBarCode Rss E TECIT TBarCode Interop TBarCodeDil E TECIT TBarCode Interop TBarCodeDilFactory E TECIT TBarCode Interop TBarCodePlatfom m gt browser But the barcode will be perfectly readable when printing the web page on a 600 dpi printer Background info The resolution of the barcode is handled the following way First we assume that the screen resolution is 96 DPI which should fit most monitors Then the barcode image is drawn bigger depending on the desired resolution For example if the desired resolution is 192 DPI then the image is rendered twice as big The barcode image is then display in the web control using the original size I e the web browser shows a scaled down image If you zoom in e g in Opera browser or if you print the page the barcode will be drawn with the correct resolution e g 192 DPI Barcode cache The barcode images are temporarily cached on the web server see CacheType When barcodes are cached in memory then a BarcodeHttpHandler needs to be installed for the web application This achieved by adding a single line to the web config file of the application see BarcodeHttpHandler 2013 All rights reserved by TEC IT Datenverarbeitung GmbH Generated on Thu Jan 10 2013 15 40 08 for TBarCode NET 11 Developer Reference with doxygen 1 7 6 1 WWW TEC IT COM m Figure 13 Screenshot of TBarCode NET 11
12. have to remove the TextPosition attribute from the controls ASPX markup lt Barcode 0 He ee Hei Oi 6 8 API Reference The API documentation of the BarcodeControl can be found in the TBarCode NET 11 Developer Reference The web control is contained in the namespace TECIT TBarCode Windows D TBarCode NET 11 Developer Reference u Tene ee aos e gt 0 A g ai Hide Locate Back ar Stop Refresh Home E Font Print Options Contents Index Search Favortes override Unit Width get set Retrieves or sets the width of the barcode control Related Pages Namespaces Detailed Description QQ Classes Class List An ASP NET 2 0 control which renders a barcode Class Index E Q Class Hierarchy There are two ways to set the data of the barcode EI TECIT TBarCode Aztec E TECIT TBarCode Barcode The contents of the barcode can be set directly by using the property Barcode TECIT TBarCode Barcode Data The Barcode control can be bound to another control on the same page see property Source The contents of the source control will be encoded in the barcode TECIT TBarCode Web BarcodeCache E TECIT TBarCode Web BarcodeControl E TECIT TBarCode Windows BarcodeControl E TECIT TBarCode Web BarcodeDesigner E TECIT TBarCode BarcodeErors E TECIT TBarCode BarcodeException E TECIT TBarCode Web BarcodeHttpHandler E TECIT TBarCode We
13. 9 2 1 Visual C 2010 SP1 Runtime You may also have to deploy the runtime components of Visual C 2010 SP1 along with your application and or ensure they are installed on the target computer There are two options to install them You can install these components with the Microsoft Visual C 2010 SP1 Redistributable Package available at 32 Bit x86 version http www microsoft com en us download details aspx id 8328 64 Bit x64 version http www microsoft com en us download details aspx id 13523 The package installs all required runtime DLLs On Windows x64 this path contains the 64 Bit component For the 32 Bit component see C Program Files x86 WWW TEC IT COM Page 23 of 26 f you use a setup tool and your installer supports merge modules msm files you can add the required msm packages to your setup 32 Bit x86 Microsoft_VC100_CRT_x86 msm 64 Bit x64 Microsoft_VC100_CRT_x64 msm 9 2 2 Using the MSI installer from TEC IT As an alternative for distributing the required files along with your application you can install TBarCode NET from the TBarCode SDK MSI installer available from our web site When using the MSI installer from TEC IT you also have the option for a silent setup see FAQ TBarCode SDK Distribution How To Create a Silent Setup The MSI installer contains also the Visual C 2010 SP1 runtime files but no NET framework It registers the NET assemblies in the GA
14. ASSISTX PROJECT BUILD DEBUG TEAM SQL FORMAT TOOLS QG B aW P Google Chrome Debug EA PPPE A On Solution Explorer RX Default aspx cs Default aspx X Output o u t Search Solution Explorer Ctri Pr a1 Solution WebApplicationl 1 proj a E WebApplication1 b Properties 4 tal References am Antlr3 Runtime u AspNet ScriptManager j AspNet ScriptManager j DotNetOpenAuth AspNi u DotNetOpenAuth Core DotNetOpenAuth OAutl DotNetOpenAuth OAutt DotNetOpenAuth Openl DotNetOpenAuth Open a a EntityFramework a Microsoft AspNet Memt Microsoft AspNet Web a Microsoft CSharp s a Microsoft ScriptManage s a Microsoft ScriptManage Microsoft Web Infrastrus a System 1 a System ComponentMoc FeaturedContent Custom l 4 n Design a o een Design Split Source wt System Core Error List System Data i T 1 8 System Data DataSetExte A 2 Wamings sB System Drawing Description a m System EnterpriseService System Web 1 8 System Web Applicatior sB System Web DynamicDz System Web Entity a Systern Web Extensii 4 Solution Explorer Class View cc1 BarcodeControl BarcodeControli al lt hgroup title gt lt hl gt Find Results1 Find Symbol Results Error List Pending Changes _ _ _ _ _ _ ScriptManager Unnamed3 Quick Launch Ctrl Q TEST ANALYZE WINDOW HELP Any CPU AQ 2 Site Master Se
15. C and extends the PATH environment variable so that all native DLL dependencies are found gt At least for web applications the MSI installer may be a convenient option Make sure to restart IIS admin console command iisreset in order to update the DLL search path Please contact TEC IT Support if you need further assistance 9 2 3 Why Platform Specific Versions Why do we use or offer two different TEC IT TBarCode dll files one with platform x86 and one with platform x64 Why is there no version with platform Any CPU TBarCode NET internally relies on the TBarCode Library which is a native code DLL it is loaded on demand in the background In order to support both 32 bit and 64 bit platforms we have two different versions of TBarCode Library TBarCode11 dll and TBarcode11_x64 dll and therefore also two different platform targets for the TEC IT TBarCode dll NET assembly WWW TEC IT COM Page 24 of 26 10 Contact and Support Information TEC IT Datenverarbeitung GmbH Address Hans Wagnerstr 6 AT 4400 Steyr Austria Europe Phone 43 0 7252 72 720 Fax 43 0 7252 72 720 77 Email office tec it com Web http www tec it com FAQ http www tec it com support fag tbarcode Default aspx 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 Massachuse
16. Document This document explains how you can add barcodes to your NET projects with TBarCode NET The complete API application programming interface is described in the TBarCode NET Developer Reference 3 4 Restrictions of the Demo Version In the demo version the barcodes will be drawn with a demo hint That means that the word Demo or the phrase www tec it com is drawn partially over the barcode The demo hint does not influ ence the readability of the barcode in a negative way gt In special cases e g very small or high resolution barcodes you may want to test the pro duct without demo restrictions Please contact sales tec it com for a temporary license key gt For enabling the full featured version without the demo hints you can obtain a license key from TEC IT http www tec it com order gt For more information on licensing TBarCode please refer to chapter 8 WWW TEC IT COM Page 4 of 26 4 Installation 4 1 Requirements 4 1 1 Operating Systems The following operating systems are supported Microsoft Windows XP SP2 Microsoft Windows Server 2003 Microsoft Windows Vista Microsoft Windows Server 2008 2008R2 2011 Microsoft Windows 7 Microsoft Windows 8 Microsoft Windows Server 2012 4 1 2 NET Version IDEs TBarCode NET requires NET Framework 2 0 or higher It can be used with all IDEs supporting NET 2 x like Microsoft Visual Studio 20051 or newe
17. WWW TEC IT COM TBarCode NET Barcode Library for NET Version 11 29 January 2013 TEC IT Datenverarbeitung GmbH Hans Wagner 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 Disclaimer 3 Introduction 3 1 What is TBarCode SDK 3 2 What is TBarCode NET 3 3 Scope of this Document 3 4 Restrictions of the Demo Version 4 Installation 4 1 Requirements 4 1 1 Operating Systems 4 1 2 NET Version IDEs 4 2 Download and Setup 4 2 1 Installation Path 5 Barcode Form Control 5 1 Introduction 5 2 Create or Open a Project 5 3 Reference the Barcode Controls 5 4 Add Barcode to a Form 5 5 Adjust Properties 5 6 Finally Run the application 5 7 API Reference 6 Barcode Web Control 6 1 Introduction 6 2 Create Open a Website 6 3 Reference the Barcode Controls 6 4 Add Barcode to Form 6 5 Adjust Properties 6 6 Finally Preview Web Page in Browser 6 7 Known Problems 6 7 1 Error when resizing the control or changing a property 6 8 API Reference 7 Barcode Class 7 1 Introduction 7 2 Create a new Project 7 3 Add Reference to TBarCode 7 4 Render Barcodes 7 4 1 Add Barcode Object 7 4 2 Write custom OnPaint Method 7 5 Finally Run the application 7 6 Build Errors 7 6 1 Visual Studio 2010 with NET 4 Client Profile 7 7 API Reference 8 How to license TBarCode 8 1 License Types 8 2 License TBarCode 9 Redistributing TBarCode 9 1 Dependencies
18. Y Search Error List Description File Find Results 1 Find Symbol Results Error List Pending Changes Quick Launch Ctrl Q Pa Ax Toolbox Search Toolbox Pr gt All Windows Forms a b Common Controls b Containers p Menus amp Toolbars b Nata Server Explorer Toolbox Properties ax Formi System Windows Forms Form HBAL ILAR Click a DoubleClick MouseCaptureChangec MouseClick MouseDoubleClick ResizeBegin ResizeEnd Scroll E Appearance Paint Form1_Paint vx E Behavior Line Pr ChangeUlCues ControlAdded ControlRemoved FormClosed FormClosing HelpButtonClicked HelpRequested ImeModeChanged InputLanguageChange InputLanguageChangir Load v Paint Occurs when a control needs repainting Figure 17 Adding a Custom Paint Event Handler 3 Now we can use a Barcode object to render a barcode Add the following lines of code marked as bold C Sample using using using using using using using using System System Data System Drawing System Text TECIT TBarCode WWW TEC IT COM System Collections Generic System ComponentModel System Windows Forms Page 18 of 26 namespace WindowsApplicationl public partial class Form 2 Form Barcode barcode public Forml InitializeComponent SetStyle ControlStyles ResizeRedraw true MinimumSize new Size 100 100 Initialize barcode barcode new Barcode
19. a P A at a N DA Oa Solution Explorer QX Defaultaspx X Output E ax a Qg gt Default aspx gt gt Ri Test Test Projects WebApplication1 Default aspx Go Search Toolbox Pp a E oe SP je ve Search Solution Explorer Ctrl a mE m lt Page Title Home Page Language C MasterPageFile Site Master ae ae a Solution WebApplicationi 1 project 3 El lt asp Content runat server ID FeaturedContent ContentPlaceHolderID Fe t ee eeu 4 5 WebApplication1 46 lt section class featured gt b amp Properties 5 B lt div class content wrapper gt i Show All D m References 6 E lt hgroup class title gt i S gt fm Account 7 lt h1 gt amp Title gt lt hi gt I te n AE 8 lt h2 gt Modify this template to jump start your ASP NET appl Sort Items Alphabetically Eee 9 lt hgroup gt l Reset Toolbox gt m App Start 10 lt p gt E b fm Content u To learn more about ASP NET visit lt a href http asp ne i Beliy D E Images 12 The page features lt mark gt videos tutorials and samples lt r Delete Tab b im Scripts 13 If you have any questions about ASP NET visit A Beam gt About aspx 14 lt a href http forums asp net 18 aspx title ASP NET Fc i DI Bundle config a5 ae b A Contact aspx wide I Move Down Sa 17 lt section gt er 18 lt asp Content gt ImageButton B favicon ico 19 l lt asp Content runat server ID BodyContent ContentPlaceHolderID Mainc inenen b A Global asax 20 lt h3 g
20. arch Toolbox Pr Wizard a ei Xml Register Login b Data p Validation Home About Contact b Navigation h lanin Server Explorer Toolbox Properties ax BarcodeControll TECIT TBarCode Web BarcodeContro En AJF EnableViewState True a ErrorHandling ShowMessage SkinID ToolTip ValidateRequestMode Inherit ViewStateMode Inherit Visible True E Data v Expressions gt Barcode TECIT TBarCode Barcode lt cc1 BarcodeControl Barco gt ld Source lt q x amp layout Height 200px Search Error List Pr Width 200px File Line B Misc aD BarcodeControl1 Cache Harddisk CacheDirectory barcodecache CacheTime 60 D Programmatic name of the control Figure 10 BarcodeControl Place Holder on ASPX page WWW TEC IT COM Page 13 of 26 6 5 Adjust Properties The barcode placeholder is now visible on your ASPX page You can change the appearance position and size in the design view To change more barcode properties 1 Right click the barcode control and select Properties 2 Visual Studio s Properties dialog appears In the Properties dialog you can adjust the barcode properties such as barcode type check digit method module width etc 1 WebApplicationi Microsoft Visual Studio Administrator Quick Launch Ctrl Q O x FILE EDIT VIEW VASSISTX PROJECT BUILD DEBUG TEAM SQL FORMAT TABLE TOOLS TEST ANALYZE WINDOW HELP
21. ating an application using broup Drag an b Visual C E ASP NET Web Forms Application Visual C ee toolbox Windows Installer XML ce LightSwitch p3 ASP NET MVC 3 Web Application Visual C 4 Other Languages 2 cs b Visual Basic Di ASP NET MVC 4 Web Application Visual C 4 Visual C ce Windows amp ASP NET Dynamic Data Entities Web Application Visual C Web x ce gt Office fp ASP NET AJAX Server Control Visual C Cloud Reporting ce fag ASP NET AJAX Server Control Extender Visual C b SharePoint A Seh fp ASP NET Server Control Visual C Test i WCF Workflow SQL Server b Visual F b Other Project Types Samnles X gt Online Name WebApplication1 Location RATest Test Projects Browse Solution name Create directory for solution Add to Subversion 0K Cancel Solution Explorer Class View Find Results 1 Find Symbol Results Error List Pending Changes Server Explorer Toolbox Figure 7 Create a New Project 6 3 Reference the Barcode Controls To work with the barcode controls you first need to add them into Visual Studio 1 Open the Toolbox 2 Right click Standard and select Choose Items WWW TEC IT COM Page 11 of 26 DQ WebApplicationt Microsoft Visual Studio Administrator Quick Launch Ctrl Q FJ FILE EDIT VIEW VASSISTX PROJECT BUILD DEBUG TEAM SQL TOOLS TEST ANALYZE WINDOW HELP iB lw P Google Chrome Debug AnyCPU AQ H t
22. b BarcodeRemover E TECIT TBarCode Web CacheablelmageFormats The Refresh Button By default the control contains a Refresh button that needs to be clicked by a user to update the barcode The Refresh button can be disabled and hidden In this case the application needs to call Refresh to update the barcode E TECIT TBarCode CodablockF l E TECIT TBarCode Code20f5 Barcode Resolution E TECIT TBarCode Composite Symbol The barcode can be optimized for different resolutions The default resolution is the screen E TECIT TBarCode CustomDrawingEventArgs resolution 96 dpi This ensure that the barcode will be readable directly on the screen By E TECIT TBarCode DataMatrx setting a higher resolution see Barcode TECIT TBarCode Barcode Dpi the barcode can B TECIT TBarCode Interop DllimportPortableAttribi be optimized for other output devices E TECIT TBarCode DotCode For example when setting 600 dpi the barcode in most cases won t be readable in the web E TECIT TBarCode Interop DoubleRectangle E TECIT TBarCode Interop GdiRectangle E TECIT TBarCode HanXin E TECIT TBarCode Web lmageBag E TECIT TBarCode Interop LibLoader E TECIT TBarCode Interop LOGFONT E TECIT TBarCode Interop LOGFONTA E TECIT TBarCode MacroPdf417 E TECIT TBarCode MaxiCode E TECIT TBarCode MicroPdf E TECIT TBarCode MicroQRCode E TECIT TBarCode Pdf417 E TECIT TBarCode QRCode E TECIT TBarCode QuietZones E TECIT
23. de interface methods properties enumerations and events These documents are included in the setup Start Menu TEC IT TBarCode 11 Manuals A 4 FAQ Frequently Asked Questions Check out the FAQ on our web site http www tec it com support fag tbarcode Default aspx WWW TEC IT COM Page 26 of 26
24. e correct version according to your platform target see also 9 2 3 WWW TEC IT COM Page 17 of 26 7 4 Render Barcodes There are various ways to render a barcode using TBarCode Here we will create a custom Paint method that draws a barcode 7 4 1 Add Barcode Object 7 4 2 Write custom OnPaint Method 1 Right click the form in Design View and select Properties 2 Inthe Properties dialog select Events and double click Paint in the category Appearance to create a custom Paint method as WindowsFormsApplication2 Microsoft Visual Studio Administrator BUILD Start FILE EDIT VIEW VASSISTX PROJECT DEBUG Q B akm 9 Solution Explorer ne A o Qa 1 Search Solution Explorer Ctrl sa2inos eyeg p fa Solution WindowsFormsApplication2 1 project 4 WindowsFormsApplication2 b Properties 4 tal References s a Microsoft CSharp sE System aB System Core m System Data a System Data DataSetExtensions a System Deployment System Drawing System Windows Forms System Xml sa System Xml Ling m TECIT TBarCode DI App config a Formi cs gt 2 Formi Designer cs T Formi resx b fg Form b Program cs Solution Explorer VA View VA Outline Class View D fal D of 7a YY te PE TOOLS TEST Debug AnyCPU X a ou Forml cs Design X Output ANALYZE WINDOW HELP aa TEAM SQL Forml cs aF Form Sen Error List
25. ect contains also the Barcode Web Control You actually need to reference the full framework to solve this issue Change your target framework to NET framework 4 in the project settings Windowsformsappicatis gt Application N A Build Build Events aia Isa WindowsFormsApplication1 Debug x Target framework Resources NET Framework 4 X Figure 19 Visual Studio Target framework settings See also MSDN How to Target a Specific NET Framework Version or Profile Troubleshooting NET Framework Targeting Errors WWW TEC IT COM Page 20 of 26 7 7 API Reference The API documentation about the Barcode class can be found in the TBarCode NET 11 Developer Reference The class is contained in the namespace TECIT TBarCode E TBarCode NET 11 Developer Reference A A e gt Hide Locate Back Forward Stop Refresh Home Contents index Search Favortes Introduction Related Pages F Namespaces E QJ Casses Class List Class Index E QQ Class Hierarchy E TECIT TBarCode Aztec E TECIT TBarCode Barcode TECIT TBarCode Web BarcodeCache E TECIT TBarCode Web BarcodeControl E TECIT TBarCode Windows BarcodeControl E TECIT TBarCode Web BarcodeDesigner E TECIT TBarCode BarcodeEmors E TECIT TBarCode BarcodeException E TECIT TBarCode Web BarcodeHttpHandler E TECIT TBarCode Web BarcodeRemover E TECIT TBarCode Web CacheablelmageFormats
26. erence the 64 bit component 4 Select TECIT TBarCode dll and click OK DQ WindowsFormsApplication2 Microsoft Visual Studio Administrator 5 FILE EDIT VIEW VASSISTX PROJECT BUILD DEBUG TEAM SQL TOOLS TEST ANALYZE WINDOW HELP Baus D gt Start Debug Any CPU AQ a t gt wae A Oo Mg Formi cs Design X Output Subversion Info ax o 2 Qd a a Search Solution Explorer Ctri p a9 Formi ICEA Egy saunos eeg F Solution WindowsFormsApplication2 1 project 4 E WindowsFormsApplication2 D Properties CEE x Reference b Forml c Service Reference b Progran Manage NuGet Packages Scopeto This 1 New Solution Explorer View o 5 Error List x Y Search Error List P Description File Line Solution Explorer VA View VA Outline Class View Find Results1 Find Symbol Results Error List Pending Changes Figure 15 Add Reference in Solution Explorer sarnado d xogjooy sa10 dq ans r Reference Manager WindowsFormsApplication2 2 gt Assemblies Search Browse Ctri E Pr gt Solution Name Path Ka gt COM v TECIT TBarCode dil C Program Files Common Files TEC IT TBarCode 11 0 TECL TECIT TBarCode dil Created by 4 Browse TEC IT Datenverarbeitung GmbH File Version Recent 11 0 0 14212 Browse OK Cancel uu Figure 16 Add TECIT TBarCode dll as Reference 5 Please make sure to reference th
27. g TBarCode to the Toolbox This limitation applies to the Web Control in the Toolbox only WWW TEC IT COM Page 12 of 26 Silverlight Components Name a NET Framework Components BackgroundWorker Windows Phone Components WPF Components COM Components System Activities Components Namespace System ComponentModel Assembly Name BaseUserControl BehaviorEditorPart BindingNavigator BindingSource Bookmark BorderPanel n n n CIT TBarCode Web cn Code Wind Microsoft TeamFound ation Client System Web UI WebControls WebParts System Windows Forms System Windows Forms Microsoft Office Tools Word Microsoft TeamFoundation Client ae oor r re ear bar ode Microsoft TeamFoui System Web ndation Clien System Windows Forms System Windows Forms Microsoft Office Tools Word v9 0 Microsoft TeamFoundation Clien _ ae or r oe cr Filter BarcodeControl Language Invariant Language Invariant Country Version 11 0 0 0 Figure 9 The Choose Toolbox Items Dialog with BarcodeControls 6 4 Add Barcode to Form Now simply drag and drop the BarcodeControl from the Toolbox onto your ASPX page A place holder appears where the barcode will be rendered DQ WebApplicationl Microsoft Visual Studio Administrator FILE EDIT VIEW V
28. ies RightToLeft No er zax Te barcodeControll UseWaitCursor False Yr Search Error List S Behavior Description File Line AllowDrop False ContextMenuStrip none Enabled True ErrorHandling ShowMessage ImeMode NoControl TabIndex 0 nat Text 4 gt Solution Explorer Class View Find Results1 Find Symbol Results Error List Pending Changes The text associated with the control Figure 5 Windows Form with Barcode Control 5 6 Finally Run the application You have to click Start Debugging to run the application 5 7 API Reference The API documentation of the BarcodeControl can be found in the TBarCode NET 11 Developer Reference The Windows Form control is contained in the namespace TECIT TBarCode Windows WWW TEC IT COM Page 9 of 26 amp TBarCode NET 11 Developer Reference fee SABA RE mmes TBarCode NET 11 Developer Reference TBarcode ner E Related Pages a w Namespaces Namespace List TET amp TECIT TBarCode amp TECIT TBarCode Interop amp TECIT TBarCode Web E QQ TECIT TBarCode Windows E BarcodeControl E EmorHandling B Namespace Members Classes Files 11 Windows TECIT TBarCode Windows Package TECIT TBarCode Windows Classes class BarcodeControl A Windows Forms control which renders a barcode More Enumerations enum ErrorHandling Ignore ShowMessage ThrowException The type of error handling More Classes En
29. ion Visual C a Other Languages 5 E cs gt Visual Basic PLN Class Library Visual C 4 Visual C g ct Windows gn Portable Class Library Visual C Web ct gt Office ass WPF Browser Application Visual C Cloud m Reporting j Empty Project Visual C b SharePoint N 3 aes ce ae 30 Windows Service Visual C ce ae ay WPF Custom Control Library Visual C lorkflow m SQL Server 2 b Visual F a WPF User Control Library Visual C b Other Project Types c re ers a Windows Forms Control Library Visual C b Online Name WindowsFormsApplication2 Location R Test Test Projects Browse Solution name C Create directory for solution U Add to Subversion OK J Cancel Solution Explorer VA View VA Outline Class View Find Results1 Find Symbol Results Error List Pending Changes ax xoqgjoo sa10jdxq savas Figure 14 Create a New Project WWW TEC IT COM Page 16 of 26 7 3 Add Reference to TBarCode In order to use the Barcode class the project needs to reference the TECIT TBarCode dll 1 Inthe Solution Explorer right click References and choose Add Reference 2 Inthe Add Reference dialog switch to the page Browse 3 Navigate to the installation folder of TBarCode usually C Program Files Common Files TEC IT TBarCode 1 1 x see also 4 2 1 Note The Windows x64 setup installs both versions the 32 bit component and the 64 bit component For x64 target platforms please ref
30. l Studio Administrator Quick Launch Ctrl Q Hoax FILE EDIT VEW VASSISTX PROJECT BUILD DEBUG TEAM SQL TOOLS TEST ANALYZE WINDOW HELP B aa gt Start Debug AnyCPU AQ E gt oa Bo A On Solution Explorer ax Forms Design e X Output Toolbox un ar GA f coali enam o sE enone a IB Search Solution Explorer Cute p Fomi elek Se 3 fl Solution WindowsFormsApplicationl 1 project SerialPort AE msec Sonne z b ma References Spontane D App config Splitter 3 4 Forml cs StatusStrip 8 D2 Formi Designer cs TabControl R a Formi ree 3 TableLayoutPanel eee E TextBox Timer EE ToolStrip DE ToolStripContainer ta ToolTip O TrackBar E TreeView 8 VscrollBar o WebBrowser gt Common Controls b Containers gt Menus amp Toolbars gt Data gt Components gt Printing gt Dialogs gt Reporting gt WPF Interoperability gt Visual Basic PowerPacks 4 General There are no usable controls in this group Drag an item onto this text to add it to the toolbox Solution Explorer VA View VA Outline Class View Find Results 1 Find Symbol Results Error List Pending Changes Figure 4 Toolbox with BarcodeControl 5 5 Adjust Properties The barcode is now visible on your Windows Form You can change the appearance position and size in the design view WWW TEC IT COM Page 8 of 26 To change more barcode properties 1 Right click the barcode control and select Properties 2 Visual Studio s Pr
31. operties dialog appears In the Properties dialog you can adjust the barcode properties such as barcode type check digit method module width etc DQ WindowsFormsApplication Microsoft Visual Studio Administrator Quick Launch Ctrl Q FILE EDIT VIEW WVASSISTX PROJECT BUILD DEBUG TEAM SQL FORMAT TOOLS TEST ANALYZE WINDOW HELP Q B au 9 gt Start Release Any CPU A Q 2 eh gt ea Doe i a ou Solution Explorer ax Formi cs Design x Output Toolbox SAK ln 08ml E Search Toolbox P me G TrackBar a Search Solution Explorer Ctrl a Pr a2 Form a TreeView fal ce ee 3 VscrollBar a indowsFot li tie en EI WebBrowser b Properties na 4 tel References Wit BarcodeControl mH System b Common Controls a Sen Den Server Explorer Toolbox a System Deployment Properties ax E System Design barcodeControli TECIT TBarCode Windows BarcodeCt wit System Drawing View Code Ctrl Alt 0 Car em System Web az 24 A F 1 a System Windows Forms E Accessibility gt System Xml AccessibleDescription m TECIT TBarCode AccessibleName A App config A bleRol Default 4 mia a barcodeCont Lock Controls dienaa b T Formi Designer cs Select Formi BackColor 255 255 255 BS I Forml resx N Ga Ctrl x Backgroundimage none So B cory eyes BackgroundImageLayout Tile che Cursor Default Font Arial 12pt es DEE eS ForeColor E00 Propert
32. r 4 2 Download and Setup Download TBarCode SDK from http www tec it com Download gt TBarCode SDK and execute the setup application Depending on your selection one or more of the following components are installed along with documentations and sample applications TBarCode NET For NET developers Developer manual and API reference are included in the setup TBarCode OCX A barcode ActiveX control for Microsoft Office users and for software developers User manual and API reference are included in the setup TBarCode Library For software developers Developer manual and API reference are included in the setup Administrative rights are required to install TBarCode SDK TBarCode OCX is an ActiveX control ActiveX controls must be registered within the Microsoft Windows operating system before they can be used This registration is executed automatically by the setup application On demand you can register the OCX file manually with the command line tool regsvr32 exe 4 2 1 Installation Path The default installation path of the library files is C Program Files Common Files TEC IT TBarCode 11 0 Please note that the x64 setup installs also a 32 bit version of the Barcode Library to C Program Files x64 Common Files TEC IT TBarCode 11 0 1 VS2003 is not supported because it uses NET 1 1 WWW TEC IT COM Page 5 of 26 5 Barcode Form Control 5 1 Introduction This chapter explain
33. r 6 A 4400 Austria t 43 0 7252 72720 f 43 0 7252 72720 77 http www tec it com WWW TEC IT COM Page 3 of 26 3 Introduction 3 1 What is TBarCode SDK TBarCode SDK is a set of professional tools for the generation of barcodes More than 100 different symbologies linear barcodes 2D barcodes and stacked barcode variants can be printed or exported as graphics files All industry formats are supported The barcodes can be generated in the highest possible resolution and quality TBarCode SDK is available in several versions for different operating systems applications and programming environments The following versions are included in this setup TBarCode NET A barcode NET library for software developers It includes a bar code class and barcode controls for Windows Forms and ASP NET 2 0 TBarCode OCX A Microsoft ActiveX compliant barcode control It can be used with Microsoft Office applications and for software development TBarCode Library A bar code DLL for Windows platforms for software developers A DLL for Windows CE Windows Mobile is available on request Please contact us with your platform details 3 2 Whatis TBarCode NET TBarCode NET is NET library for barcode generation This library contains a NET class for creating or printing bar codes a Barcode Control for Windows Forms a Barcode Control for ASP NET 2 0 Web Applications 3 3 Scope of this
34. rCode when adding TBarCode to the Toolbox This limitation applies to the Windows Forms Control in the Toolbox only WWW TEC IT COM Page 7 of 26 Silverlight Components Windows Phone Components WPF Components NET Framework Components COM Components I System Activities Components Name a Namespace Assembly Name je AdRotator System Web UI MobileControls System Web Mobile W AdRotator System Web Ul WebControls System Web W AppearanceEditorPart System Web Ul WebControls WebParts System Web Assemblyinstaller System Configuration Install System Configuration Install v BackgroundWorker System ComponentModel System v BarcodeControl TECIT TBarCode Web TECIT TBarCode BarcodeControl TECIT TBarCode Windows TECIT TBarCode m BaseUserControl Microsoft TeamFoundation Client Microsoft TeamFoundation Clien BehaviorEditorPart System Web Ul WebControls WebParts System Web A Bon rn A co urs r eoa ura r m Filter BarcodeControl Language Invariant Language Invariant Country Version 11 0 0 0 Figure 3 The Choose Toolbox Items Dialog with BarcodeControls 5 4 Add Barcode to a Form Now simply drag and drop the BarcodeControlfrom the Toolbox onto your Windows form DQ WindowsFormsApplicationl Microsoft Visua
35. s how to insert a barcode into a NET Windows Form TBarCode SDK contains a Windows Form control called BarcodeControl which can easily be added to any NET form Requirements to work through the tutorial TBarCode 11 installed Visual Studio 2005 or a Visual Studio 2005 Express Edition or newer versions Basic knowledge about any NET language VB NET C etc 5 2 Create or Open a Project Start Visual Studio and open an existing Windows Forms project or create a new project 1 Select File New Project 2 Choose Windows Forms Application and click Ok DQ Output Microsoft Visual Studio Administrator Quick Launch Ctrl Q FILE EDIT VIEW VASSISTX PROJECT DEBUG TEAM SQL TOOLS TEST ANALYZE WINDOW HELP i al a gt Attach aa fl Ma Qn Proj 2 x Solution Explorer Ne Project en na ax 8 amp gt Recent NET Framework 4 5 Sort by Default le Search Installed Templates Ctrl E Pr bd 4 Installed 51 a o Ej Windows Forms Application Visual C Type Visual C a 4 Templates A project for creating an application with a 2 L i 4 Visual C mj WPF Application Visual C Windows Forms user interface 3 ATL bet g 2 cs CLR a Console Application Visual C General ce MFC gi Class Library Visual C Test ad ce Win32 PLN Portable Class Library Visual C Windows Installer XML 3 ce LightSwitch amp WPF Browser Application Visual C 4 Other Languages u gt Visual Basic wi 2 Empty
36. t We suggest the following lt h3 gt BD packages config 21 3 ol class round gt A label b FE Site Master 22 lt li class one gt LinkButton PD A Web config 23 lt h5 gt Getting Started lt h5 gt EE ListBox u 24 ASP NET Web Forms lets you build dynamic websites using a far Sr Babra Toolbox 25 A desien surface and hundreds of controls and components let E Eisin D is Properties ax B Design Split Source DOCUMENT 7 Error List ax a Y Search Error List P amp ASP NET PA Description File Line Culture Debug EnableSessionState Language ce MasterPageFile Site Master StyleSheetTheme v ASP NET 4 gt Solution Explorer Class View Find Results1 Find Symbol Results Error List Pending Changes Figure 8 The Toolbox Context Menu 3 Inthe Choose Toolbox Items dialog click the Browse button 4 Inthe Open dialog navigate to C Program Files Common Files TEC IT TBarCode 1 1 x or the path you have chosen during setup On Windows x64 systems you should add the 32 bit version of TBarCode in C Program Files x86 Common Files TEC IT TBarCode 1 1 x otherwise you may get the error not a Microsoft Net module 5 Select TECIT TBarCode dil and click Open 6 Two new controls named BarcodeControl should show up in the Choose Toolbox Items dialog Make sure they are checked and click OK Since Visual Studio itself is compiled as a 32 bit application you should reference the x86 version of TBarCode when addin
37. tion on how to use them The following issues are discussed Supported barcode symbologies with detailed information on each barcode type Check digits general information and available check digits methods Print ratio and ratio hints or Ratio Format Format strings Escape sequences and control characters Application Identifiers MaxiCode and UPS standards The Barcode Reference is available as separate document on the TEC IT web site http www tec it com gt Support gt Knowledge Base The direct URL is as follows http www tec it com download PDF Barcode Reference EN pdf A 2 Samples TEC IT provides a number of sample applications which allow customers to start with the develop ment of their own applications and or documents as fast as possible Sample applications are included in the TBarCode11 setup Start Menu TEC IT TBarCode 11 Examples or can be downloaded from the TEC IT web site http www tec it com download area gt Make sure TBarCode SDK was installed before trying to run any sample application A 3B User Manual For user of Microsoft Office one additional document Is provided User Manual A description on how to use TBarCode OCX the Microsoft ActiveX compliant Barcode Control in applications which are part of Microsoft Office Microsoft Word Microsoft Excel Microsoft Access and Microsoft InfoPath are discussed API Reference A detailed description of the TBarCo
38. tts 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 and 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 WWW TEC IT COM Page 25 of 26 Appendix A Related Downloads A 1 Barcode Reference The document Barcode Reference provides an overview over supported barcode types and gives additional informa
39. umerations 2013 All rights reserved by TEC IT Datenverarbeitung GmbH Generated on Thu Jan 10 2013 15 40 08 for TBarCode NET 11 Developer Reference with doxygen 1 7 6 1 Figure 6 Screenshot of TBarCode NET 11 Developer Reference WWW TEC IT COM Page 10 of 26 6 Barcode Web Control 6 1 Introduction This chapter explains how to insert a barcode into an ASP NET web site TBarCode SDK contains a web control called BarcodeControl which can easily be added to any ASP NET page Requirements to work through the tutorial TBarCode 11 installed Visual Studio 2005 or a Visual Studio 2005 Express Edition or newer versions Basic knowledge about any NET language VB NET C etc 6 2 Create Open a Website Start Visual Studio and open an existing ASP NET web project or create a new one 1 Select File gt New Project 2 Choose ASP NET Web Forms Application and click OK DQ Start Page Microsoft Visual Studio Administrator Quick Launch Ctrl Q O x FILE EDIT VIEW VASSISTX DEBUG TEAM SQL TOOLS TEST ANALYZE WINDOW HELP B l eo D Attach Ae i gt fl Do Qn New Project z Solution Explorer Proiect w wa Gun ax Recent NET Framework 4 5 Sort by Default ee Search Installed Templates Ctrl E Pr Pr 4 Installed ce Gal ASP NET Empty Web Application Visual C Type Visual C 4 Templates A project for cre
40. widthReduction 0 user s BarWidthReductionUr Percent un System Data DataSetEte Y7 adia tai BearerBarType None B System Drawing Description File Line BearerBarWidth a HB System EnterpriseSenvice CheckdigitMethod Standard u System Web CodablockF TECIT TBarCode Codabloch m System Web Applicatior Code20f5 TECIT TBarCode Code20f5 E System Web DynamicDz Codepage Default u System Web Entity CodepageCustom 0 r 3 System Web Extensions _ FREE 4 gt The barcode settings Solution Explorer Class View Find Results1 Find Symbol Results Error List Pending Changes Figure 11 Properties of Barcode Control 6 6 Finally Preview Web Page in Browser Please click Start Debugging to preview the web page in the browser gt http localhost 49375 Defa O BOX Home Page My ASP NET X x sngt E et Home About Contact Enter barcode data 2013 My ASP NET Application Figure 12 Web Page with Barcode Control WWW TEC IT COM Page 14 of 26 6 7 Known Problems 6 7 1 Error when resizing the control or changing a property When resizing the control in design mode or changing a property of the bar code control you may receive the following error message when building or running the project Parser Error Message Cannot create an object of type System Drawing RectangleF from its string representation X 0 Y 0 Width 0 Height 0 for the TextPosition property As a workaround you
Download Pdf Manuals
Related Search
Related Contents
HR100-CRM System Board User`s Manual - DFI-ITOX Inner Finisher-A1 Inner Finisher Additional Tray サイボウズ KUNAI for Android マニュアル Operating instructions OT DMX...350/700 DIM SO Technical Manual dreamGEAR 7-In-1 Fitness Bundle for Wii Fit 空 間 光 伝 送 装 置 取扱説明書 Copyright © All rights reserved.
Failed to retrieve file