Sybase 2 Barcode Reader User Manual


 
CHAPTER 5 Enhancing DataWindow Objects
DataWindow Designer User’s Guide 177
4 Specify the number of columns across the page and the width of columns
in the Newspaper Columns Across and Newspaper Columns Width
properties.
5 For each control in the DataWindow object that you do not want to have
appear multiple times on the page (such as headers), select Properties from
the control's pop-up menu and select the HideSnaked check box on the
General page in the Properties view.
Example
This example describes how to create a newspaper-style DataWindow object
using the
Employee table in the EAS Demo DB.
1 Create a tabular DataWindow object, selecting the last name, first name,
and phone number columns, and add a title, page number, and date.
The
Emp_Fname column and the text control holding a comma are defined
as Slide Left, so they display just to the right of the
Emp_Lname column.
2 On the Print Specifications page of the DataWindow object's Properties
view, specify two columns across and a column width of 3.5 inches in the
Newspaper Columns boxes. (Make sure that Units is set to inches on the
General property page.)
3 To view the DataWindow object as it will be printed, place the pointer in
the Preview view and select File>PrintPreview.
The DataWindow object displays the result set in two columns. Everything
above the column headers (which includes page number, title, and date)
also shows twice because of the 2-column specification. This information
should appear only once per page.
4 To specify that page number, title, and date appear only once on the page,
you need to suppress printing after the first column. For each of these
controls, select Properties from the control's pop-up menu. Then select the
HideSnaked check box.