- Home
- Products
- Integration
- Tutorial
- Barcode FAQ
- Purchase
- Company
Report Item in C#
Report Item Creating QR Code In C#.NET Using Barcode maker for .NET framework Control to generate, create QR Code image in Visual Studio .NET applications. www.OnBarcode.comQuick Response Code Decoder In C# Using Barcode recognizer for .NET Control to read, scan read, scan image in .NET framework applications. www.OnBarcode.comtextbox1
Barcode Generation In Visual C#.NET Using Barcode creation for VS .NET Control to generate, create Barcode image in .NET framework applications. www.OnBarcode.comCode 39 Creation In Visual C# Using Barcode printer for VS .NET Control to generate, create USS Code 39 image in .NET applications. www.OnBarcode.comProperty
Creating PDF 417 In Visual C#.NET Using Barcode creator for VS .NET Control to generate, create PDF417 image in .NET applications. www.OnBarcode.comUPC-A Supplement 5 Generation In C#.NET Using Barcode printer for Visual Studio .NET Control to generate, create GS1 - 12 image in VS .NET applications. www.OnBarcode.comValue Font
EAN-13 Supplement 5 Maker In C#.NET Using Barcode maker for .NET framework Control to generate, create EAN13 image in .NET framework applications. www.OnBarcode.comCode-27 Generator In Visual C# Using Barcode generation for VS .NET Control to generate, create NW-7 image in .NET applications. www.OnBarcode.comValue
QR Code 2d Barcode Printer In Java Using Barcode generator for Java Control to generate, create QR Code ISO/IEC18004 image in Java applications. www.OnBarcode.comCreating Quick Response Code In VS .NET Using Barcode printer for Reporting Service Control to generate, create Denso QR Bar Code image in Reporting Service applications. www.OnBarcode.comProduct Information & Inventory Status Normal, Arial, 10pt, Bold ="Page :" & Globals!PageNumber & " of " & Globals!TotalPages Right Click on the Product Number to check the Inventory Status Italic, Arial, 10pt, Normal 2pt Code-39 Recognizer In None Using Barcode scanner for Software Control to read, scan read, scan image in Software applications. www.OnBarcode.comEAN13 Encoder In VB.NET Using Barcode maker for .NET framework Control to generate, create European Article Number 13 image in .NET applications. www.OnBarcode.comtextbox2 Value TextAlign textbox3 Value Font line1 LineWidth
Paint UPC Code In Java Using Barcode encoder for Java Control to generate, create UPC-A image in Java applications. www.OnBarcode.comEAN 13 Generation In Java Using Barcode printer for Java Control to generate, create GS1 - 13 image in Java applications. www.OnBarcode.comFigure 5-42. The report designer after adding the report header and related report items
Print Code 128 Code Set A In Objective-C Using Barcode creator for iPad Control to generate, create Code 128 Code Set A image in iPad applications. www.OnBarcode.comMake PDF-417 2d Barcode In Java Using Barcode drawer for Java Control to generate, create PDF 417 image in Java applications. www.OnBarcode.comCHAPTER 5 s REPORTING WITH ASP.NET WEB FORMS
ANSI/AIM Code 39 Decoder In Visual Studio .NET Using Barcode reader for Visual Studio .NET Control to read, scan read, scan image in .NET applications. www.OnBarcode.comPDF 417 Drawer In VB.NET Using Barcode printer for .NET framework Control to generate, create PDF 417 image in VS .NET applications. www.OnBarcode.comDesigning the Body Section We ll make use of a table report item in this section to list product information. Let s start by dragging Report Items Table from the toolbox and dropping it inside the body section in the report designer. As usual, a new table item named table1 is part of the report now, and we have the three columns added for us. However, we need one more column, so please add one to the right side. Make sure your report design surface looks similar to the one shown in Figure 5-43. Painting QR Code In None Using Barcode generator for Excel Control to generate, create QR Code image in Office Excel applications. www.OnBarcode.comGenerate Code 3 Of 9 In Objective-C Using Barcode maker for iPad Control to generate, create Code 39 Full ASCII image in iPad applications. www.OnBarcode.comFigure 5-43. The report design surface after adding the table item As usual, table1 needs to be mapped to our data tables; therefore, select Data Source dsProductInventory ProductNumber and drag and drop it inside the first cell of the table item s detail section (TableRow2). Repeat this task for ProductName, CategoryName, and ListPrice. After mapping the data, make sure to apply all the properties settings of table1 according to the settings mentioned in Table 5-12. If you notice in the report output, the product number appears as an underlined link. This is achieved by setting TextDecoration property of the text box to Underline. Table 5-12. Table Item Properties for the Body Section Table Item
TableRow1 TableRow1 TableRow1 Column1 TableRow1 Column2 TableRow1 Column3 TableRow1 Column4 TableRow1 Column4 TableRow2 Column1 Property
BorderStyle Font Value Value Value Value TextAlign Value
Value
Solid Italic, Arial, 10pt, Bold Product Number Product Name Category List Price Right =Fields!ProductNumber.Value Continued
CHAPTER 5 s REPORTING WITH ASP.NET WEB FORMS
Table 5-12. Continued
Table Item
TableRow2 Column1 TableRow2 Column2 TableRow2 Column3 TableRow2 Column4 TableRow2 Column4
Property
TextDecoration Value Value Value Format
Value
Underline =Fields!ProductNameValue =Fields!ProductCateogry.Value =Fields!ListPrice.Value N0
Our report design is ready now, so please make sure your final report design looks similar to Figure 5-44. Figure 5-44. Final look of the report design All right, our design is ready now, but how do we get the drill-through feature working Well, it is easy. Recall that a user will click the product number to launch our Inventory Status report. To make this possible, we need to pass the product number from our parent report and provide instructions for jumping to the Inventory Status report. To set up the drill-through feature to accomplish that, use the following steps (see Figure 5-45): 1. Right-click the Product Number cell (TableRow2 Column1) to access the Textbox Properties dialog box. 2. From the Navigation tab, type or select rptInventoryStatus from the Jump to report drop-down menu. 3. Click the Parameters button, and set the following values (see Figure 5-46): Parameter Name: parProductNumber Parameter Value: =Fields!ProductNumber.Value 4. Click the OK button to complete the process. CHAPTER 5 s REPORTING WITH ASP.NET WEB FORMS
Figure 5-45. Setting up the drill-through feature to jump to another report from the parent report
Figure 5-46. Setting the drill-through parameter values We have reached to the last step to complete our report before we move on to writing the C# code. Recall that we need to provide the on-demand hide feature for the price list column. For this, we need to add a parameter to our report. We will use this parameter to get values from the GUI client, and based on the value, we will either hide or show the price list column. Just like we added the parameter in the previous section for the inventory status report, let s add a parameter to this report now; use the following steps to add a report parameter (see Figure 5-40): CHAPTER 5 s REPORTING WITH ASP.NET WEB FORMS
1. Right-click the report designer s gray open area, and select Report Parameters. 2. Click the Add button inside the Report Parameters dialog box. 3. Name the parameter parHidePriceList; for the Prompt, type Hide Product List Y/N. 4. Click the OK button to complete the process. This is what we needed as the design for this report. Let s move on to writing some cool C# code for dynamic communication between the client and reports and bring life to our drillthrough report.
|
|