ActiveReports 18 .NET Edition
In This Topic
    Line Control in Reports
    In This Topic

    Let’s say that we want to create an order form that needs to be filled out for ordering some goods.

    The final report will look as shown.

    Line Control in Reports

    This form requires the billing and shipping information, some information on the product, its price and quantity to order, and the order's subtotals and totals.

    Since the information is filled out freely, by hand, or in an electronic form, you don't need to use any datasets. All you need is to create the form with a few Line controls to show blank spaces and draw a blank table - to be filled out by hand.

    1. Drag and drop few TextBox controls to contain default information such as the Form name ('Order Form'), address, contact information, instructions to fill the form, etc.
    2. Now, drag and drop the Line controls to draw horizontal lines that will show blank spaces that need to be filled for the 'Bill To:' and 'Ship To:' information.
    3. Draw a table using Line controls. Drag and drop the Line controls one by one and draw the lines in horizontal and vertical directions.
      Tip: To draw a perfect vertical line, the value of 'X1' and 'X2' should be same. Similarly, to draw a perfect horizontal line, the value of 'Y1' and 'Y2' should be same.
    4. Drag and drop the TextBox controls to provide labels for table columns: 'Product ID', 'Product Name', 'Unit Price', and 'Quantity'.
    5. Drag and drop the TextBox controls to provide labels for the 'Subtotal:' and 'Total:'.
    6. Modify the appearance of the report and preview.