12: Creating Reports in .NET framework

Creation QR Code 2d barcode in .NET framework 12: Creating Reports
12: Creating Reports
Creating QR In .NET
Using Barcode encoder for ASP.NET Control to generate, create QR Code image in ASP.NET applications.
Figure 124: Weekly status report document library in Merge Forms view
Make Bar Code In VS .NET
Using Barcode maker for ASP.NET Control to generate, create barcode image in ASP.NET applications.
forms you want to merge, just click the Merge Selected Documents link InfoPath will then open, and all the chosen documents will be merged into one status report In either case, whether you intend to merge forms from within InfoPath or from SharePoint, in order to be able to merge multiple forms without writing custom code, each form must be based on the same schema If you try to merge a form that has a different schema than the target form, the dialog shown in Figure 125 is displayed At this point, you can choose to continue merging or cancel the merge operation entirely In our case, this isn t an issue since every employee lls out a status report based on the
QR Printer In C#.NET
Using Barcode generator for Visual Studio .NET Control to generate, create QR Code image in Visual Studio .NET applications.
Figure 125: Merge error dialog for forms with a schema that doesn t match the target form
QR Code 2d Barcode Maker In .NET Framework
Using Barcode generator for .NET framework Control to generate, create QR Code JIS X 0510 image in .NET framework applications.
Merging Forms
Paint QR Code 2d Barcode In Visual Basic .NET
Using Barcode creator for VS .NET Control to generate, create QR image in Visual Studio .NET applications.
same form template Therefore, all the forms we will merge will be based on the same schema
Encode Code 128 In .NET
Using Barcode printer for ASP.NET Control to generate, create Code-128 image in ASP.NET applications.
NOTE
Encoding UCC-128 In .NET Framework
Using Barcode printer for ASP.NET Control to generate, create UCC - 12 image in ASP.NET applications.
Target and Source Forms
DataMatrix Maker In .NET
Using Barcode generator for ASP.NET Control to generate, create DataMatrix image in ASP.NET applications.
In InfoPath as well as this book, we refer to a form as a target when it is the target of a merge In other words, when you open a form and merge other forms into it, the form you opened originally is the target form Source forms are those forms that you are merging into the target form
Create Bar Code In VS .NET
Using Barcode maker for ASP.NET Control to generate, create barcode image in ASP.NET applications.
When you have nished merging all the forms, an aggregate report similar to that shown in Figure 126 is created So, you can see that by using the default merge functionality in InfoPath, you can easily create a merged status report that you can give to your manager However, in this case,
Encoding Code 3/9 In Visual Studio .NET
Using Barcode encoder for ASP.NET Control to generate, create Code39 image in ASP.NET applications.
Figure 126: Merged status report form
Making Barcode In .NET
Using Barcode drawer for ASP.NET Control to generate, create bar code image in ASP.NET applications.
12: Creating Reports
Identcode Drawer In .NET
Using Barcode creator for ASP.NET Control to generate, create Identcode image in ASP.NET applications.
InfoPath follows a simple set of rules to determine which action to perform when merging each of the data items in the form These merge actions, which are listed in Table 121, are based on the type of node in the form As you can see in Figure 126, the default action did merge the data, but it s not exactly what you want Each employee s status report was inserted into the open form one by one What you really want is to have the status reports for all the employees on each team combined Also, the top of the form has an empty status report section that was there to begin with You likely want all empty sections removed since they don t contain any data Luckily, when designing a form template, InfoPath allows you to customize how to merge the different data items in the form
Data Matrix Encoder In Java
Using Barcode generator for Java Control to generate, create Data Matrix ECC200 image in Java applications.
Table 121: Default Merge Actions Based on Node Type Node Type Default Merge Action
Bar Code Printer In Java
Using Barcode maker for Java Control to generate, create barcode image in Java applications.
Field
Reading Code 39 Extended In .NET
Using Barcode scanner for .NET Control to read, scan read, scan image in Visual Studio .NET applications.
Preserve the value in the target form (Note that if a node has maxOccurs = "1" in the schema, the field in the target form is preserved In this case, the attributes from the source forms are merged into the target node If maxOccurs> "1", the target node is preserved) Combine the contents of the groups in the source and target forms (The same action applies for group nodes as for fields when it comes to the maxOccurs attribute) Insert the groups from the source forms after the corresponding group node(s) in the target form The groups are not combined, and empty groups are preserved Child nodes are inserted verbatim into the target form (ie, the default merge actions are not applied to the child nodes) If the attribute is a child of a nonrepeating field, the value of the matching attribute in the target form is replaced with the value of the attribute from the source form If you are merging multiple forms, the attribute in the target form will have the value of the last form merged If the attribute is a child of a group (repeating or not) or a repeating field, the value of the attribute in the target form is preserved
Data Matrix 2d Barcode Generation In C#.NET
Using Barcode encoder for Visual Studio .NET Control to generate, create ECC200 image in .NET framework applications.
Group
Bar Code Maker In Java
Using Barcode printer for Java Control to generate, create barcode image in Java applications.
Repeating field or group
Encode GS1-128 In .NET Framework
Using Barcode generator for .NET Control to generate, create USS-128 image in .NET applications.
Attribute
Barcode Encoder In Visual C#
Using Barcode maker for .NET Control to generate, create bar code image in VS .NET applications.
Choice/sequence
Decode Data Matrix 2d Barcode In VS .NET
Using Barcode recognizer for Visual Studio .NET Control to read, scan read, scan image in Visual Studio .NET applications.
N/A Choice nodes and sequence nodes are virtual, so they do not exist in the XML data source
Merging Forms
Design Recommendations for Merging Forms When in design mode in InfoPath, you can easily customize the way data is merged when a user lls out a form As you saw in the last section, the default merge behavior provided by InfoPath works reasonably well but will not enable you to do such things as combine similar data in the merged form based on a set of rules For example, when we merge data from different weekly status report forms, ideally, we would like the data to be broken down rst by team and then by employee name Also, when the data is combined, we would like to customize the way that summary information is separated and also remove the empty status report item we saw in Figure 126 Before we talk about how to customize the merge behavior for the different elds and groups in a form template, it s important to go over a few recommendations for designing form templates that will work well when merging multiple forms When designing your form template, you should determine ahead of time how you want to merge the data Since you will be combining data from multiple forms into one, the rst recommendation is to make sure your form contains a repeating group node into which the data from multiple forms will be combined For example, take a look at the data source for the status report form template (Figure 127) You will