Beruflich Dokumente
Kultur Dokumente
ANDHRA PRADESH
Name : P. Sri Vidya
Designation : Lecturer
Branch : DCCP
Institute : Govt. Polytechnic for Women, Bheemili
Semester : VI Semester
Subject : Visual Basic II
Subject code : CCP- 603
Topic : Displaying and Printing Information
(2-3/10)
Sub Topic : Displaying tabular data in report form
Duration : 50 min.
Teaching Aids : PPT
CCP603.5 1
Recap
CCP603.5 2
Objectives
CCP603.5 3
What is Data Report object?
CCP603.5 4
Properties of data report object
Title :
Returns or sets the title of the report.
Can be set at design time also.
Data member :
Returns or sets a specified data member for
among several offered by the data provider.
Syntax: object.datamember
CCP603.5 5
Font :
Returns a font object.
Syntax: object. Font
Data source
Returns or sets a data source through which a
data consumer is bound to a database.
Syntax: object.datasource
CCP603.5 6
Important methods of DataReport object
Exportreport method :
Exports the text of a report to a file using a
specified export format object.
It does not export images and shapes.
Syntax: object.export report
Show method :
Previews the report
The data report is generated and displayed in
its own window
CCP603.5 7
‘Print report’ method :
Prints the data report created with the data
report designer at run time.
Syntax: object. Print report
‘Refresh’ method :
Repaints form or control.
Syntax: object. refresh
CCP603.5 8
Important events of DataReport object
CCP603.5 9
Activate:
occurs when an object becomes the active
window.
Syntax: Private sub object_activate()
Deactivate:
occurs when a object is no longer the active
window.
Syntax: Private sub object_ deactivate()
CCP603.5 10
‘Resize’ event –
Takes place when an object is first displayed or
When the window state of an object changes.
Syntax: Private sub form_resize()
Private sub object _resize()
CCP603.5 11
● Initialize event -
CCP603.5 12
Terminate event -
CCP603.5 13
QUIZ
1. ______is one of the events of Data Report
Activate
Load method
Repeat
None of the above
CCP603.5 14
3. We can print tabular data in the form
of reports using
a) Data Environment Designer
b) Data object
c) Both a & b
d) None
CCP603.5 15
1. DataReport Object is the programmable object
that represents_________
a) DataReportDesigner
b) Crystal report designer
c) Output Designer
d) None of the above
CCP603.5 16
Frequently asked questions
CCP603.5 17
Summary
DataReport Designer.
• Its properties
• Its events
• Its use
CCP603.5 18
THANK YOU
CCP603.5 19