Nasosoft Barcode for.net

Size: px
Start display at page:

Download "Nasosoft Barcode for.net"

Transcription

1 Nasosoft Barcode for.net

2 Table of Contents Overview of Nasosoft Barcode for.net 1 Nasosoft Barcode for.net Features... 1 Install Nasosoft Barcode for.net... 4 System Requirements... 4 Install and Uninstall Nasosoft Barcode for.net... 5 Deploy Nasosoft Barcode for.net... 5 Getting Started with Nasosoft Barcode for.net 6 Download and Evaluate Nasosoft Barcode for.net... 6 Build your First App with Nasosoft Barcode for.net... 7 Explore and Study Code Samples... 8 How to Get Answers and Technical Support... 8 Ask Your Questions on Forum... 8 Get FREE Technical Support... 8 Request Demo or Code Samples for FREE... 9 Request 30 Days FREE Trial License... 9 Barcode Object Model 10 BarcodeObject Class BarcodeStyle Class BarcodeWriter Class BarcodeImage Class BarcodeReader Class Create Barcode Images 16 Working with BarcodeImage Class Save a Barcode bitmap to Specified Path Save a Barcode bitmap to Specified Stream Save a Barcode image to Specified Image Format Working with BarcodeStyle Class Change TopLable Style using BarcodeStyle.TopLabel Change Barcode Image Size using BarcodeStyle.ImageWidth Change Barcode Color using ForeColor and BackgroundColor Rotate a Barcode Image Working with BarcodeWriter Class Draw a barcode to the specified Graphics instance Read Barcode Images 24 Working with BarcodeReader Classes Read a barcode image with Specified Path Read a barcode image with Specified Stream Read a barcode image with Specified Bitmap object Barcodes in ASP.NET Applications 26 Working with BarcodeWebControl Class Barcodes in Windows Form Applications 33 i

3 Working with BarcodeWinControl Classes Barcodes in SQL Server Reporting Services 48 Add Barcode to Your Report Drag and Drop Barcode to Report Working with Barcode Designer Create Your First Barcode Report Configure Barcode for Reporting Services Configure with Barcode Configuration Tool Manually Configure Visual Studio Manually Configure SQL Server 2008 Reporting Services Code128 Barcode 72 Code128 Overview Code128 Code Sets How to Create Code 128 Barcode through.net Windows Form Control in C# or VB.NET? How to Create Code 128 Barcode Image in.net class? How to Save Code 128 Barcode Image using.net Barcode Generator Windows Control? Code128 Barcode Settings Code39 Barcode 74 Code39 Overview Code39 Standard and Code39 Extended How to Create Code 39 Barcode through.net Windows Form Control in C# or VB.NET? How to Create Code 39 Barcode Image in.net class? How to Save Code 39 Barcode Image using.net Barcode Generator Windows Control? Code39 Barcode Settings Code39 Barcode Style Settings Code93 Barcode 76 Code93 Overview Code93 Standard and Code93 Extended How to Create Code 93 Barcode through.net Windows Form Control in C# or VB.NET? How to Create Code 93 Barcode Image in.net class? How to Save Code 93 Barcode Image using.net Barcode Generator Windows Control? Code93 Barcode Settings Code39 Barcode Style Settings EAN13 Barcode 78 EAN13 Overview EAN13 Barcode Structure How to Create EAN13 Barcode through.net Windows Form Control in C# or VB.NET? How to Create EAN13 Barcode Image in.net class? i

4 How to Save EAN13 Barcode Image using.net Barcode Generator Windows Control? EAN13 Barcode Settings FAQ 81 Resources 82 i

5 Overview of Nasosoft Barcode for.net Welcome to Nasosoft Barcode for.net. Nasosoft Barcode for.net is a suite of powerful barcode components that gives you the ability to create and read different type of barcode images with Microsoft.NET technology. Nasosoft Barcode for.net provides a set of barcode components, supporting Windows Form application, ASP.NET application, Windows Foundation Framework (WPF) application, SQL Server Reporting Service, Windows Phone and etc. Nasosoft Barcode for.net supports most of the popular industry barcode standards, including 1D, 2D and Post barcodes. Nasosoft Barcode for.net helps.net programmers to develop professional barcode creating and recognizing applications more quickly than ever before. This document provides a programming guide of Nasosoft Barcode for.net, with an emphasis on new and improved features. Nasosoft Barcode for.net Features Platforms Feature Description.NET Framework v2.0, Nasosoft Barcode for.net supports.net Framework 2.0..NET Framework v3.0, Nasosoft Barcode for.net supports.net Framework 3.0..NET Framework v3.5, Nasosoft Barcode for.net supports.net Framework 3.5..NET Framework v4.0, Nasosoft Barcode for.net supports.net Framework 4.0. Mono, Nasosoft Barcode for.net supports Mono on Windows and Linux. Barcode Types 1

6 Feature Autrialia Post Barcode Bookland Barcode Codabar Barcode Code11 Barcode Code39 Barcode Code93 Barcode Code128 Barcode EAN8 Barcode EAN13 Barcode IATA 2 Of 5 Barcode Intelligent Mail Barcode Interleaved 2 Of 5 Barcode Matirx Barcode MSI Barcode Planet Barcode Postnet Barcode Standard 2 Of 5 Barcode UPCA Barcode UPCE Barcode PDF 417 Barcode Feature Formatting Text Font 2

7 Text Alignment Text Color Background Color Rotation Angle Border Margin Image Size Barcode Width and Height Customized Label Feature Printing Resolution Auto Size Graphics Unit Feature Image Formats JPEG BMP PNG GIF TIFF Metafile Reporting Services Platform 3

8 Feature SQL Server 2005 SQL Server 2008 SQL Server 2008 R2 Description... Install Nasosoft Barcode for.net System Requirements Operating Systems Operating System Microsoft Windows 2000 Microsoft Windows XP (x86 and x64) Microsoft Windows Server 2003 (x86 and x64) Microsoft Windows Server 2003 R2 (x86 and x64) Microsoft Windows Server 2008 (x86 and x64) Microsoft Windows Server 2008 R2 (x86 and x64) Microsoft Windows Vista (x86 and x64) Microsoft Windows 7 (x86 and x64) Ubuntu Platforms Platforms Microsoft.NET Framework 2.0 Microsoft.NET Framework 3.0 Microsoft.NET Framework

9 Microsoft.NET Framework 4.0 Mono Development Tools / IDE Development Tools /IDE Microsoft Visual Studio 2005 Microsoft Visual Studio 2008 Microsoft Visual Studio 2010 Borland C# Builder Mono Develop Sharp Develop Install and Uninstall Nasosoft Barcode for.net Nasosoft Barcode for.net is distributed as a part of Naososoft.NET Components MSI installer. You can use the installer to install and uninstall the components. The installer performs following tasks: Copy the Nasosoft Barcode component assemblies Copy the sample projects with source code Install the API documentation and programming guide. Deploy Nasosoft Barcode for.net Nasosoft Barcode for.net supports XCOPY deployment like other typical.net components. You can simply copy the Nasosoft Barcode assemblies to your application bin folder. 5

10 Getting Started with Nasosoft Barcode for.net This section contains basic background information that will help you understand and build your first.net application with Nasosoft Barcode for.net. Download and Evaluate Nasosoft Barcode for.net Nasosoft Barcode for.net is a collection of all the barcode components package from Nasosoft, which includes: Nasosoft Barcode for ASP.NET Nasosoft Barcode for Windows Forms Nasosoft Barcode for Windows Presentation Framework Nasosoft Barcode for SQL Server Reporting Services Nasosoft Barcode for Windows Phone Nasosoft Barcode Reading for.net Download and install the Nasosoft Barcode for.net Components Suite. Note Before you install Nasosoft Barcode for.net Components Suite, you need to install.net Framework 2.0 or later version, which you can download at Microsoft Download Center. The evaluation copy of the Nasosoft Barcode for.net provides fully functions with watermarks injection. 6

11 Barcode with watermarks injection injection Barcode without watermarks Build your First App with Nasosoft Barcode for.net Below tutorial walks-through how to create, build and run your first.net application using C#. Please follow the step by step tutorial to create a barcode application: 1. Create a new instance of Code39StandardBarcode class 2. Set the style of the barcode 3. Create a new instance of BarcodeImage class 4. Save the barcode to a bitmap. Example: [C#] Code39StandardBarcode b = new Code39StandardBarcode(" " ); b.barcodestyle.textalignment = StringAlignment.Center; b.barcodestyle.toplabel.text = "Code39 Standard Barcode"; b.barcodestyle.toplabel.visible = true; b.barcodestyle.toplabel.textalignment = StringAlignment.Center ; b.barcodestyle.imagewidth = 100; BarcodeImage image = new BarcodeImage(b); image.save("code39standardbarcode.bmp"); [VB.NET] 7

12 Dim b Code39StandardBarcode = new Code39StandardBarcode(" ") b.barcodestyle.textalignment = StringAlignment.Center b.barcodestyle.toplabel.text = "Code39 Standard Barcode" b.barcodestyle.toplabel.visible = true b.barcodestyle.toplabel.textalignment = StringAlignment.Center b.barcodestyle.imagewidth = 100 Dim image BarcodeImage = new BarcodeImage(b) image.save("code39standardbarcode.bmp") Explore and Study Code Samples The code samples for Nasosoft Barcode for.net are included in the MSI setup package. You can explore and build the code sample easily. How to Get Answers and Technical Support Ask Your Questions on Forum We have product forums for technical support and discussion. Our developers and technical support engineers are responsive to reply the posts on the forums. If you have any questions about Nasosoft Barcode for.net, please feel free to post your questions or concerns on our forums. We will get back to your timely. Note You need to register an account on our website in order to get the permission to submit your questions. Get FREE Technical Support We also provide FREE support service to our customers. If you have any questions about Nasosoft Barcode for.net, please feel free to your questions or concerns to sales@nasosoft.com. This support service is completely FREE. It is available to all our product users and customers. You don t need to pay for it. You don t need to purchase any of our products. If you are using Nasosoft Barcode products, feel free to submit your problems in s to sales@nasosoft.com. 8

13 Request Demo or Code Samples for FREE We understand that people have different and variable product scenarios for barcode programming. Our code samples and demo cannot cover all the possible product scenarios. Therefore, we are more than glad to help our customers to create demos or code samples. Please feel free to submit your specific product scenarios or requirements on our forums or by Our developers and support engineers will develop the demo and code samples for your reference. Request 30 Days FREE Trial License You can get 30 days Trial License for free by submitting your request by Our sales will get back to you within 2 business days. 9

14 Barcode Object Model To develop barcode solution that use Nasosoft Barcode for.net, you can interact with the objects provides by the Nasosoft Barcode object model. Each of barcode type maps to a barcode object in the Nasosoft Barcode object model. For example, Code128Barcode object presents the implementation for Code 128 Barcode Specification; Pdf417Barcode object presents the implementation for the PDF 417 Barcode Specification. The Nasosoft Barcode object model closely follows the industry Barcode Specifications. You can easily understand the properties of the barcode object by mapping the barcode specification document to the Nasosoft Barcode object model. The BarcodeWriter and BarcodeReader class is important because you need to use them to generate a barcode image from a barcode object or recognize a barcode from the images. Each of these objects has many methods and properties that allow you to manipulate and interact with it. 10

15 Nasosoft Barcode object model provides many objects with which you can interact. The following section briefly describes the top-level objects and how they interact with each other. These include: Barcode object BarcodeStyle object BarcodeImage object BarcodeWriter object BarcodeReader object BarcodeObject Class The BarcodeObject is the base class for all barcode objects. It presents a common barcode object with the properties like barcode type, barcode data. When you create a barcode image, you first create a specified barcode object. For example, you create a Code128Barcode object to create a barcode image. 11

16 12

17 BarcodeStyle Class The BarcodeStyle represents the style of a barcode image, for example, image size, fonts, colors, rotation and etc. If you want to set the style of a barcode image, you need to use BarcodeStyle object to modify the default settings. 13

18 14

