ActiveReports 8 > ActiveReports User Guide > Samples and Walkthroughs > Samples > Section Report > Preview > Custom Annotation Sample |
The Custom Annotation sample demonstrates how to add the Custom Annotation button to the Viewer toolbar and depicts the method to add any annotation (seal image in this case) to the report. Only one annotation can be used per page.
Sample Location
Visual Basic.NET
<User Folder>\ComponentOne Samples\ActiveReports 8\Section Reports\VB.NET\Preview\CustomAnnotation
C#
<User Folder>\ComponentOne Samples\ActiveReports 8\Section Reports\C#\Preview\CustomAnnotation
Runtime Features
When you run the sample, the report appears in the Viewer control. The Viewer control toolbar contains the Custom Annotation button that opens the report annotation.
Note: To run this sample, you must have access to the Nwind.mdb. A copy is located at [User Documents folder]\ComponentOne Samples\ActiveReports 8\Data. If you are unable to access the data files in the sample, create the Data folder and place all the data files to this folder, or change the reference path to the data files within the folder according to your environment. |
Project Details
AnnotationForm
Annotation report
ghOrderID section
Product order receipt is grouped according to OrderID.
Detail section
Use RepeatToFill property to output empty rows till the end and perform page break group wise.
GFOrderID section
This group footer section displays the bulk of the data for the report in TextBox controls that have values passed in code, or are bound to fields from the report's Fields collection (see FetchData and DataInitialize events in the code) using the DataField property. The total units and sales for each product are summarized using the following properties:
Caution: SummaryFunc has no effect unless the SummaryType property is set to either SubTotal or GrandTotal. |
Resources folder
Resource1.resx