Sie sind auf Seite 1von 19

DEPARTMENT OF TECHNICAL EDUCATION

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

 Displaying tabular data in report form using


Crystal Report Designer

CCP603.5 2
Objectives

On completion of this period, you would be able to:

 Know about Data Report object


 Properties, methods and events of Data
Report object.

CCP603.5 3
What is Data Report object?

 Data report object is the programmable object that


represents the data report designer.

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

 ‘Async properties’ event:


 occurs when each page of data is processed
 by the specific operation
 ‘Error’ event :
 occurs when an error halts
 the execution of an operation

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 -

 Occurs when an application creates


 An instance of a form, MDI form, user control,
property page, webclass, DHTML, page
designer, or class.
 Syntax: private sub object_initilize ()

CCP603.5 12
Terminate event -

 Occurs when all references to an instance of a


form, MDI form, user control, property page,
webclass, DHTML, page designer, or class are
removed from memory
 By setting all the variables that refers to the
object to nothing or
 When the last reference to the object falls out of
scope.
 Syntax: Private sub object_terminate ()

CCP603.5 13
QUIZ
1. ______is one of the events of Data Report

 Activate
 Load method
 Repeat
 None of the above

2. Date report control is part of VB software


(True/False)
Answer: True

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

 Explain the properties, events and methods of


DataReport object.

CCP603.5 17
Summary

 DataReport Designer.
• Its properties
• Its events
• Its use

CCP603.5 18
THANK YOU

CCP603.5 19

Das könnte Ihnen auch gefallen