19 BarcodeWriter Class The BarcodeWriter represents an image writer that can write a barcode image to specified image or graphics. You can use BarcodeWriter to draw barcode images to the specified Graphic objects. BarcodeImage Class The BarcodeImage represents a barcode image. You can use it to easily save the barcode into images with specified image format, file name, and etc. BarcodeReader Class The BarcodeReader represent a barcode reader that can recognize a barcode data from a given image. 15

20 Create Barcode Images This section contains several topics about how to create barcode images. Working with BarcodeImage Class The BarcodeImage class provides many convenient methods to create a barcode image. With specified file location and file format type, you can generate a barcode image easily. Save a Barcode bitmap to Specified Path Code Example: [C#] Code39StandardBarcode b = new Code39StandardBarcode(" " ); b.barcodestyle.textalignment = StringAlignment.Center; b.barcodestyle.toplabel.text = "Code39 Standard Barcode"; 16

21 b.barcodestyle.toplabel.visible = true; b.barcodestyle.toplabel.textalignment = StringAlignment.Center ; b.barcodestyle.imagewidth = 100; BarcodeImage image = new BarcodeImage(b); image.save("code39standardbarcode.bmp"); [VB.NET] Dim b As Code39StandardBarcode = new Code39StandardBarcode(" ") b.barcodestyle.textalignment = StringAlignment.Center b.barcodestyle.toplabel.text = "Code39 Standard Barcode" b.barcodestyle.toplabel.visible = true b.barcodestyle.toplabel.textalignment = StringAlignment.Center b.barcodestyle.imagewidth = 100 Dim image As BarcodeImage = new BarcodeImage(b) image.save("code39standardbarcode.bmp") Save a Barcode bitmap to Specified Stream Code Example: [C#] Code39StandardBarcode b = new Code39StandardBarcode(" " ); b.barcodestyle.textalignment = StringAlignment.Center; b.barcodestyle.toplabel.text = "Code39 Standard Barcode"; b.barcodestyle.toplabel.visible = true; b.barcodestyle.toplabel.textalignment = StringAlignment.Center ; b.barcodestyle.imagewidth = 100; 17

22 BarcodeImage image = new BarcodeImage(b); using(filestream stream = File.OpenWrite("Code39StandardBarcode.bmp")) { image.save(stream); } [VB.NET] Dim b As Code39StandardBarcode = new Code39StandardBarcode(" ") b.barcodestyle.textalignment = StringAlignment.Center b.barcodestyle.toplabel.text = "Code39 Standard Barcode" b.barcodestyle.toplabel.visible = true b.barcodestyle.toplabel.textalignment = StringAlignment.Center b.barcodestyle.imagewidth = 100 Dim image As BarcodeImage = new BarcodeImage(b) Using stream As FileStream = File.OpenWrite("Code39StandardBarcode.bmp") image.save(stream) End Using Save a Barcode image to Specified Image Format Code Example: [C#] Code39StandardBarcode b = new Code39StandardBarcode(" " ); b.barcodestyle.textalignment = StringAlignment.Center; b.barcodestyle.toplabel.text = "Code39 Standard Barcode"; b.barcodestyle.toplabel.visible = true; b.barcodestyle.toplabel.textalignment = StringAlignment.Center ; b.barcodestyle.imagewidth = 100; 18

23 BarcodeImage image = new BarcodeImage(b); image.save("code39standardbarcode.png",system.drawing.imaging. ImageFormat.Png); [VB.NET] Dim b As Code39StandardBarcode = new Code39StandardBarcode(" ") b.barcodestyle.textalignment = StringAlignment.Center b.barcodestyle.toplabel.text = "Code39 Standard Barcode" b.barcodestyle.toplabel.visible = true b.barcodestyle.toplabel.textalignment = StringAlignment.Center b.barcodestyle.imagewidth = 100 Dim image As BarcodeImage = new BarcodeImage(b) image.save("code39standardbarcode.png",system.drawing.imaging. ImageFormat.Png) Working with BarcodeStyle Class The BarcodeStyle class provides the capability to customize the appearance of a barcode image, For example, Size, Color, Font, Labels, Rotation, and etc. Change TopLable Style using BarcodeStyle.TopLabel Code Example: [C#] Code39StandardBarcode b = new Code39StandardBarcode(" " ); b.barcodestyle.textalignment = StringAlignment.Center; 19

24 b.barcodestyle.toplabel.text = "Code39 Standard Barcode"; b.barcodestyle.toplabel.visible = true; b.barcodestyle.toplabel.textalignment = StringAlignment.Center ; b.barcodestyle.imagewidth = 100; BarcodeImage image = new BarcodeImage(b); image.save("code39standardbarcode.bmp"); [VB.NET] Dim b As Code39StandardBarcode = new Code39StandardBarcode(" ") b.barcodestyle.textalignment = StringAlignment.Center b.barcodestyle.toplabel.text = "Code39 Standard Barcode" b.barcodestyle.toplabel.visible = true b.barcodestyle.toplabel.textalignment = StringAlignment.Center b.barcodestyle.imagewidth = 100 Dim image As BarcodeImage = new BarcodeImage(b) image.save("code39standardbarcode.bmp") Change Barcode Image Size using BarcodeStyle.ImageWidth Code Example: [C#] Code39StandardBarcode b = new Code39StandardBarcode(" " ); b.barcodestyle.imagewidth = 100; BarcodeImage image = new BarcodeImage(b); image.save("code39standardbarcode.bmp"); [VB.NET] 20

25 Dim b As Code39StandardBarcode = new Code39StandardBarcode(" ") b.barcodestyle.imagewidth = 100 Dim image As BarcodeImage = new BarcodeImage(b) image.save("code39standardbarcode.bmp") Change Barcode Color using ForeColor and BackgroundColor Code Example: [C#] Code39StandardBarcode b = new Code39StandardBarcode(" " ); b.barcodestyle.forecolor = Sysem.Drawing.Color.Red; b.barcodestyle.backgroundcolor = Sysem.Drawing.Color.Yellow; BarcodeImage image = new BarcodeImage(b); image.save("code39standardbarcode.bmp"); [VB.NET] Dim b As Code39StandardBarcode = new Code39StandardBarcode(" ") b.barcodestyle.imagewidth = 100 b.barcodestyle.forecolor = Sysem.Drawing.Color.Red; b.barcodestyle.backgroundcolor = Sysem.Drawing.Color.Yellow; Dim image As BarcodeImage = new BarcodeImage(b) image.save("code39standardbarcode.bmp") 21

26 Rotate a Barcode Image Code Example: [C#] Code39StandardBarcode b = new Code39StandardBarcode(" " ); b.barcodestyle.rotationangle = RotationAngle.Degree90; BarcodeImage image = new BarcodeImage(b); image.save("code39standardbarcode.bmp"); [VB.NET] Dim b As Code39StandardBarcode = new Code39StandardBarcode(" ") b.barcodestyle.imagewidth = 100 b.barcodestyle.rotationangle = RotationAngle.Degree90 Dim image As BarcodeImage = new BarcodeImage(b) image.save("code39standardbarcode.bmp") 22

27 Working with BarcodeWriter Class The BarcodeWriter class provides the capability to draw a barcode image to specified graphics or images. Draw a barcode to the specified Graphics instance Code Example: [C#] Code39StandardBarcode b = new Code39StandardBarcode(" " ); b.barcodestyle.textalignment = StringAlignment.Center; b.barcodestyle.toplabel.text = "Code39 Standard Barcode"; b.barcodestyle.toplabel.visible = true; b.barcodestyle.toplabel.textalignment = StringAlignment.Center ; b.barcodestyle.imagewidth = 100; Graphics g = Graphics.FromImage(p); BarcodeWriter writer = new BarcodeWriter(g); writer.write(b, new Point(50,50)); [VB.NET] Dim b As Code39StandardBarcode = new Code39StandardBarcode(" ") b.barcodestyle.textalignment = StringAlignment.Center b.barcodestyle.toplabel.text = "Code39 Standard Barcode" b.barcodestyle.toplabel.visible = true b.barcodestyle.toplabel.textalignment = StringAlignment.Center b.barcodestyle.imagewidth = 100 Dim g As Graphics = Graphics.FromImage(p); 23

28 Dim writer As BarcodeWriter = new BarcodeWriter(g) writer.write(b, new Point(50,50)) Read Barcode Images This section contains several topics about how to read a barcode from the image. Working with BarcodeReader Classes The BarcodeReader provides variable ways to read a barcode from specified file or image object. Read a barcode image with Specified Path Code Example: [C#] using(var reader = new Code39StandardBarcodeReader("barcode.bmp")) { BarcodeObject[] barcodes = reader.read(); if(barcodes.length >0) Console.WriteLine(barcodes[0].Code); } [VB.NET] Using reader As new Code39StandardBarcodeReader("barcode.bmp") Dim barcodes As BarcodeObject = reader.read() if(barcodes.length >0) Console.WriteLine(barcodes(0).Code) End Using 24

29 Read a barcode image with Specified Stream Code Example: [C#] FileStream fs = File.OpenRead("barcode.bmp"); using(var reader = new Code39StandardBarcodeReader(fs)) { BarcodeObject[] barcodes = reader.read(); if(barcodes.length >0) Console.WriteLine(barcodes[0].Code); } [VB.NET] Dim fs As Stream = File.OpenRead("barcode.bmp") Using reader As new Code39StandardBarcodeReader(fs) Dim barcodes As BarcodeObject() = reader.read() if(barcodes.length >0) Console.WriteLine(barcodes(0).Code) End Using Read a barcode image with Specified Bitmap object Code Example: [C#] Bitmap image = new Bitmap("barcode.bmp"); using(var reader = new Code39StandardBarcodeReader(image)) { BarcodeObject[] barcodes = reader.read(); if(barcodes.length >0) Console.WriteLine(barcodes[0].Code); } 25

30 [VB.NET] Dim image As Bitmap = new Bitmap("barcode.bmp"); Using reader As new Code39StandardBarcodeReader(image) Dim barcodes As BarcodeObject() = reader.read() if(barcodes.length >0) Console.WriteLine(barcodes(0).Code) End Using Barcodes in ASP.NET Applications This section contains several topics about how to display a barcode image in ASP.NET application. Working with BarcodeWebControl Class The BarcodeWebControl is a web control to generate and display barcode image in ASP.NET Application. It allows developer to easily integrate the barcode generation to their ASP.NET solution. Please follow the step by step tutorial to create a barcode application: 1. Create an ASP.NET Application project in Visual Studio 2. Drag and drop the BarcodeWebControl control to the Form from the toolbox 3. Select the BarcodeWebControl on the Form and set properties Code Example: [ASPX] <%@ Page Language="C#" AutoEventWireup="true" 26

31 CodeFile="Sample01.aspx.cs" Inherits="Nasosoft Barcode.Samples.Csharp.Sample01" %> Register assembly="nasosoft Barcode.Writing.Web" namespace="nasosoft Barcode.Writing.Web" tagprefix="cc2" %> Register assembly="nasosoft Barcode.Samples.Controls" namespace="nasosoft Barcode.Samples.Controls" tagprefix="cc1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " transitional.dtd"> <html xmlns=" <head id="head1" runat="server"> <link href="~/css/source.css" rel="stylesheet" type="text/css" /> <link href="~/css/redmond/jquery-ui custom.css" rel="stylesheet" type="text/css" /> </head> <body> <form id="form1" runat="server"> <asp:scriptmanager ID="ScriptManager1" runat="server"> <Scripts> <asp:scriptreference Path="~/Scripts/jquery min.js" /> <asp:scriptreference Path="~/Common/Resource/scripts/coda-slider.js" /> <asp:scriptreference Path="~/Scripts/jquery-ui custom.min.js" /> <asp:scriptreference Path="~/Scripts/Source.js" /> </Scripts> </asp:scriptmanager> <style></style> <div> <asp:panel ID="Panel1" runat="server" > </asp:panel> <asp:updatepanel ID="UpdatePanel1" runat="server"> <ContentTemplate> 27

32 <table width=800px> <tr align=center valign=middle><td align=center> <table width=100%&gt;&lt;tr align=center><td valign=middle> <cc2:barcodewebcontrol ID="BarcodeWebControl1" runat="server" BarcodeType="Code128" Code=" "> </cc2:barcodewebcontrol><br /> Info: <asp:label ID="Label1" runat="server" Text="A barcode demo." ForeColor="Blue"></asp:Label> </td></tr></table> <table> <tr> <td align=left> Code:<br /><asp:textbox ID="TextBox1" runat="server" BackColor="#FFFFCC" BorderColor="#000066" BorderStyle="Solid" BorderWidth="1px"> </asp:TextBox><br /> Barcode type:<br /> <asp:dropdownlist ID="DropDownList1" runat="server" BackColor="#FFFFCC"> <asp:listitem>code128</asp:listitem> <asp:listitem>code11</asp:listitem> <asp:listitem>australiapost</asp:listitem> <asp:listitem>booklandean</asp:listitem> <asp:listitem>codabar</asp:listitem> <asp:listitem>code39extended</asp:listitem> <asp:listitem>code39standard</asp:listitem> <asp:listitem>code93extended</asp:listitem> <asp:listitem>ean8</asp:listitem> <asp:listitem>interleaved2of5</asp:listitem> <asp:listitem>pdf417</asp:listitem> <asp:listitem>planet</asp:listitem> 28

33 <asp:listitem>postnet</asp:listitem> </asp:dropdownlist><br />Tooltip:<br /> <asp:textbox ID="TextBox2" runat="server" BackColor="#FFFFCC" BorderColor="#000066" BorderStyle="Solid" BorderWidth="1px">This is a tooltip.</asp:textbox> <br /> </td> <td>bar Height:<br /> <asp:textbox ID="TextBox3" runat="server" BackColor="#FFFFCC" BorderColor="#000066" BorderStyle="Solid" BorderWidth="1px">15</asp:TextBox> <br /> WideNarrowRatio:<br /> <asp:textbox ID="TextBox4" runat="server" BackColor="#FFFFCC" BorderColor="#000066" BorderStyle="Solid" BorderWidth="1px">3</asp:TextBox><br /> SupplementData:<br /> <asp:textbox ID="TextBox5" runat="server" BackColor="#FFFFCC" BorderColor="#000066" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox> <br /> </td> </tr> <tr> <td colspan=2> <asp:button ID="Button1" runat="server" Text="Update" onclick="button1_click" /> </td> </tr> </table> </td></tr> </table> </ContentTemplate> 29

34 </asp:updatepanel> <cc1:togglepanel ID="tab" Title="" runat="server"> <cc1:sourcecodetab ID="slider" runat="server" /> </cc1:togglepanel> </div> </form> </body> </html> [C#] e) public partial class Sample01 : SourceProviderPageBase { protected void Page_Load(object sender, EventArgs { } protected void Button1_Click(object sender, EventArgs e) { string code = this.textbox1.text; string btypes = this.dropdownlist1.text; Nasosoft Barcode.Writing.Web.BarcodeType barcodetype = BarcodeType.Code128; try { barcodetype = new BarcodeType(btypes); barcodetype; this.barcodewebcontrol1.barcodetype = 30

35 this.barcodewebcontrol1.tooltip = this.textbox2.text; this.barcodewebcontrol1.barcodestyle.barheight = int.parse(this.textbox3.text); this.barcodewebcontrol1.barcodestyle.widenarrowratio = int.parse(this.textbox4.text); this.barcodewebcontrol1.barcodestyle.setdirty(); this.barcodewebcontrol1.code = this.textbox1.text; this.barcodewebcontrol1.secondarycode = this.textbox5.text; this.label1.text = this.barcodewebcontrol1.barcodetype.tostring() + "[" + this.barcodewebcontrol1.code + "]"; } catch (Exception ex) { this.label1.text = ex.message; } } } } [VB.NET] Namespace Nasosoft Barcode.Samples.VB Partial Class Sample01 Inherits SourceProviderPageBase 31

36 ''' <summary> ''' Handles the page load ''' </summary> ''' <param name="sender"></param> ''' <param name="e"></param> Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) End Sub Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Dim code As String = Me.TextBox1.Text Dim btypes As String = Me.DropDownList1.Text Dim barcodetype As BarcodeType = barcodetype.code128 Try barcodetype = New BarcodeType(btypes) BarcodeWebControl1.BarcodeType = barcodetype BarcodeWebControl1.BarcodeType = barcodetype BarcodeWebControl1.ToolTip = TextBox2.Text BarcodeWebControl1.BarcodeStyle.BarHeight = System.Int32.Parse(TextBox3.Text) BarcodeWebControl1.BarcodeStyle.WideNarrowRatio = System.Int32.Parse(TextBox4.Text) BarcodeWebControl1.BarcodeStyle.SetDirty() BarcodeWebControl1.Code = TextBox1.Text BarcodeWebControl1.SecondaryCode = TextBox5.Text Label1.Text = BarcodeWebControl1.BarcodeType.ToString() + "[" & BarcodeWebControl1.Code & "]" Catch ex As Exception Label1.Text = ex.message 32

37 End Try End Sub End Class End Namespace Info: A barcode demo. Code: Barcode type: Code128 Tooltip: This is a tool Bar Height: 15 WideNarrowRatio: 3 SupplementData: Update Barcodes in Windows Form Applications Working with BarcodeWinControl Classes The BarcodeWinControl is a Windows Form Control to generate and display barcode images in Windows Form Applications. It allows developer to easily integrate the barcode generation to their Windows Form application. Please follow the step by step tutorial to create a barcode application: 4. Create a Windows Forms Application project in Visual Studio 5. Drag and drop the BarcodeWinControl control to the Form from the toolbox 6. Select the BarcodeWinControl on the Form and set properties 33

38 Code Example: [C#] BarcodeBuilder.cs using Nasosoft Barcode.Writing.WindowsForms; namespace CSBarcodeWindowsForms { partial class BarcodeBuilder : Form { public BarcodeBuilder() { InitializeComponent(); this.propertygrid1.selectedobject = barcodewincontr ol1.barcodestyle; } private void btnapply_click(object sender, EventArgs e) { BarcodeType btype = BarcodeType.FromString(this.cmb obarcodetype.selectedtext); if (!btype.isunknown()) { System.Diagnostics.Debug.WriteLine("Selected Ba rcodetype:" + btype.tostring()); this.barcodewincontrol1.barcodetype = btype; } Text; this.barcodewincontrol1.code = this.txtbarcodecode. } this.invalidate(barcodewincontrol1.region); private void BarcodeCustomReportItemBuilder_Load(object sender, EventArgs e) { this.txtbarcodecode.text = barcodewincontrol1.code; 34

39 string[] barcodetypenames = Enum.GetNames(typeof(Ba rcodetypeenum)); this.cmbobarcodetype.items.add("..."); this.cmbobarcodetype.items.addrange(barcodetypename s); this.cmbobarcodetype.selectedindex = Array.IndexOf( barcodetypenames, barcodewincontrol1.barcodetype.value.tostring ()) + 1; } this.invalidate(barcodewincontrol1.region); private void cmbobarcodetype_selectedindexchanged(objec t sender, EventArgs e) { if (this.cmbobarcodetype.selecteditem!= null) { BarcodeType btype = BarcodeType.FromString((str ing)this.cmbobarcodetype.selecteditem); if (!btype.isunknown()) { System.Diagnostics.Debug.WriteLine("Selecte d BarcodeType:" + btype.tostring()); this.barcodewincontrol1.barcodetype = btype ; this.invalidate(barcodewincontrol1.region); } } } ); private void btnsave_click(object sender, EventArgs e) { SaveFileDialog dialog = new SaveFileDialog(); if (dialog.showdialog() == DialogResult.OK) { barcodewincontrol1.barcode.save(dialog.filename } } 35

40 } } private void btnclose_click(object sender, EventArgs e) { this.close(); } [C#] BarcodeBuilder.Designer.cs namespace CSBarcodeWindowsForms { partial class BarcodeBuilder { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = n ull; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources s hould be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components!= null)) { components.dispose(); } base.dispose(disposing); } #region Windows Form Designer generated code 36

41 /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { BarcodeStyle barcodestyle1 = new BarcodeStyle(); System.ComponentModel.ComponentResourceManager reso urces = new System.ComponentModel.ComponentResourceManager(type of(barcodebuilder)); this.tablelayoutpanel1 = new System.Windows.Forms.T ablelayoutpanel(); this.tablelayoutpanel2 = new System.Windows.Forms.T ablelayoutpanel(); this.panel1 = new System.Windows.Forms.Panel(); this.barcodewincontrol1 = new Nasosoft Barcode.Writing.WindowsForms.BarcodeWinControl(); this.tabcontrol1 = new System.Windows.Forms.TabCont rol(); this.data = new System.Windows.Forms.TabPage(); this.button2 = new System.Windows.Forms.Button(); this.cmbobarcodetype = new System.Windows.Forms.Com bobox(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.button1 = new System.Windows.Forms.Button(); this.txtbarcodecode = new System.Windows.Forms.Text Box(); this.style = new System.Windows.Forms.TabPage(); this.propertygrid1 = new System.Windows.Forms.Prope rtygrid(); this.panel3 = new System.Windows.Forms.Panel(); this.btnclose = new System.Windows.Forms.Button(); this.btnsave = new System.Windows.Forms.Button(); this.btnapply = new System.Windows.Forms.Button(); this.tablelayoutpanel1.suspendlayout(); this.tablelayoutpanel2.suspendlayout(); this.panel1.suspendlayout(); this.tabcontrol1.suspendlayout(); 37

42 this.data.suspendlayout(); this.style.suspendlayout(); this.panel3.suspendlayout(); this.suspendlayout(); // // tablelayoutpanel1 // this.tablelayoutpanel1.columncount = 2; this.tablelayoutpanel1.columnstyles.add(new System. Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 60F)); this.tablelayoutpanel1.columnstyles.add(new System. Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 40F)); this.tablelayoutpanel1.controls.add(this.tablelayou tpanel2, 0, 0); this.tablelayoutpanel1.controls.add(this.tabcontrol 1, 1, 0); this.tablelayoutpanel1.controls.add(this.panel3, 1, 1); this.tablelayoutpanel1.dock = System.Windows.Forms. DockStyle.Fill; this.tablelayoutpanel1.location = new System.Drawin g.point(0, 0); this.tablelayoutpanel1.name = "tablelayoutpanel1"; this.tablelayoutpanel1.rowcount = 2; this.tablelayoutpanel1.rowstyles.add(new System.Win dows.forms.rowstyle(system.windows.forms.sizetype.percent, 100F )); this.tablelayoutpanel1.rowstyles.add(new System.Win dows.forms.rowstyle(system.windows.forms.sizetype.absolute, 31F )); this.tablelayoutpanel1.size = new System.Drawing.Si ze(780, 452); this.tablelayoutpanel1.tabindex = 0; // // tablelayoutpanel2 // this.tablelayoutpanel2.columncount = 1; this.tablelayoutpanel2.columnstyles.add(new System. 38

43 Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tablelayoutpanel2.controls.add(this.panel1, 0, 0); this.tablelayoutpanel2.dock = System.Windows.Forms. DockStyle.Fill; this.tablelayoutpanel2.location = new System.Drawin g.point(3, 3); this.tablelayoutpanel2.name = "tablelayoutpanel2"; this.tablelayoutpanel2.rowcount = 2; this.tablelayoutpanel2.rowstyles.add(new System.Win dows.forms.rowstyle(system.windows.forms.sizetype.percent, 100F )); this.tablelayoutpanel2.rowstyles.add(new System.Win dows.forms.rowstyle(system.windows.forms.sizetype.percent, 0F)) ; this.tablelayoutpanel2.size = new System.Drawing.Si ze(462, 415); this.tablelayoutpanel2.tabindex = 0; // // panel1 // this.panel1.borderstyle = System.Windows.Forms.Bord erstyle.fixedsingle; this.panel1.controls.add(this.barcodewincontrol1); this.panel1.dock = System.Windows.Forms.DockStyle.F ill; this.panel1.location = new System.Drawing.Point(3, 3); this.panel1.name = "panel1"; this.panel1.size = new System.Drawing.Size(456, 409 ); this.panel1.tabindex = 0; // // barcodewincontrol1 // this.barcodewincontrol1.aztecterrorlevel = 12; barcodestyle1.aspectratio = 1F; barcodestyle1.backgroundcolor = System.Drawing.Colo r.white; 39

44 barcodestyle1.barheight = 15F; barcodestyle1.toplabel= new Label("", false, System.Drawing.StringAlignment.Near, 0F, System.Drawing.Color.Black, new System.Drawing.Font("Arial", 8F)); barcodestyle1.dimension = new Dimension(0.6F, 2F); barcodestyle1.forecolor = System.Drawing.Color.Blac k; barcodestyle1.graphicsunit = System.Drawing.Graphic sunit.millimeter; barcodestyle1.imagefitmode = ImageFitMode.Flow; barcodestyle1.imageheight = 60F; barcodestyle1.imagewidth = 100F; barcodestyle1.margins = new MarginsF(4F, 4F, 4F, 4F ); barcodestyle1.resolution = new Resolution(96F, 96F) ; barcodestyle1.rotationangle = RotationAngle.Degree0 ; barcodestyle1.secondarybarheight = 5F; barcodestyle1.supplementspace = 4F; barcodestyle1.textalignment = System.Drawing.String Alignment.Center; barcodestyle1.textcolor = System.Drawing.Color.Blac k; barcodestyle1.textfont = new System.Drawing.Font("A rial", 8F); barcodestyle1.textspace = 1F; barcodestyle1.textvisible = true; barcodestyle1.widenarrowratio = 3F; this.barcodewincontrol1.barcodestyle = barcodestyle 1; this.barcodewincontrol1.barcodetype = new BarcodeTy pe("code39extended"); this.barcodewincontrol1.codabarstartcharacter = Cod abarstartstopcharacter.a; this.barcodewincontrol1.codabarstopcharacter = Coda barstartstopcharacter.a; this.barcodewincontrol1.code = " "; this.barcodewincontrol1.code128characterset = Code1 28CharacterSet.Auto; 40

45 this.barcodewincontrol1.datamatrixencodingmode = Da tamatrixencodingmode.auto; this.barcodewincontrol1.location = new System.Drawi ng.point(5, 42); this.barcodewincontrol1.name = "barcodewincontrol1" ; this.barcodewincontrol1.pdf417compactionmode = PDF4 17CompactionMode.Auto; this.barcodewincontrol1.pdf417errorlevel = PDF417Er rorlevel.level0; this.barcodewincontrol1.pdf417truncate = false; this.barcodewincontrol1.qrcodeencodingmode = QRCode EncodingMode.Auto; this.barcodewincontrol1.qrcodeerrorlevel = QRCodeEr rorlevel.levell; this.barcodewincontrol1.secondarycode = null; this.barcodewincontrol1.size = new System.Drawing.S ize(365, 112); this.barcodewincontrol1.tabindex = 0; this.barcodewincontrol1.text = "barcodewincontrol1" ; // // tabcontrol1 // this.tabcontrol1.controls.add(this.data); this.tabcontrol1.controls.add(this.style); this.tabcontrol1.dock = System.Windows.Forms.DockSt yle.fill; this.tabcontrol1.location = new System.Drawing.Poin t(471, 3); this.tabcontrol1.name = "tabcontrol1"; this.tabcontrol1.selectedindex = 0; this.tabcontrol1.size = new System.Drawing.Size(306, 415); this.tabcontrol1.tabindex = 1; // // Data // this.data.controls.add(this.button2); this.data.controls.add(this.cmbobarcodetype); 41

46 ); this.data.controls.add(this.label2); this.data.controls.add(this.label1); this.data.controls.add(this.button1); this.data.controls.add(this.txtbarcodecode); this.data.location = new System.Drawing.Point(4, 22 this.data.name = "Data"; this.data.padding = new System.Windows.Forms.Paddin g(3); this.data.size = new System.Drawing.Size(298, 389); this.data.tabindex = 0; this.data.text = "Data"; this.data.usevisualstylebackcolor = true; // // button2 // this.button2.font = new System.Drawing.Font("Micros oft Sans Serif", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.button2.image = ((System.Drawing.Image)(resour ces.getobject("button2.image"))); this.button2.location = new System.Drawing.Point(25 2, 52); this.button2.name = "button2"; this.button2.size = new System.Drawing.Size(38, 23) ; this.button2.tabindex = 5; this.button2.text = "fx"; this.button2.usevisualstylebackcolor = true; // // cmbobarcodetype // this.cmbobarcodetype.dropdownstyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbobarcodetype.formattingenabled = true; this.cmbobarcodetype.location = new System.Drawing. Point(48, 53); this.cmbobarcodetype.name = "cmbobarcodetype"; this.cmbobarcodetype.size = new System.Drawing.Size (197, 21); 42

47 this.cmbobarcodetype.tabindex = 4; this.cmbobarcodetype.selectedindexchanged += new Sy stem.eventhandler(this.cmbobarcodetype_selectedindexchanged); // // label2 // this.label2.autosize = true; this.label2.location = new System.Drawing.Point(11, 57); this.label2.name = "label2"; this.label2.size = new System.Drawing.Size(34, 13); this.label2.tabindex = 3; this.label2.text = "Type:"; // // label1 // this.label1.autosize = true; this.label1.location = new System.Drawing.Point(10, 28); this.label1.name = "label1"; this.label1.size = new System.Drawing.Size(35, 13); this.label1.tabindex = 2; this.label1.text = "Code:"; // // button1 // this.button1.font = new System.Drawing.Font("Micros oft Sans Serif", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.button1.image = ((System.Drawing.Image)(resour ces.getobject("button1.image"))); this.button1.location = new System.Drawing.Point(25 0, 24); this.button1.name = "button1"; this.button1.size = new System.Drawing.Size(40, 23) ; this.button1.tabindex = 1; this.button1.text = "fx"; this.button1.usevisualstylebackcolor = true; // 43

48 // txtbarcodecode // this.txtbarcodecode.location = new System.Drawing.P oint(47, 25); this.txtbarcodecode.name = "txtbarcodecode"; this.txtbarcodecode.size = new System.Drawing.Size( 197, 20); this.txtbarcodecode.tabindex = 0; // // Style // this.style.controls.add(this.propertygrid1); this.style.location = new System.Drawing.Point(4, 2 2); this.style.name = "Style"; this.style.padding = new System.Windows.Forms.Paddi ng(3); this.style.size = new System.Drawing.Size(298, 389) ; this.style.tabindex = 1; this.style.text = "Style"; this.style.usevisualstylebackcolor = true; // // propertygrid1 // this.propertygrid1.dock = System.Windows.Forms.Dock Style.Fill; this.propertygrid1.location = new System.Drawing.Po int(3, 3); this.propertygrid1.name = "propertygrid1"; this.propertygrid1.size = new System.Drawing.Size(2 92, 383); this.propertygrid1.tabindex = 0; // // panel3 // this.panel3.borderstyle = System.Windows.Forms.Bord erstyle.fixedsingle; this.panel3.controls.add(this.btnclose); this.panel3.controls.add(this.btnsave); 44

49 ill;, 424); ;.Right; this.panel3.controls.add(this.btnapply); this.panel3.dock = System.Windows.Forms.DockStyle.F this.panel3.location = new System.Drawing.Point(471 this.panel3.name = "panel3"; this.panel3.size = new System.Drawing.Size(306, 25) this.panel3.tabindex = 2; // // btnclose // this.btnclose.dock = System.Windows.Forms.DockStyle this.btnclose.location = new System.Drawing.Point(7 9, 0); this.btnclose.name = "btnclose"; this.btnclose.size = new System.Drawing.Size(75, 23 ); this.btnclose.tabindex = 2; this.btnclose.text = "&Close"; this.btnclose.usevisualstylebackcolor = true; this.btnclose.click += new System.EventHandler(this.btnClose_Click); // // btnsave // this.btnsave.dock = System.Windows.Forms.DockStyle. Right; this.btnsave.location = new System.Drawing.Point(15 4, 0); this.btnsave.name = "btnsave"; this.btnsave.size = new System.Drawing.Size(75, 23) ; this.btnsave.tabindex = 1; this.btnsave.text = "&Save"; this.btnsave.usevisualstylebackcolor = true; this.btnsave.click += new System.EventHandler(this. btnsave_click); // 45

50 .Right; // btnapply // this.btnapply.dock = System.Windows.Forms.DockStyle this.btnapply.location = new System.Drawing.Point(2 29, 0); this.btnapply.name = "btnapply"; this.btnapply.size = new System.Drawing.Size(75, 23 ); this.btnapply.tabindex = 0; this.btnapply.text = "&Apply"; this.btnapply.usevisualstylebackcolor = true; this.btnapply.click += new System.EventHandler(this.btnApply_Click); // // BarcodeBuilder // this.autoscaledimensions = new System.Drawing.SizeF (6F, 13F); this.autoscalemode = System.Windows.Forms.AutoScale Mode.Font; this.clientsize = new System.Drawing.Size(780, 452) ; this.controls.add(this.tablelayoutpanel1); this.helpbutton = true; this.name = "BarcodeBuilder"; this.startposition = System.Windows.Forms.FormStart Position.CenterScreen; this.text = "Barcode Designer"; this.load += new System.EventHandler(this.BarcodeCu stomreportitembuilder_load); this.tablelayoutpanel1.resumelayout(false); this.tablelayoutpanel2.resumelayout(false); this.panel1.resumelayout(false); this.tabcontrol1.resumelayout(false); this.data.resumelayout(false); this.data.performlayout(); this.style.resumelayout(false); this.panel3.resumelayout(false); this.resumelayout(false); 46

51 } #endregion private System.Windows.Forms.TableLayoutPanel tablelayo utpanel1; private System.Windows.Forms.TableLayoutPanel tablelayo utpanel2; private System.Windows.Forms.TabControl tabcontrol1; private System.Windows.Forms.TabPage Data; private System.Windows.Forms.TabPage Style; private System.Windows.Forms.Panel panel1; private Nasosoft Barcode.Writing.WindowsForms.BarcodeWinControl barcodewincontro l1; private System.Windows.Forms.PropertyGrid propertygrid1 ; private System.Windows.Forms.Panel panel3; private System.Windows.Forms.Button btnsave; private System.Windows.Forms.Button btnapply; private System.Windows.Forms.Button btnclose; private System.Windows.Forms.Button button2; private System.Windows.Forms.ComboBox cmbobarcodetype; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label1; private System.Windows.Forms.Button button1; private System.Windows.Forms.TextBox txtbarcodecode; } } 47

52 Barcodes in SQL Server Reporting Services Add Barcode to Your Report Drag and Drop Barcode to Report Open the Toolbox in the Visual Studio IDE Select the Nasosoft Barcodes.ReportingServices CustomItem in the Toolbox 48

53 49

54 50

55 Drag and Drop the Nasosoft Barcodes.ReportingServices CustomItem to Report 51

56 Drag and Drop the Nasosoft Barcodes.ReportingServices CustomReportItem to your report Working with Barcode Designer Right click on the barcode item 52

57 Click the Properties menu and the Barcode Designer will be popped up Bound the Code to a data field if need 53

58 Create Your First Barcode Report Create a new SQL Server Reporting project Add a new report to the project 54

59 Setup the data source with Report Wizard step by step 55

60 56

61 57

62 Select the Report Type and Table Style 58

63 59

64 Review the setting 60

65 Insert a new column for displaying the barcode image 61

66 Drag and Drop the Barcode ReportItem to the new column Right click on the Barcode Item and select the Properties.. menu to open the Designer 62

67 Binding a field to the Code property of the barcode item 63

68 Save the page then click Preview 64

69 Deploy the report to SSRS 65

70 View the report via browser 66

71 Configure Barcode for Reporting Services Configure with Barcode Configuration Tool Nasosoft Barcodes.ConfigTool is a Windows Form application that helps you to setup the environments of Microsoft Visual Studio and Microsoft SQL Server Reporting Services. Run Nasosoft Barcodes.ConfigTool.exe from the start menu, or you can find it at the Tools folder of the Nasosoft components setup folder. Following the wizard, check your options and simply click next. The tool will do the configuration automatically 67

72 68

73 Manually Configure Visual Studio Copy Nasosoft Barcodes.ReportingServices.dll to the PrivateAssemblies folder of your IDE. PrivateAssemblies folder of Visual Studio. It is usually at C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies folder. Register Nasosoft Barcodes as a custom report item in the RSReportDesigner.config and RSReportDesigner.config file. 1. Open and edit the C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\RSPreviewPolicy.confg as below: <configuration> <mscorlib> <security> <policy> <PolicyLevel version="1">... <CodeGroup class="firstmatchcodegroup" version="1" PermissionSetName="Nothing"> <IMembershipCondition class="allmembershipcondition" version="1" />... <CodeGroup class="firstmatchcodegroup" version="1" PermissionSetName="Execution" Description="This code group grants MyComputer code Execution permission. "> <IMembershipCondition class="zonemembershipcondition" version="1" Zone="MyComputer" /> <CodeGroup class="unioncodegroup" version="1" PermissionSetName="FullTrust" Name="NasosoftBarcode" Description="Nasosoft Barcodes.ReportingServices"> <IMembershipCondition class="strongnamemembershipcondition" version="1" PublicKeyBlob=" c09b2a6349d851af24 c8b638fe050392ba2070ecdb25f0e5f0ecee90dc66822deed7bd fb53a8d5600a06931b3e056dd0dc824cfe97d 160baa7846f825a084ba8f0195f396aa8e8f404bb9d472ac78487d849b6abe81ad8266ab00bb0eb176f de134d82cf 9e82a6c782fdfd6a3abed665df8ee" /> </CodeGroup> </CodeGroup> </CodeGroup> </PolicyLevel> </policy> </security> </mscorlib> </configuration> 69

74 2. Open and edit the C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\RSReportDesigner.confg as below: <Configuration> <!-- Configuration for Report Designer in Business Intelligence Development Studio --> <Add Key="SecureConnectionLevel" Value="0" /> <Add Key="InstanceName" Value="Microsoft.ReportingServices.PreviewServer" /> <Add Key="SessionCookies" Value="true" /> <Add Key="SessionTimeoutMinutes" Value="3" /> <Add Key="PolicyLevel" Value="rspreviewpolicy.config" /> <Add Key="CacheDataForPreview" Value="true" /> <Extensions>... <ReportItemDesigner> <ReportItem Name="NasosoftBarcode" Type="Nasosoft Barcodes.ReportingServices.BarcodeCustomReportItemDesigner, Nasosoft Barcodes.ReportingServices" /> </ReportItemDesigner> <ReportItems> <ReportItem Name="NasosoftBarcode" Type="Nasosoft Barcodes.ReportingServices.BarcodeCustomReportItem, Nasosoft Barcodes.ReportingServices" /> </ReportItems> </Extensions> </Configuration> Manually Configure SQL Server 2008 Reporting Services Copy Nasosoft Barcodes.ReportingServices.dll to the bin folder of SQL Server Reporting Servies. It is usually at C:\Program Files\Microsoft SQL Server\MSRS10_50.SQL08R2\Reporting Services\ReportServer\bin folder. Register Nasosoft Barcodes in the rssrvpolicy.config and the rsreportserver.config file. 1. Open and edit the C:\Program Files\Microsoft SQLServer\MSSQL.x\Reporting Services\ReportServer\rssrvpolicy.config as below: <configuration> <mscorlib> <security> <policy> 70

75 <PolicyLevel version="1">... <CodeGroup class="firstmatchcodegroup" version="1" PermissionSetName="Nothing"> <IMembershipCondition class="allmembershipcondition" version="1" />... <CodeGroup class="firstmatchcodegroup" version="1" PermissionSetName="Execution" Description="This code group grants MyComputer code Execution permission. "> <IMembershipCondition class="zonemembershipcondition" version="1" Zone="MyComputer" />... <CodeGroup class="unioncodegroup" version="1" PermissionSetName="FullTrust" Name="NasosoftBarcode" Description="Nasosoft Barcodes.ReportingServices"> <IMembershipCondition class="strongnamemembershipcondition" version="1" PublicKeyBlob=" c09b2a 6349d851af24c8b638fe050392ba2070ecdb25f0e5f0ecee90dc66822deed7bd fb53a8d5600a06 931b3e056dd0dc824cfe97d160baa7846f825a084ba8f0195f396aa8e8f404bb9d472ac78487d849b6abe81ad82 66ab00bb0eb176f de134d82cf9e82a6c782fdfd6a3abed665df8ee" /> </CodeGroup> </CodeGroup> </CodeGroup> </PolicyLevel> </policy> </security> </mscorlib> </configuration> 2. Open and edit the C:\Program Files\Microsoft SQLServer\MSSQL.x\Reporting Services\ReportServer\rsreportserver.config as below: <configuration> <Configuration>... <Extensions>... <ReportItems> <ReportItem Name="NasosoftBarcode" Type="Nasosoft Barcodes.ReportingServices.BarcodeCustomReportItem, Nasosoft Barcodes.ReportingServices" /> </ReportItems> </Extensions>... </Configuration> 71

76 Code128 Barcode Code128 Overview Code 128 Barcode is a linear barcode, which is capable of encoding the full 128-character ASCII character set and extended character sets. Code 128 Barcode is well known as ANSI/AIM 128, ANSI/AIM Code 128, USS Code 128, Uniform Symbology Specification Code 128, Code 128 Code Set A, Code 128 Code Set B, Code 128 Code Set C, Code 128A, Code 128B, Code 128C, and etc. Code128 Code Sets Code Set A (or Chars Set A) includes all of the standard upper case U.S. alphanumeric keyboard characters and punctuation characters together with the control characters, (i.e. characters with ASCII values from 0 to 95 inclusive), and seven special characters. Code Set B (or Chars Set B) includes all of the standard upper case alphanumeric keyboard characters and punctuation characters together with the lower case alphabetic characters (i.e. characters with ASCII values from 32 to 127 inclusive), and seven special characters. Code Set C (or Chars Set C) includes the set of 100 digit pairs from 00 to 99 inclusive, as well as three special characters. This allows numeric data to be encoded as two data digits per symbol character, at effectively twice the density of standard data. How to Create Code 128 Barcode through.net Windows Form Control in C# or VB.NET? Add Reference Nasosoft Barcodes.dll to your project. o Right click the project and select the menu "Add Reference... o Add Nasosoft Barcodes.dll to your project. Add Barcode Windows Control to your Visual Studio Toolbox. o Open Toolbox in Visual Studio. Click menu View, and check submenu Toolbox. o Right click Toolbox, click menu Choose Items... o Go to.net Framework Components tab. o Click Browse... button and select Nasosoft Barcodes.dll file. o Select the component BarcodeWinControl Now you can see the component displayed on Toolbox. You can drag BarcodeWinControl on your form, Select the BarcodeWinControl on the windows form, and go to properties window to change barcode settings. For example, you can change the Code property to set barcode data Set BarcodeType property to BarcodeType.Code128 Expand the BarcodeStyle property in the properties windows, you can now set the barcode style settings for the barcode image 72

77 How to Create Code 128 Barcode Image in.net class? Add Reference Nasosoft Barcodes.dll to your.net project (ASP.NET website, Forms, any.net project) in your.net class. Create a Code128Barcode instance. Save the barcode to images using BarcodeImage class. [VB.NET] Dim b As Code128Barcode = new Code128Barcode(" ") b.characterset = Code128CharacterSet.Auto Dim image As BarcodeImage = new BarcodeImage(b) image.save("code128autobarcode.bmp") [C#] Code128Barcode b = new Code128Barcode(" "); b.characterset = Code128CharacterSet.Auto; BarcodeImage image = new BarcodeImage(b); image.save("code128autobarcode.bmp"); How to Save Code 128 Barcode Image using.net Barcode Generator Windows Control? Use BarcodeWinControl.Save function to save barcode into images. Code128 Barcode Settings Set the Type property to BarcodeType.Code128. Set the Code128CharacterSet to specified code set, Code128CharacterSet.Default: automatically choose the best code set for maximum data compression rate. For example, if the data contains only digits it will use code set C. Code128CharacterSet.A: Encode the Character Set A which only supports ASCII values from 0 to

78 Code128CharacterSet.B: Encode the Character Set B which only supports ASCII values from 32 to 127 Code128CharacterSet.C: Encode the Character Set C which only supports pairs of digits Set the Code property with the value to encode. Code39 Barcode Code39 Overview Code 39 Barcode is a linear barcode, which is capable of encoding the full 128-character ASCII character set and extended character sets. Code 39 Barcode is well known as ANSI/AIM Code 39, ANSI/AIM Code 39, USS Code 39, USS 39, Code 3/9, Code 3 of 9, USD-3, LOGMARS, Alpha39, Code 39 Extended, and Code 39 Full ASCII. Code39 Standard and Code39 Extended Code39 Barcode Standard can encode uppercase letters (A through Z), digits (0 through 9) and a handful of special characters like the *, -, $, %, (Space),., /, and + Code39 Barcode Extended can encode full 128-character ASCII character set and extended character sets How to Create Code 39 Barcode through.net Windows Form Control in C# or VB.NET? Add Reference Nasosoft Barcodes.dll to your project. o Right click the project and select the menu "Add Reference... o Add Nasosoft Barcodes.dll to your project. Add Barcode Windows Control to your Visual Studio Toolbox. o Open Toolbox in Visual Studio. Click menu View, and check submenu Toolbox. o Right click Toolbox, click menu Choose Items... o Go to.net Framework Components tab. o Click Browse... button and select Nasosoft Barcodes.dll file. o Select the component BarcodeWinControl Now you can see the component displayed on Toolbox. You can drag BarcodeWinControl on your form, Select the BarcodeWinControl on the windows form, and go to properties window to change barcode settings. For example, you can change the Code property to set barcode data Set BarcodeType property to BarcodeType.Code39Standard or BarcodeType.Code39Extended 74

79 Expand the BarcodeStyle property in the properties windows, you can now set the barcode style settings for the barcode image How to Create Code 39 Barcode Image in.net class? Add Reference Nasosoft Barcodes.dll to your.net project (ASP.NET website, Forms, any.net project) in your.net class. Create a Code39StandardBarcode instance. Save the barcode to images using BarcodeImage class. [VB.NET] Dim b As Code39StandardBarcode = new Code39StandardBarcode (" ") Dim image As BarcodeImage = new BarcodeImage(b) image.save("code39barcode.bmp") [C#] Code39StandardBarcode b = new Code39StandardBarcode(" " ); BarcodeImage image = new BarcodeImage(b); image.save("code39barcode.bmp"); How to Save Code 39 Barcode Image using.net Barcode Generator Windows Control? Use BarcodeWinControl.Save function to save barcode into images. Code39 Barcode Settings Set the Type property to BarcodeType.Code39Standard or BarcodeType.Code39Extended. Set the Code property with the value to encode. 75

80 Code39 Barcode Style Settings Set the WidthNarrowRatio property to change the default width bar and narrow bar ratio 3:1. Code93 Barcode Code93 Overview Code 93 Barcode is a linear barcode, which is capable of encoding the full 128-character ASCII character set and extended character sets. Code 93 Barcode is well known as ANSI/AIM Code 93, ANSI/AIM Code 93, Uniform Symbology Specification Code 93, USS Code 93, USS 93, Code 9/3, USS-93, USD-3, Code 93 Extended, and Code 93 Full ASCII. Code93 Standard and Code93 Extended Code93 Barcode Standard can encode uppercase letters (A through Z), digits (0 through 9) and a handful of special characters like the *, -, $, %, (Space),., /, and + Code93 Barcode Extended can encode full 128-character ASCII character set and extended character sets How to Create Code 93 Barcode through.net Windows Form Control in C# or VB.NET? Add Reference Nasosoft Barcodes.dll to your project. o Right click the project and select the menu "Add Reference... o Add Nasosoft Barcodes.dll to your project. Add Barcode Windows Control to your Visual Studio Toolbox. o Open Toolbox in Visual Studio. Click menu View, and check submenu Toolbox. o Right click Toolbox, click menu Choose Items... o Go to.net Framework Components tab. o Click Browse... button and select Nasosoft Barcodes.dll file. o Select the component BarcodeWinControl Now you can see the component displayed on Toolbox. You can drag BarcodeWinControl on your form, Select the BarcodeWinControl on the windows form, and go to properties window to change barcode settings. For example, you can change the Code property to set barcode data Set BarcodeType property to BarcodeType.Code93Standard or BarcodeType.Code93Extended 76

81 Expand the BarcodeStyle property in the properties windows, you can now set the barcode style settings for the barcode image How to Create Code 93 Barcode Image in.net class? Add Reference Nasosoft Barcodes.dll to your.net project (ASP.NET website, Forms, any.net project) in your.net class. Create a Code93StandardBarcode instance. Save the barcode to images using BarcodeImage class. [VB.NET] Dim b As Code93StandardBarcode = new Code93StandardBarcode (" ") Dim image As BarcodeImage = new BarcodeImage(b) image.save("code93barcode.bmp") [C#] Code93StandardBarcode b = new Code93StandardBarcode(" " ); BarcodeImage image = new BarcodeImage(b); image.save("code93barcode.bmp"); How to Save Code 93 Barcode Image using.net Barcode Generator Windows Control? Use BarcodeWinControl.Save function to save barcode into images. Code93 Barcode Settings Set the Type property to BarcodeType.Code93Standard or BarcodeType.Code93Extended. Set the Code property with the value to encode. 77

82 Code39 Barcode Style Settings Set the WidthNarrowRatio property to change the default width bar and narrow bar ratio 3:1. EAN13 Barcode EAN13 Overview EAN13 Barcode is a linear barcode, which is capable of encoding the full 128-character ASCII character set. EAN13 Barcode is based upon the UPC-A standard, and is implemented by the International Article Numbering Association (EAN) in Europe. EAN13 Barcode is well known as European Article Number 13, EAN-13 Supplement 5/Fivedigit Add-On, EAN-13 Supplement 2/Two-digit Add-On, EAN-13+5, EAN-13+2, EAN13, EAN13+5, EAN13+2, UPC-13, GTIN-13, GS1-13, EAN/UCC-13. EAN13 Barcode Structure Number System: The number system consists of two digits (sometimes three digits) which identify the country (or economic region) numbering authority which assigned the manufacturer code. Manufacturer Code: The manufacturer code is a unique code assigned to each manufacturer by the numbering authority indicated by the number system code. All products produced by a given company will use the same manufacturer code. Product Code: The product code is a unique code assigned by the manufacturer. Unlike the manufacturer code, which must be assigned by the UCC, the manufacturer is free to assign product codes to each of their products without consulting any other organization. Check Digit: The check digit is an additional digit used to verify that a bar code has been scanned correctly. 78

83 How to Create EAN13 Barcode through.net Windows Form Control in C# or VB.NET? Add Reference Nasosoft Barcodes.dll to your project. o Right click the project and select the menu "Add Reference... o Add Nasosoft Barcodes.dll to your project. Add Barcode Windows Control to your Visual Studio Toolbox. o Open Toolbox in Visual Studio. Click menu View, and check submenu Toolbox. o Right click Toolbox, click menu Choose Items... o Go to.net Framework Components tab. o Click Browse... button and select Nasosoft Barcodes.dll file. o Select the component BarcodeWinControl Now you can see the component displayed on Toolbox. You can drag BarcodeWinControl on your form, Select the BarcodeWinControl on the windows form, and go to properties window to change barcode settings. For example, you can change the Code property to set barcode data Set BarcodeType property to BarcodeType.EAN13 Expand the BarcodeStyle property in the properties windows, you can now set the barcode style settings for the barcode image How to Create EAN13 Barcode Image in.net class? Add Reference Nasosoft Barcodes.dll to your.net project (ASP.NET website, Forms, any.net project) in your.net class. Create an EAN13Barcode instance. Save the barcode to images using BarcodeImage class. [VB.NET] Dim b As EAN13Barcode = new EAN13Barcode (" ") Dim image As BarcodeImage = new BarcodeImage(b) image.save("ean13barcode.bmp") 79

Blank Form. Industrial Programming. Discussion. First Form Code. Lecture 8: C# GUI Development

Blank Form. Industrial Programming. Discussion. First Form Code. Lecture 8: C# GUI Development Blank Form Industrial Programming Lecture 8: C# GUI Development Industrial Programming 1 Industrial Programming 2 First Form Code using System; using System.Drawing; using System.Windows.Forms; public

More information

User-Defined Controls

User-Defined Controls C# cont d (C-sharp) (many of these slides are extracted and adapted from Deitel s book and slides, How to Program in C#. They are provided for CSE3403 students only. Not to be published or publicly distributed

More information

this.openfiledialog = new System.Windows.Forms.OpenFileDialog(); this.label4 = new System.Windows.Forms.Label(); this.

this.openfiledialog = new System.Windows.Forms.OpenFileDialog(); this.label4 = new System.Windows.Forms.Label(); this. form.designer.cs namespace final { partial class Form1 { private System.ComponentModel.IContainer components = null; should be disposed; otherwise, false. protected override void Dispose(bool disposing)

More information

Sub To Srt Converter. This is the source code of this program. It is made in C# with.net 2.0.

Sub To Srt Converter. This is the source code of this program. It is made in C# with.net 2.0. Sub To Srt Converter This is the source code of this program. It is made in C# with.net 2.0. form1.css /* * Name: Sub to srt converter * Programmer: Paunoiu Alexandru Dumitru * Date: 5.11.2007 * Description:

More information

1. Windows Forms 2. Event-Handling Model 3. Basic Event Handling 4. Control Properties and Layout 5. Labels, TextBoxes and Buttons 6.

1. Windows Forms 2. Event-Handling Model 3. Basic Event Handling 4. Control Properties and Layout 5. Labels, TextBoxes and Buttons 6. C# cont d (C-sharp) (many of these slides are extracted and adapted from Deitel s book and slides, How to Program in C#. They are provided for CSE3403 students only. Not to be published or publicly distributed

More information

LISTING PROGRAM. //Find the maximum and minimum values in the array int maxvalue = integers[0]; //start with first element int minvalue = integers[0];

LISTING PROGRAM. //Find the maximum and minimum values in the array int maxvalue = integers[0]; //start with first element int minvalue = integers[0]; 1 LISTING PROGRAM using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace SortingApplication static class Program / / The main entry point for

More information

Visual Studio Windows Form Application #1 Basic Form Properties

Visual Studio Windows Form Application #1 Basic Form Properties Visual Studio Windows Form Application #1 Basic Form Properties Dr. Thomas E. Hicks Computer Science Department Trinity University Purpose 1] The purpose of this tutorial is to show how to create, and

More information

CIS 3260 Sample Final Exam Part II

CIS 3260 Sample Final Exam Part II CIS 3260 Sample Final Exam Part II Name You may now use any text or notes you may have. Computers may NOT be used. Vehicle Class VIN Model Exhibit A Make Year (date property/data type) Color (read-only

More information

C# and.net (1) cont d

C# and.net (1) cont d C# and.net (1) cont d Acknowledgements and copyrights: these slides are a result of combination of notes and slides with contributions from: Michael Kiffer, Arthur Bernstein, Philip Lewis, Hanspeter Mφssenbφck,

More information

ListBox. Class ListBoxTest. Allows users to add and remove items from ListBox Uses event handlers to add to, remove from, and clear list

ListBox. Class ListBoxTest. Allows users to add and remove items from ListBox Uses event handlers to add to, remove from, and clear list C# cont d (C-sharp) (many of these slides are extracted and adapted from Deitel s book and slides, How to Program in C#. They are provided for CSE3403 students only. Not to be published or publicly distributed

More information

Avoiding KeyStrokes in Windows Applications using C#

Avoiding KeyStrokes in Windows Applications using C# Avoiding KeyStrokes in Windows Applications using C# In keeping with the bcrypt.exe example cited elsewhere on this site, we seek a method of avoiding using the keypad to enter pass words and/or phrases.

More information

8 Library loan system

8 Library loan system Chapter 8: Library loan system 153 8 Library loan system In previous programs in this book, we have taken a traditional procedural approach in transferring data directly between web pages and the ASP database.

More information

Insert Data into Table using C# Code

Insert Data into Table using C# Code Insert Data into Table using C# Code CREATE TABLE [registration]( [roll_no] [int] NULL, [name] [varchar](50), [class] [varchar](50), [sex] [varchar](50), [email] [varchar](50))

More information

LISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent()

LISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent() A-1 LISTING PROGRAM Form Mainform /* * Created by SharpDevelop. * User: Roni Anggara * Date: 5/17/2016 * Time: 8:52 PM * * To change this template use Tools Options Coding Edit Standard Headers. */ using

More information

Classes in C# namespace classtest { public class myclass { public myclass() { } } }

Classes in C# namespace classtest { public class myclass { public myclass() { } } } Classes in C# A class is of similar function to our previously used Active X components. The difference between the two is the components are registered with windows and can be shared by different applications,

More information

SMITE API Developer Guide TABLE OF CONTENTS

SMITE API Developer Guide TABLE OF CONTENTS SMITE API Developer Guide TABLE OF CONTENTS TABLE OF CONTENTS DOCUMENT CHANGE HISTORY GETTING STARTED Introduction Registration Credentials Sessions API Access Limits API METHODS & PARAMETERS APIs Connectivity

More information

XML with.net: Introduction

XML with.net: Introduction XML with.net: Introduction Extensible Markup Language (XML) strores and transports data. If we use a XML file to store the data then we can do operations with the XML file directly without using the database.

More information

ASP.NET Pearson Education, Inc. All rights reserved.

ASP.NET Pearson Education, Inc. All rights reserved. 1 ASP.NET 2 Rule One: Our client is always right. Rule Two: If you think our client is wrong, see Rule One. Anonymous 3 25.1 Introduction ASP.NET 2.0 and Web Forms and Controls Web application development

More information

ASP.NET Security. 7/26/2017 EC512 Prof. Skinner 1

ASP.NET Security. 7/26/2017 EC512 Prof. Skinner 1 ASP.NET Security 7/26/2017 EC512 Prof. Skinner 1 ASP.NET Security Architecture 7/26/2017 EC512 Prof. Skinner 2 Security Types IIS security Not ASP.NET specific Requires Windows accounts (NTFS file system)

More information

If your path or instance name are different you will need to change that in the instructions below.

If your path or instance name are different you will need to change that in the instructions below. Multiple SSRS installs 1) Get your first instance of Dynamics AX with SSRS up and running. 2) Install an additional SSRS instance. In the SQL Server 2008 R2 installer be sure to select Installation then

More information

Web Programming Paper Solution (Chapter wise)

Web Programming Paper Solution (Chapter wise) .Net.net code to insert new record in database using C#. Database name: College.accdb Table name: students Table structure: std_id number std_name text std_age number Table content (before insert): 2 abcd

More information

Foreword 0. GetActualSize... Method GetPatternData... Method. SaveAsMemory... Method. Orientation Enumeration

Foreword 0. GetActualSize... Method GetPatternData... Method. SaveAsMemory... Method. Orientation Enumeration Contents 1 Table of Contents Foreword 0 Part I Introduction 3 Part II Installation 3 1 Trial Version... 3 2 Full Version... 4 Part III How to Distribute It 5 Part IV Reference Guide 5 1 Properties... 5

More information

In order to create your proxy classes, we have provided a WSDL file. This can be located at the following URL:

In order to create your proxy classes, we have provided a WSDL file. This can be located at the following URL: Send SMS via SOAP API Introduction You can seamlessly integrate your applications with aql's outbound SMS messaging service via SOAP using our SOAP API. Sending messages via the SOAP gateway WSDL file

More information

Create your own Meme Maker in C#

Create your own Meme Maker in C# Create your own Meme Maker in C# This tutorial will show how to create a meme maker in visual studio 2010 using C#. Now we are using Visual Studio 2010 version you can use any and still get the same result.

More information

Syncfusion Report Platform. Version - v Release Date - March 22, 2017

Syncfusion Report Platform. Version - v Release Date - March 22, 2017 Syncfusion Report Platform Version - v2.1.0.8 Release Date - March 22, 2017 Overview... 5 Key features... 5 Create a support incident... 5 System Requirements... 5 Report Server... 5 Hardware Requirements...

More information

ASP.NET 2.0 FileUpload Server Control

ASP.NET 2.0 FileUpload Server Control ASP.NET 2.0 FileUpload Server Control Bill Evjen September 12, 2006 http://www.codeguru.com/csharp/sample_chapter/article.php/c12593 3/ In ASP.NET 1.0/1.1, you could upload files using the HTML FileUpload

More information

ASP.NET - MANAGING STATE

ASP.NET - MANAGING STATE ASP.NET - MANAGING STATE http://www.tutorialspoint.com/asp.net/asp.net_managing_state.htm Copyright tutorialspoint.com Hyper Text Transfer Protocol HTTP is a stateless protocol. When the client disconnects

More information

To start we will be using visual studio Start a new C# windows form application project and name it motivational quotes viewer

To start we will be using visual studio Start a new C# windows form application project and name it motivational quotes viewer C# Tutorial Create a Motivational Quotes Viewer Application in Visual Studio In this tutorial we will create a fun little application for Microsoft Windows using Visual Studio. You can use any version

More information

Arena Development 101 / 102 Courses # A280, A281 IMPORTANT: You must have your development environment set up for this class

Arena Development 101 / 102 Courses # A280, A281 IMPORTANT: You must have your development environment set up for this class Arena Development 101 / 102 Courses # A280, A281 IMPORTANT: You must have your development environment set up for this class Presented by: Jeff Maddox Director of Platform Integrations, Ministry Brands

More information

Implementing a chat button on TECHNICAL PAPER

Implementing a chat button on TECHNICAL PAPER Implementing a chat button on TECHNICAL PAPER Contents 1 Adding a Live Guide chat button to your Facebook page... 3 1.1 Make the chat button code accessible from your web server... 3 1.2 Create a Facebook

More information

Foreword 0. ServiceClass Property GetActualSize... Method. SaveAsMemory... Method. SetStructuredAppend... Method. Orientation Enumeration

Foreword 0. ServiceClass Property GetActualSize... Method. SaveAsMemory... Method. SetStructuredAppend... Method. Orientation Enumeration Contents 1 Table of Contents Foreword 0 Part I Introduction 2 Part II Installation 2 1 Trial Version... 2 2 Full Version... 3 Part III How to Distribute It 4 Part IV Reference Guide 4 1 Properties... 4

More information

Web Services DELMIA Apriso 2017 Implementation Guide

Web Services DELMIA Apriso 2017 Implementation Guide Web Services DELMIA Apriso 2017 Implementation Guide 2016 Dassault Systèmes. Apriso, 3DEXPERIENCE, the Compass logo and the 3DS logo, CATIA, SOLIDWORKS, ENOVIA, DELMIA, SIMULIA, GEOVIA, EXALEAD, 3D VIA,

More information

BarcodeX.NET component

BarcodeX.NET component BarcodeX.NET component By Fath Software Contents Introduction...2 License...3 Technical support...5 Internet Mail...5 World Wide Web...5 Developer s Guide...6 Adding BarcodeX to your toolbox...6 Supported

More information

Cloud Computing. Up until now

Cloud Computing. Up until now Cloud Computing Lectures 17 Cloud Programming 2010-2011 Up until now Introduction, Definition of Cloud Computing Pre-Cloud Large Scale Computing: Grid Computing Content Distribution Networks Cycle-Sharing

More information

CST272 Getting Started Page 1

CST272 Getting Started Page 1 CST272 Getting Started Page 1 1 2 3 4 5 6 8 Introduction to ASP.NET, Visual Studio and C# CST272 ASP.NET Static and Dynamic Web Applications Static Web pages Created with HTML controls renders exactly

More information

LINQ as Language Extensions

LINQ as Language Extensions (Language Integrated Query) The main Topics in this lecture are: What is LINQ? Main Advantages of LINQ. Working with LINQ in ASP.Net Introduction: Suppose you are writing an application using.net. Chances

More information

STEP 1: CREATING THE DATABASE

STEP 1: CREATING THE DATABASE Date: 18/02/2013 Procedure: Creating a simple registration form in ASP.NET (Programming) Source: LINK Permalink: LINK Created by: HeelpBook Staff Document Version: 1.0 CREATING A SIMPLE REGISTRATION FORM

More information

This is the start of the server code

This is the start of the server code This is the start of the server code using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Net; using System.Net.Sockets;

More information

CST272 Getting Started Page 1

CST272 Getting Started Page 1 CST272 Getting Started Page 1 1 2 3 5 6 8 10 Introduction to ASP.NET and C# CST272 ASP.NET ASP.NET Server Controls (Page 1) Server controls can be Buttons, TextBoxes, etc. In the source code, ASP.NET controls

More information

CP3343 Computer Science Project (Year) Technical Report Document. Mr Stephen Garner

CP3343 Computer Science Project (Year) Technical Report Document. Mr Stephen Garner CP3343 Computer Science Project (Year) Technical Report Document Mr Stephen Garner Colin Hopson 0482647 Wednesday 23 rd April 2008 i Contents 1 Introduction... 1 2 The Program Listing... 1 2.1 ASP.Net

More information

The SAP Roambi Cloud SSRS Delivery Extension simplifies the process of updating a Roambi report with data coming from a SSRS reports.

The SAP Roambi Cloud SSRS Delivery Extension simplifies the process of updating a Roambi report with data coming from a SSRS reports. 1 Table of Contents I. Overview Introduction II. Setup Requirements Roambi Requirements Created a Roambi View to be used as a template SAP Roambi Cloud API Token Install and configure RoambiScript SSRS

More information

3 Customer records. Chapter 3: Customer records 57

3 Customer records. Chapter 3: Customer records 57 Chapter 3: Customer records 57 3 Customer records In this program we will investigate how records in a database can be displayed on a web page, and how new records can be entered on a web page and uploaded

More information

Generation of a simple web-application in the Microsoft Visual Studio 2008 with the use of Silverlight Viewer for Reporting Services 2008

Generation of a simple web-application in the Microsoft Visual Studio 2008 with the use of Silverlight Viewer for Reporting Services 2008 Generation of a simple web-application in the Microsoft Visual Studio 2008 with the use of Silverlight Viewer for Reporting Services 2008 Prerequisites.NET Framework 3.5 SP1/4.0 Silverlight v3 Silverlight

More information

In the previous chapter we created a web site with images programmed into HTML page code using commands such as: <img src="images/train.

In the previous chapter we created a web site with images programmed into HTML page code using commands such as: <img src=images/train. Chapter 6: Mountain Bike Club 113 6 Mountain Bike Club In the previous chapter we created a web site with images programmed into HTML page code using commands such as: In

More information

Web Forms ASP.NET. 2/12/2018 EC512 - Prof. Skinner 1

Web Forms ASP.NET. 2/12/2018 EC512 - Prof. Skinner 1 Web Forms ASP.NET 2/12/2018 EC512 - Prof. Skinner 1 Active Server Pages (.asp) Used before ASP.NET and may still be in use. Merges the HTML with scripting on the server. Easier than CGI. Performance is

More information

Developing Microsoft.NET Applications for Windows (Visual Basic.NET)

Developing Microsoft.NET Applications for Windows (Visual Basic.NET) Developing Microsoft.NET Applications for Windows (Visual Basic.NET) Course Number: 2565 Length: 5 Day(s) Certification Exam This course will help you prepare for the following Microsoft Certified Professional

More information

Operatii pop si push-stiva

Operatii pop si push-stiva Operatii pop si push-stiva Aplicatia realizata in Microsoft Visual Studio C++ 2010 permite simularea operatiilor de introducere si extragere a elementelor dintr-o structura de tip stiva.pentru aceasta

More information

INTRANET. EXTRANET. PORTAL.

INTRANET. EXTRANET. PORTAL. Intranet DASHBOARD API Getting Started Guide Version 6 Contents 1. INTRODUCTION TO THE API... 3 Overview... 3 Further Information... 4 Disclaimer... 4 2. GETTING STARTED... 5 Creating an Application within

More information

Report Management System (RMS) 6.0.x

Report Management System (RMS) 6.0.x Installation Instructions Report Management System (RMS) 6.0.x March 2015 Delivering the Moment Publication Information 2015 Imagine Communications Corp. Proprietary and Confidential. Imagine Communications

More information

Lab 4 CSS CISC1600, Spring 2012

Lab 4 CSS CISC1600, Spring 2012 Lab 4 CSS CISC1600, Spring 2012 Part 1 Introduction 1.1 Cascading Style Sheets or CSS files provide a way to control the look and feel of your web page that is more convenient, more flexible and more comprehensive

More information

Lab 9: Creating Personalizable applications using Web Parts

Lab 9: Creating Personalizable applications using Web Parts Lab 9: Creating Personalizable applications using Web Parts Estimated time to complete this lab: 45 minutes Web Parts is a framework for building highly customizable portalstyle pages. You compose Web

More information

Caso de Estudio: Parte II. Diseño e implementación de. Integración de Sistemas. aplicaciones Web con.net

Caso de Estudio: Parte II. Diseño e implementación de. Integración de Sistemas. aplicaciones Web con.net Caso de Estudio: Diseño e Implementación de la Capa Web de MiniBank Integración de Sistemas Parte II Diseño e implementación de Parte II. Diseño e implementación de aplicaciones Web con.net Introducción

More information

Lampiran B. Program pengendali

Lampiran B. Program pengendali Lampiran B Program pengendali #pragma once namespace serial using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms;

More information

Module 2: Using Master Pages

Module 2: Using Master Pages Module 2: Using Master Pages Contents Overview 1 Lesson: Advantages of Using Master Pages 2 Lesson: Writing Master and Content Pages 9 Lesson: Writing Nested Master Pages 21 Lesson: Programming Master

More information

EL-USB-RT API Guide V1.0

EL-USB-RT API Guide V1.0 EL-USB-RT API Guide V1.0 Contents 1 Introduction 2 C++ Sample Dialog Application 3 C++ Sample Observer Pattern Application 4 C# Sample Application 4.1 Capturing USB Device Connect \ Disconnect Events 5

More information

ASP.net. Microsoft. Getting Started with. protected void Page_Load(object sender, EventArgs e) { productsdatatable = new DataTable();

ASP.net. Microsoft. Getting Started with. protected void Page_Load(object sender, EventArgs e) { productsdatatable = new DataTable(); Getting Started with protected void Page_Load(object sender, EventArgs e) { productsdatatable = new DataTable(); string connectionstring = System.Configuration.ConfigurationManager.ConnectionStrings ["default"].connectionstring;!

More information

Activating AspxCodeGen 4.0

Activating AspxCodeGen 4.0 Activating AspxCodeGen 4.0 The first time you open AspxCodeGen 4 Professional Plus edition you will be presented with an activation form as shown in Figure 1. You will not be shown the activation form

More information

TRAINING GUIDE. Rebranding Lucity Web

TRAINING GUIDE. Rebranding Lucity Web TRAINING GUIDE Rebranding Lucity Web Rebranding Lucity Web Applications In this booklet, we ll show how to make the Lucity web applications your own by matching your agency s style. Table of Contents Web

More information

INTRODUCTION & IMPLEMENTATION OF ASP.NET

INTRODUCTION & IMPLEMENTATION OF ASP.NET INTRODUCTION & IMPLEMENTATION OF ASP.NET CONTENTS I. Introduction to ASP.NET 1. Difference between ASP and ASP.NET 2. Introduction to IIS 3. What is Web Application? Why is it used? II. Implementation

More information

Chapter 2 How to develop a one-page web application

Chapter 2 How to develop a one-page web application Chapter 2 How to develop a one-page web application Murach's ASP.NET 4.5/C#, C2 2013, Mike Murach & Associates, Inc. Slide 1 The aspx for a RequiredFieldValidator control

More information

CHAPTER 3. Writing Windows C# Programs. Objects in C#

CHAPTER 3. Writing Windows C# Programs. Objects in C# 90 01 pp. 001-09 r5ah.ps 8/1/0 :5 PM Page 9 CHAPTER 3 Writing Windows C# Programs 5 9 Objects in C# The C# language has its roots in C++, Visual Basic, and Java. Both C# and VB.Net use the same libraries

More information

Quick Start Guide. This guide will help you get started with Kentico CMS for ASP.NET. It answers these questions:

Quick Start Guide. This guide will help you get started with Kentico CMS for ASP.NET. It answers these questions: Quick Start Guide This guide will help you get started with Kentico CMS for ASP.NET. It answers these questions:. How can I install Kentico CMS?. How can I edit content? 3. How can I insert an image or

More information

Tutorial 5 Completing the Inventory Application Introducing Programming

Tutorial 5 Completing the Inventory Application Introducing Programming 1 Tutorial 5 Completing the Inventory Application Introducing Programming Outline 5.1 Test-Driving the Inventory Application 5.2 Introduction to C# Code 5.3 Inserting an Event Handler 5.4 Performing a

More information

Index. Smart Image Processor 2 Manual DMXzone.com

Index. Smart Image Processor 2 Manual DMXzone.com Index Index... 1 About Smart Image Processor 2... 2 Features in Detail... 2 Before you begin... 6 Installing the extension... 7 Updating from previous versions... 7 Introduction... 7 How to do it... 7

More information

Web Services in.net (2)

Web Services in.net (2) Web Services in.net (2) These slides are meant to be for teaching purposes only and only for the students that are registered in CSE4413 and should not be published as a book or in any form of commercial

More information

C# Forms and Events. Evolution of GUIs. Macintosh VT Datavetenskap, Karlstads universitet 1

C# Forms and Events. Evolution of GUIs. Macintosh VT Datavetenskap, Karlstads universitet 1 C# Forms and Events VT 2009 Evolution of GUIs Until 1984, console-style user interfaces were standard Mostly dumb terminals as VT100 and CICS Windows command prompt is a holdover In 1984, Apple produced

More information

3-tier Architecture Step by step Exercises Hans-Petter Halvorsen

3-tier Architecture Step by step Exercises Hans-Petter Halvorsen https://www.halvorsen.blog 3-tier Architecture Step by step Exercises Hans-Petter Halvorsen Software Architecture 3-Tier: A way to structure your code into logical parts. Different devices or software

More information

Instructions for writing Web Services using Microsoft.NET:

Instructions for writing Web Services using Microsoft.NET: Instructions for writing Web Services using Microsoft.NET: Pre-requisites: Operating System: Microsoft Windows XP Professional / Microsoft Windows 2000 Professional / Microsoft Windows 2003 Server.NET

More information

Quick Guide for the ServoWorks.NET API 2010/7/13

Quick Guide for the ServoWorks.NET API 2010/7/13 Quick Guide for the ServoWorks.NET API 2010/7/13 This document will guide you through creating a simple sample application that jogs axis 1 in a single direction using Soft Servo Systems ServoWorks.NET

More information

IN ACTION. Wictor Wilén SAMPLE CHAPTER MANNING

IN ACTION. Wictor Wilén SAMPLE CHAPTER MANNING IN ACTION Wictor Wilén SAMPLE CHAPTER MANNING SharePoint 2010 Webparts in Action Wictor Wilén Chapter 3 Copyright 2011 Manning Publications brief contents PART 1 INTRODUCING SHAREPOINT 2010 WEB PARTS...1

More information

Experiment 5 : Creating a Windows application to interface with 7-Segment LED display

Experiment 5 : Creating a Windows application to interface with 7-Segment LED display Experiment 5 : Creating a Windows application to interface with 7-Segment LED display Objectives : 1) To understand the how Windows Forms in the Windows-based applications. 2) To create a Window Application

More information

The first program we write will display a picture on a Windows screen, with buttons to make the picture appear and disappear.

The first program we write will display a picture on a Windows screen, with buttons to make the picture appear and disappear. 4 Programming with C#.NET 1 Camera The first program we write will display a picture on a Windows screen, with buttons to make the picture appear and disappear. Begin by loading Microsoft Visual Studio

More information

Development guide. Apitron PDF Rasterizer for.net

Development guide. Apitron PDF Rasterizer for.net Development guide Apitron PDF Rasterizer for.net 1. Introduction Apitron PDF Rasterizer is a.net component that performs quality conversion from PDF file to an image. It s 100% managed and doesn t require

More information

Getting Started with EPiServer 4

Getting Started with EPiServer 4 Getting Started with EPiServer 4 Abstract This white paper includes information on how to get started developing EPiServer 4. The document includes, among other things, high-level installation instructions,

More information

Creating SDK plugins

Creating SDK plugins Creating SDK plugins 1. Introduction... 3 2. Architecture... 4 3. SDK plugins... 5 4. Creating plugins from a template in Visual Studio... 6 5. Creating custom action... 9 6. Example of custom action...10

More information

Inheriting Windows Forms with Visual C#.NET

Inheriting Windows Forms with Visual C#.NET Inheriting Windows Forms with Visual C#.NET Overview In order to understand the power of OOP, consider, for example, form inheritance, a new feature of.net that lets you create a base form that becomes

More information

ActiveBarcode for developers

ActiveBarcode for developers ActiveBarcode for developers http://www.activebarcode.com/ Content About this manual...1 Setup ActiveBarcode...2 Visual Studio 2012 Barcodes in projects...3 Visual Basic Barcodes in projects...8 Visual

More information

Stamp Builder. Documentation. v1.0.0

Stamp  Builder. Documentation.   v1.0.0 Stamp Email Builder Documentation http://getemailbuilder.com v1.0.0 THANK YOU FOR PURCHASING OUR EMAIL EDITOR! This documentation covers all main features of the STAMP Self-hosted email editor. If you

More information

Using ASP.NET Code-Behind Without Visual Studio.NET

Using ASP.NET Code-Behind Without Visual Studio.NET Pá gina 1 de 8 QUICK TIP: Using " in your Strings Using ASP.NET Code-Behind Without Visual Studio.NET Home News Samples Forum * Articles Resources Lessons Links Search Please visit our Partners by John

More information

How to create a simple ASP.NET page to create/search data on baan using baan logic from the BOBS client sample.

How to create a simple ASP.NET page to create/search data on baan using baan logic from the BOBS client sample. How to create a simple ASP.NET page to create/search data on baan using baan logic from the BOBS client sample. Author: Carlos Kassab Date: July/24/2006 First install BOBS(BaaN Ole Broker Server), you

More information

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space. HTML Summary Structure All of the following are containers. Structure Contains the entire web page. Contains information

More information

dnrtv! featuring Peter Blum

dnrtv! featuring Peter Blum dnrtv! featuring Peter Blum Overview Hello, I am Peter Blum. My expertise is in how users try to use web controls for data entry and what challenges they face. Being a developer of third party controls,

More information

Sparqube Picture Column

Sparqube Picture Column Sparqube Picture Column Contents Overview... 2 Features... 3 Setup... 3 Requirements... 3 Installation... 3 Licensing... 4 Configuration... 7 How to Use... 12 Release Notes... 15 Page 1 Overview Sparqube

More information

Getting Started with EPiServer 4

Getting Started with EPiServer 4 Getting Started with EPiServer 4 Abstract This white paper includes information on how to get started developing EPiServer 4. The document includes, among other things, high-level installation instructions,

More information

Metastorm BPM Release 7.6

Metastorm BPM Release 7.6 Metastorm BPM Release 7.6 Web Client ASP.NET Web Parts Developer Guide May 2008 Metastorm, Inc. email: inquiries@metastorm.com http://www.metastorm.com Copyrights and Trademarks 1996-2008 Metastorm, Inc.

More information

For this example, we will set up a small program to display a picture menu for a fast food take-away shop.

For this example, we will set up a small program to display a picture menu for a fast food take-away shop. 146 Programming with C#.NET 9 Fast Food This program introduces the technique for uploading picture images to a C# program and storing them in a database table, in a similar way to text or numeric data.

More information

Code Finix Label Designer V 1.0 User Guide

Code Finix Label Designer V 1.0 User Guide Code Finix Label Designer V 1.0 User Guide Introduction Welcome, Code Finix Label Designer is a family of professional labeling software products that brings a complete barcode printing solution for desktop

More information

You can call the project anything you like I will be calling this one project slide show.

You can call the project anything you like I will be calling this one project slide show. C# Tutorial Load all images from a folder Slide Show In this tutorial we will see how to create a C# slide show where you load everything from a single folder and view them through a timer. This exercise

More information

Unit-4 Working with Master page and Themes

Unit-4 Working with Master page and Themes MASTER PAGES Master pages allow you to create a consistent look and behavior for all the pages in web application. A master page provides a template for other pages, with shared layout and functionality.

More information

PrecisionID ASP.NET Barcode Generator User Manual

PrecisionID ASP.NET Barcode Generator User Manual PrecisionID ASP.NE Barcode Generator User Manual Copyright 2019 - PrecisionID 1 PrecisionID ASP.NE Barcode Generator User Manual Notice: When you use this product you agree to the End User License Agreement

More information

1.1 PDFium Foxit PDF SDK PDFium version of Foxit PDF SDK Features Evaluation...

1.1 PDFium Foxit PDF SDK PDFium version of Foxit PDF SDK Features Evaluation... TABLE OF CONTENTS 1 Introduction to PDFium version of Foxit PDF SDK... 1 1.1 PDFium... 1 1.2 Foxit PDF SDK... 1 1.3 PDFium version of Foxit PDF SDK... 1 1.4 Features... 2 1.5 Evaluation... 2 1.6 License...

More information

VB.NET Web : Phone : INTRODUCTION TO NET FRAME WORK

VB.NET Web : Phone : INTRODUCTION TO NET FRAME WORK Web :- Email :- info@aceit.in Phone :- +91 801 803 3055 VB.NET INTRODUCTION TO NET FRAME WORK Basic package for net frame work Structure and basic implementation Advantages Compare with other object oriented

More information

ComponentOne. Tabs for ASP.NET Wijmo

ComponentOne. Tabs for ASP.NET Wijmo ComponentOne Tabs for ASP.NET Wijmo Copyright 1987-2012 GrapeCity, Inc. All rights reserved. ComponentOne, a division of GrapeCity 201 South Highland Avenue, Third Floor Pittsburgh, PA 15206 USA Internet:

More information

8 Basic Skinning. Introduction. In this chapter we will cover the following topics:

8 Basic Skinning. Introduction. In this chapter we will cover the following topics: 8 Basic Skinning In this chapter we will cover the following topics: Downloading and installing a skin Creating a simple HTML skin Creating a simple ASCX skin Deploying your skins and containers Exploring

More information

Preparing Students for MTA Certification MICROSOFT TECHNOLOGY ASSOCIATE. Exam Review Labs. EXAM Web Development Fundamentals

Preparing Students for MTA Certification MICROSOFT TECHNOLOGY ASSOCIATE. Exam Review Labs. EXAM Web Development Fundamentals Preparing Students for MTA Certification MICROSOFT TECHNOLOGY ASSOCIATE Exam Review Labs EXAM 98-363 Web Development Fundamentals TABLE OF CONTENTS Student Activity 1.1... 2 Student Activity 1.2... 3 Student

More information

Part Two: Understanding Microsoft Windows Workflow Foundation (WF) and the Rules for.net Integration

Part Two: Understanding Microsoft Windows Workflow Foundation (WF) and the Rules for.net Integration ILOG X-RAY Series Part Two: Understanding Microsoft Windows Workflow Foundation (WF) and the Rules for.net Integration Rules for.net 2.6 Abstract The X-RAY Series is a limited set of articles to help accelerate

More information

HTML2PDF. User manual

HTML2PDF. User manual User manual Table of Contents User manual... 1 Intro... 2 Overview... 3 Element description... 3 Elements relationship... 3 System options... 4 System options Sales emails... 5 Table element setup... 6

More information