Printing Printer Object
Printing Printer Object
ANDHRA PRADESH
Name : B. NARASIMHA MURTHY
Designation : Lecturer / CME
Branch : Computer Engineering
Institute : G I P D C E & T, Tirupati
Year/Semester : V Semester
Subject : Visual Basic Programming
Subject Code : CM / IT – 504
Topic : Graphics in Visual Basic
Duration : 50 Mts.
Sub Topic : Attributes of Crystal report screen
& Fundamentals of Printing, Printer
Object
Teaching Aids : Animation Clips and Images
CM504.49to50 1
Recap:
CM504.49to50 2
Objective :
CM504.49to50 3
Attributes of Crystal Report form:
Crystal report
VB supports crystal reports
•Provides an easy way to design reports.
CM504.49to50 4
Attributes of the Crystal Report Screen.
CM504.49to50 5
Attributes of the Crystal Report Screen.
contd…
3. Selection Formula: A formula to be merged with
the current record selection formula in the
report.
4. SQL Query: Overrides SQL query string.
CM504.49to50 7
The Printer Object:
• Visual Basic uses the default printer setup in
Control panel as the printer object.
• One way to print is the PrintForm command
• It sends a screen dump of a form to the printer.
• If your application has more than one form,
then you have to use the form name in this command:
FormName.PrintForm
CM504.49to50 8
The Printer Object:
Contd..
•The usual way to send information to a printer is
the Print method applied to the Printer object.
CM504.49to50 9
The Printer Object:
Contd..
Table.1 CM504.49to50 11
Properties and Methods for the Printer:
Copies: This property lets you set the number of
copies to be printed.
Printer.NewPage
CM504.49to50 13
Page:
• keep tracks of number of pages.
CM504.49to50 14
PrintQuality:
CM504.49to50 15
Any Questions …
CM504.49to50 16
Summary
• Fundamentals of printing.
CM504.49to50 17
Quiz
a. Vb PRC monochrome
b. Vb color
c. Vb PRCM color
d. None
CM504.49to50 18
Quiz
a. Vb PRC monochrome
b. Vb color
c. Vb PRCM color
d. None
CM504.49to50 19
Frequently Asked Questions