Dot Net
Dot Net
Unit 1
INTRODUCTION TO .•
NET FRAMEWORK
DACC
• Software platform
• Language neutral
• In other words:
.NET is not a language (Runtime and a library for
writing and executing written programs in any
compliant language)
DACC
WHAT IS .• NET
.NET Application
.NET Framework
• Development
Common Language Specification (CLS)
– Mixed language applications
Commo•n Type System
(CTS) •
Automatic
Stand•ard class framework
memory management
•
– Consistent error handling and safer execution
– Potentially multi-platform
• Deployment
– Removal of registration dependency
– Safety – fewer versioning problems
DACC
COMPILATION IN . NET •
Code in another
Code in VB.NET Code in C#
.NET Language
Appropriate
VB.NET compiler C# compiler
Compiler
IL(Intermediate
Language) code
CLR just-in-time
execution
DACC
• Languages provided by MS
– VB, C++, C#, J#, JScript
• Third-parties are building
– APL, COBOL, Pascal, Eiffel, Haskell, ML,
Oberon, Perl, Python, Scheme, Smalltalk…
ASP.• NET
-
ASP.NET
(Runtime)
CLR
Internet
Manage<! W@b
Informati
applications
on
Services
Runtime Operating system/
i-l ardw
are
CLR
NET Tools
Visual Studio .NET is Microsoft's flagship tool for developing
Windows software.
.NET TOOL
In addition, there are many .NET Framework tools designed to
Microsoft
• •
isua 10
DACC
SUMMARY
UNIT 2
Introduction to VB.net
DACC
Operators in
VB.NET
i Arithmetic
operators
J Comparison
operators
i Logical
operators
J Concatenation
operators
DACC
Arithmetic operators
I Arithmetic operators are used to perform arithmetic
I
Example:
Operator Purpose Output
Leta=10
+ Addition b=a+5 55
- Subtraction c=a-5 45
* Multiplication d=a*10 500
I Division e=aI6 8.33
Division (integer
\ part only given as f =a\ 6 8
output)
Modulas
MOD (Remainder after g = a mod 7 1
division)
A Power h = aA2 2500
- Assignment m = 100
DACC
Compariso operator
n s
Comparison operators are used to compare two or more
values.
following table.
Example:
Operator Purpose Leta=SO Output
Check if a value is
> b=(a>100) FALSE
greater than another
Check if a value is
< b={a<100) TRUE
less than another
Check if a value is
>= greater than or b=(a>=50) TRUE
equal to another
Check if a value is
<= less than or equal b=(a<=75) TRUE
to
another
Check if a string Dim P As string
LIKE matches a given P="Good" FALSE
pattern b=("God" LIKE P)
Check if two object
IS references refer to a
www.ustudy.in
same object.
DACC
. Logical
operators
.
~
LOGICAL
OPERATORS
Operators Description Example Result
OR It will retrieve true value if (25>3) OR (3<5) True
the
operand are true.
AJ.:J It will retrieve true value (25>3) AND (3<5) True
D only
if both operands are true
XOR (25>3) XOR (3<5) False
Both must not be true meaning
only one side should hold true
value
NOT NOT(2=2) False
Reverse true side
DACC
DATA TYPES
String Decimal
www.educba.com
DACC
Char
Object-Oriented ApplicationDevelopmentUsing 13
VB.NET
DACC
Control
Flow
In a program, statements may be executed sequentially, selectively or
iteratively.
Every programming language provides constructs to support sequence,
selection or iteration. So there are three types of programming constructs :
Sequence
Functions and Procedures
Selection
If...Then...Else
statement
Select Case statement
Iterative
For...Next Loop
statement
Do...Loop statement
DACC
For Loop
Yes
Example
Module Modulei
Sub Main()
Dini d As Integer
Ford =0To2
Systeni.Console.WriteLine("In the For Loop")
Nextd
End Sub
End Module
DACC
IFO ]L(O)
R (O)JP)
• The For loop is the most popular
loop.
• For loops enable us to execute a series
ofexpressions
multiple numbers of times.
·Syntax
;
For indexvstart to end[Step step]
[statements]
[Exit For]
[statements]
Next[index]
DACC
WJlm }L(O)
llice (O)JP
•While loop keeps executing until the
condition against which it tests remain true.
·Syntax
;
While condition
[statements]
End While
DACC
Module Modulei
Sub Main()
Dim d, e Integer
As
d=o
e =6
While e >4
e -= 1
d+=l
End While
System.Console.WriteLine("The Loop ran " & e
"times") &
End Sub
End Module
DACC
·Syntax;
Do[{while I Until}
condition] [statements]
[Exit Do]
[statements]
Loop
oAcc Example
;
~ Module Modulei
Sub Main()
Dim str As String
Do Until str = "Cool"
System.Console.WriteLine("What to do?")
str = System.Console.ReadLine()
Loop
End Sub
End Module
DACC
WI. NDOWSFORMS
~ CheckBo
x
I stBo
Checkedlix
m .
Com ho ox
~ B
'ii Date Tinn eP i
A cker
A Label
~. LinkLab-
el
-
2e::
: ListBox
!!::!
!!;] ListView
Maskedrrext:B
m ox
m MonthCalenda
~ r
ITT' Notifyicon
CREATE NEW FORM IN VB. NET •
~-
New Project
Recent Templates
~[ .N_ET_F _re_wa_m._·or_k_4~~] Sort
Installed Templates by: [ Defa11Jlt
WPF Applicati on
•
Office Console
Cloud Application
When you add a Windows Form to your project, many of the forms properties are set by
default. Although these values are convenient, they will not always suit your
programming needs. The following picture shows how is the default Form look like.
r
""
~ Common
ControlsPointer
~
§) Button
~ CheckBox
~. CheckedlistBox -
~ ComboBox
ii DateTimePicke
A r
A
~
Label
Linklabel L
:!:!~ ListBox
~!::
! ListView
~ MaskedT
r extBox
& MonthCalendar
Notifykon
1
~ NumericUpDo.
..
II)
Form Properties
Following table lists down various important properties related to a form. These
properties can be set or read during application execution. You can refer to Microsoft
documentation for a complete list of properties associated with a Form control −
Properties • X
Forml System.Windows.Forms.Form
f1.
~~' [Q] f
El Accessibility
AccessibleDescription
AccessibleName
AccessibleRole Default
El Appearance BackColor
Backgroundlmage
D Control
(none)
Backgroundlmagelayout
Cursor D
Tile
1±1 Font Default
ForeColor Microsoft Sans Serif, 8.25pt
FormBorderStyle • ControlT ext
RightT cleft Sizable
RightT oleftlayout No
False
Forml
Text
The text associated with the control.
VISUAL STUDIO IDE
MyFirstApp - Microsoft Visual Studio ~ 0 :,? Quick Launch (Ctr!+ Q) p c5l
(Administrator)
Edi View Pro·ect Buil Debu Team Format Tools Test Ana e Window Hel Menu bar x
t d Signin
B
•
Debug ·-A-ny·C·P·U---·-~-st.art_·_P•_T; ool bar
Toolbox • !/, Forml.vb [Design] -ll X _o_b.._!e_ct_B_r_ows_e_r • .. Solution Explorer
X
Search Toolbox G'l '0·~Gsi1r@
.,, All Windows
P• Search Solution Explorer (Ctr!+;)
•~· Forml
Forms .... P•
~ Pointer
1£ BackgroundWorker ~ Solution 'MyFirstApp' (1
' BindingNavigator project)
.,, I!!! MyFirstApp
Q0 BindingSource
~ MyProject
vb.net form
ij1 Button
I> •·• References
li CheckBox ) I> 19 Forml.vb
D CheckedlistBox
Ii] ColorDialog
g: ComboBox solutions
:
exolorer
ContextMenuStrip
[;,~ DataGridView
I
~ DataSet
0 DateTimePicker
Ii,!
y
DirectoryEntry
jii DirectorySearcher
~ DomainUpDown
ErrorProvider
Eventlog
FileSystemWatcher
FlowlayoutPanel
Toolbox
Ii] FolderBrowserDial.
..
~
FontDialog
('.]
GroupBox
i;
HelpProvider
1 ..,.
----------------------------------------------------------
a1 HScrollBar .
a 1' Publish •
- -
Visual Basic.NET IDE is built out of a collection of different windows. Some
windows are used for writing code, some for designing interfaces, and others
for getting a general overview of files or classes in your application.
I> All Windows
Forms
eunw• ...
,l] ·-·
It Pointer
.,
w) Button
0
a-
CheckBox
a-
a-
CheckedlistBox
~ ComboBox
~
DateTimePicker
A Label
.A ListVie
Linklabel
.. ..w
~ - ListBox
(.). MaskedT
extBox
~
MonthCalendar
6: Notifykon
[IE
NumericUpDown
="A
~ PictureBox
El ProgressBar
0 RadioButton
·
QI:
TreeVie
RichT
w extBox
-
§] TextBox
ta ToolTip
Label Control
Microsoft Visual Studio .NET controls are the graphical tools you use to build the
user interface of a VB.Net program. Labels are one of the most frequently used
Visual Basic control.
A Label control lets you place descriptive text , where the text does not need to be
changed by the user. The Label class is defined in the System.Windows.Forms
namespace.
~~~~~~~~~~~~~~~-
~ [J(g]L8
Form1
]
I This is my first Lable I
eu,ld Otbuv Toob
Oobug • """"
T.-,.t ~·
•
b;t.m,oru
~ ...... ,.
Window tfflp
'
•
p
T~-- ~---.=.1¥·¥111
== n A
-
C!!Quk110..t.
•
J, MyP,-,
•• lttf fn«,S
"--111!111
C!)O.,.,ul<•A"°'Y"" lnd Sub
we .
i'
.
(.......,
,.
'" 0 ~o-1:Ttii
•
i .. . . .
SIO(tgt,A«OUl\t1
. 1 t ™'°td Func-Uon Gct(UM"Cn.t0ai~()
Rttt,,,rn
Et.:!
.Hcw.O..tc
As 0.t•
•
.,. My.,_.
'. $°Af«encH
. .OtfM
..
b t M " J 11 Junct1M
(nd ClHt y') p,K\19H-conf,g
"
• • (mut.10, ,0,.s ~ • ~ Undlffl1.vb
..
Con.nm 01 IN
M ..... (c,,MKUOnt •
"
o ~~ '
HoltN s.v ic•P
C~ (",.,tJ:..1~,Dl:frN@
:-
Too,bo, r C Mdtn
&rorl1t1
h
On 11111-. """"I tlm
$01t,,,w•
eeee,w., s.,mpWy the ftit.
C~
Windows Forms
VB.Net programmers have made extensive use of forms to build user
interfaces. Each time you create a Windows application, Visual
Studio will display a default blank form, onto which you can drag and
drop controls from the Visual Studio Toolbox window.
Toolbox • X Forml. X
> AllWindows fl. ;.. [DesignJ*
Forms
aSJForml
• Common
~ Pointer
Controls
_J
~ Button
~ CheckBox
~' CheckedlistBo
~ Combox
'ii DateTimBox
ePicke
A Label
r
A Linklabe
~ l
::!::!!:
!~
ListBox -
[!;] ListView
MaskedTextBo
fil x
MonthCalendar
~
[Pl Notifylcon
NumPrid Jnnn ...
• The first step is to start a new project and build a form.
• Open your Visual Studio and select File->New Project and select
Visual Basic from the New project dialog box and select Windows
Forms Application.
• The following picture shows how to crate a new Form in Visual Studio.
WPF Application
:-,,
Office Com sol e Appl i cati on
Cl o-ud
When you add a Windows Form to your project, many of the forms properties
are set by default. Although these values are convenient, they will not always
suit your programming needs. The following picture shows how is the default
Form look iill!II!
like.
III········=·~·
I> All VtJindc,,vvs Forms [Design] :X::
~ Connmon Controls: ~
...!;J Form1
~ Pointe.-
j~J Bult:t:o,n
~·
~ CheckB-ox
l§= Ch e-cked Lis:tBox
-
tl
~ - Comb-oBox
1DII D-aiteTinnePic!;.:e,,-
FormCL.vb
A Label
.A. LinkLab>el
-
~ - Li..tBo·><
Li ..tVi evv
--
1\11 a s:lkedfT ext:B ox
1\11 onthCal end arr
~ -- IN oti,fylcon
IN UJ nn er~cU pDo ...
UNIT 3:
Object Oriented
Programming in
vb.net
CLASS AND OBJECT
• Objects
- Consist of one
or more data
values which
define the state
or properties
of the object
- Encapsulated
by (methods) that can be applied to that
a set of functions
object
CONSTRUCTORS AND DESTRUCTORS
• Examine first line of code for a form in the Editor
Class Line
Private length As Double ' Length of a line
Public Sub New() 'constructor
Console.WriteLine("Object is being created")
End Sub
Public Sub setLength(ByVal len As Double)
length = len
End Sub
Public Function getLength() As Double
Return length
End Function
Shared Sub Main()
Dim line As Line = New Line()
'set line length
line.setLength(6.0)
Console.WriteLine("Length of line : {0}", line.getLength())
Console.ReadKey()
End Sub
End Class
DACC
Class Line
Private length As Double ' Length of a line
Public Sub New(ByVal len As Double) 'parameterised constructor
Console.WriteLine("Object is being created, length = {0}", len)
length = len
End Sub
Public Sub setLength(ByVal len As Double)
length = len
End Sub
Public Function getLength() As Double
Return length
End Function
Shared Sub Main()
Dim line As Line = New Line(10.0)
Console.WriteLine("Length of line set by constructor : {0}", line.getLength())
'set line length
line.setLength(6.0)
Console.WriteLine("Length of line set by setLength : {0}", line.getLength())
Console.ReadKey()
End Sub
End Class
DACC
DESTRUCTOR
A destructor is a special member Sub of a class that is
executed whenever an object of its class goes out of scope.
Live Demo
Class Line
Private length As Double ' Length of a line
Public Sub New() 'parameterised constructor
Console.WriteLine("Object is being created")
End Sub
Protected Overrides Sub Finalize() ' destructor
Console.WriteLine("Object is being deleted")
End Sub
Public Sub setLength(ByVal len As Double)
length = len
End Sub
Public Function getLength() As Double
Return length
End Function
Shared Sub Main()
Dim line As Line = New Line()
'set line length
line.setLength(6.0)
Console.WriteLine("Length of line : {0}", line.getLength())
Console.ReadKey()
End Sub
End Class
DACC
METHOD OVERLOADING
visual basic, Method Overloading means defining multiple
methods with the same name but with different parameters. By
using Method Overloading, we can perform different tasks
with
the same method name by passing different parameters.
Suppose, if we want to overload a method in visual basic, we need
to define another method with the same name but with different
signatures. In visual basic, the Method Overloading is also called
as compile time polymorphism or early binding.
Following is the code snippet of implementing a method
overloading in a visual basic progra
DACC
Syntax
Assuming a block will raise an exception, a
method catches an exception using a
combination of the Try and Catch keywords. A
Try/Catch block is placed around the code that
might generate an exception. Code within a
Try/Catch block is referred to as protected code,
and the syntax for using Try/Catch looks like the
following −
DACC
Try
[ tryStatements ]
[ Exit Try ]
[ Catch [ exception [ As type ] ] [ When expression ]
[ catchStatements ]
[ Exit Try ] ]
[ Catch ... ]
[ Finally
[ finallyStatements ] ]
End Try
DACC
HANDLING EXCEPTIONS
Live Demo
Module exceptionProg
Sub division(ByVal num1 As Integer, ByVal num2 As
Integer) Dim result As Integer
Try
result = num1 \ num2
Catch e As DivideByZeroException
Console.WriteLine("Exception caught: {0}",
e) Finally
Console.WriteLine("Result: {0}", result)
End Try
End Sub
Sub Main()
division(25, 0)
Console.ReadKey()
End
Sub
End Module
DACC
Exception caught:
System.DivideByZeroException Attempted to
:
divide by zero.
at ...
Result: 0
DACC
CreatingUser-Defined Exceptions
You can also define your own exception. User-
defined exception classes are derived from the
ApplicationException class. The following
example demonstrates this −
DACC
Live Demo
Module exceptionProg
Public Class TempIsZeroException : Inherits ApplicationException
Public Sub New(ByVal message As String)
MyBase.New(message)
End Sub
End Class
Public Class Temperature
Dim temperature As Integer = 0
Sub showTemp()
If (temperature = 0) Then
Throw (New TempIsZeroException("Zero Temperature
found")) Else
Console.WriteLine("Temperature: {0}", temperature)
End If
End Sub
End Class
Sub Main()
Dim temp As Temperature = New
Temperature() Try
temp.showTemp()
Catch e As TempIsZeroException
Console.WriteLine("TempIsZeroException: {0}",
e.Message) End Try
Console.ReadKey()
End Sub
End
Module
DACC
Throwing Objects
You can throw an object if it is either directly or indirectly derived from the System.Exception class.
You can use a throw statement in the catch block to throw the present object as −
Throw [ expression ]
The following program demonstrates this −
Module exceptionProg
Sub Main()
Try
Throw
New
Applicati
onExcept
ion("A
custom
exception
_ is being
thrown
here...")
Catch e
As
Exceptio
n
Console.WriteLine(e.Message)
Final
DACC
UNIT :• 5
Architecture Of
ADO.Net
DACC
Ii Select
Comman-d DataTab le Col le rtlon
cornrnenc
Ii Insert:
D.=£a1iabJ
commend eD
I
=ita rows
Delete DataGDlum
ns
command
Dcata
Iii IJjJ'd.ate
co n:strai
command nts
D.ata re
Sto
DACC
Properties Description
CaseSensitive Indicates whether string comparisons within the data tables are case-
sensitive.
Container Gets the container for the component.
DataSetName Gets or sets the name of the current data set.
EnforceConstraints Indicates whether constraint rules are followed when attempting any
update operation.
Events Gets the list of event handlers that are attached to this component.
ExtendedProperties Gets the collection of customized user information associated with the
DataSet.
HasErrors Indicates if there are any errors.
IsInitialized Indicates whether the DataSet is initialized.
Locale Gets or sets the locale information used to compare strings within the
table.
Namespace Gets or sets the namespace of the DataSet.
Prefix Gets or sets an XML prefix that aliases the namespace of the DataSet.
The DataTable class represents the tables in the database. It has the following important properties; most of
these
properties are read only properties except the PrimaryKey property:
The following table shows some important methods of the DataTable class:
Properties Description
ChildRelation Returns the collection of child
s relationship.
Columns Returns the Columns collection.
Constraints Returns the Constraints collection.
DataSet Returns the parent DataSet.
DefaultView Returns a view of the table.
ParentRelatio Returns the ParentRelations collection.
ns
PrimaryKey Gets or sets an array of columns as the
primary key for the table.
Rows Returns the Rows collection.
DACC
Methods Description
AcceptChanges Commits all changes since the last
AcceptChanges.
Clear Clears all data from the table.
GetChanges Returns a copy of the DataTable with
all changes made since the
AcceptChanges method was called.
GetErrors Returns an array of rows with errors.
ImportRows Copies a new row into the table.
LoadDataRow Finds and updates a specific row, or
creates a new one, if not found any.
Merge Merges the table with another
DataTable.
NewRow Creates a new DataRow.
RejectChanges Rolls back all changes made since the
last call to AcceptChanges.
Reset Resets the table to its original state.
Select Returns an array of DataRow objects.
DACC
What is DataBinding?
DataBinding is a powerful feature provided by the .NET
Framework that enables visual elements in a client to connect
to a datasource such as DataSets, DataViews, Arrays, etc. Some
of the visual elements in the client can be TextBox, Datagrid,
etc. A two-way connection is established such that any changes
made to the datasource are reflected immediately in the visual
element and vice versa.
Below is a graphical description of the concept of databinding:
DACC
Data
Grld
Datasource1
Comp Bln~it .g
lax Da~a
Tex1
1m: Ellndl ng ODJect ··.·=.-ii
ODJect
Datasowree1
OK
DACC
ADVANTAGES OF DATABINDING
DISADVANTAGES OF DATABINDING
I I
, r ,r
1 '
Binding Object Binding Object
Binding Objeot
II I I I
j • DataBindin s (l •llectioo a
~ I
BlndlngCor tex Object
1 ' ,r
,
'
Curremc.ytvlanagsr Object Ourrsnq,Managsr Objsct PmpsrtyManager Object
Property
[lamaSourc
e1
DamaSourca2
9
M~Qtifa
I cl I
DACC
CRYSTAL REPORT
Crystal Report that enables you to generate reports to show
your data retrieved from a database
how to get data stored in a table of a Microsoft SQL SERVER
database to display on a form of your project.
,-C-•t_•~g_o_,;_._"--------Ter-rtpt-ete-sa --,
Common Items Visual Studio installed templates
Code !~Dataset! b£ UNQ to SQL Classes
Data tj Local Database local Database Cache:
I
!:nbe:ral CJ Service-based Database: ~XML f;I•
Windows Forms ~ XML Schema ,;Ji' XSLT File
Reporting My Templates
Workflow ~ Search Online: Templates ...
WPF
Name:: DataSet.2.xsd
Add Connection
Data source:
Microsoft ODBC Data Source (ODBC) Change ...
Microsoft ODBC Data Source (ODBC)
Data source specification
..... Refresh
Build...
l.oqin
information
User name:
Password:
Advanced ...
I
~~~O_K~~~I
[~~c_a_n_c_.e_l~~
[~~c_a_n_c_.e_l
DACC
Enter Change" to
information
to connect to
the selected
data source or
click "
Microsoft SQL Server (Sql(lient) Change ...
choose a
differert data
source and/or
provider. R_ef_res_h
R_ef_res_h_. .J
Data source:
Microsoft SQL Server (Sql(lient)
Server name:
Dec-pc "" ....._[_
User name: sa
Password: •••
[] Save my password
Connect to a database
_1t dbstuden:
- master Ad
Advanced ...
model
msdb
SaleAndStock c_a_n c _e_,
Sales
School Mc nagement
temp db
DACC
I
Server Explorer DataSetl.xsdl Forml.vb [Desi n] '"' x
rt'.JJl~H
dJ Data Connections G
El tl
dcc-
Database
!fl
pc.SaleAndStock.dbo
El Diagrams
llllll
$ Iii Ii!]
1±1 PasteCopy Of TblContact
l
Errors
$·
1 IIfl Switchboard Items
± Im TblBoo
1±1
1 IIfl TblBook
! IIfl -
fl
$ IIfl TblContact
TblCategory
1±1 Iii ~ TblCustomer
!
TblEmployee
fl Ii!:!
$· IIfl TblFortuneData
1 tblfo.rtuneTellerData
Iii Tbllncome
1±1
$·
±
1 Im Tbllab
1 IIfl Tbllogln
$
± Im
El IIfl TblProduct
1 TblMonthlyEarning
rr] Product!D Product!D
m
rr] ProductName ProductNam
e
Quantity
rr] Quantity
UnitPrice
1 IIfl UnitPrice
rr] Category!
± TblProductlD
Category!D
1
$· IIfl
1±1··· ~ TblPublisher Fill,GetData
TblRoomStudent
$ bi) TblRoom O
1±1 IIfl TblSaleMaster
r±i. ~ Thk,-
Im TblSaleDetail G
~ I 1±1 nrF>m
.. I
l
DACC
,
. Add New Item - ReportVB
·
Cateqories Tem p,1 ates:
.-----------------,
• Common Items .6 Vis11.Jall Studio installed templates
-
Code I Report
Crysta
Data ~ Report
Gen em I .F."I
- Report \N'i!Zard
Web ~
Windows Forms My Templates-----------------
[ Rep o,rti n g ] - 4lJ Sea rich On Ii n e Tenn pl ates ...
\IVorkflow
OK 11 Cancel
DACC
CRYST
i···-~
ProductName
i···-~ Quantity ,.. Section2 (Page Header )
i···-~
L...~ UnitPrice
CategoryID
i -·~ Formula Fields Prodl!lctlD Pro dl!l,ct Name Q l!lantity :unitPrice, CateqorylD
,.. Sedion3 (Details )
j---· m Parameter
Fields
frodUJctlD : Q UJantiti :unitPrice: s;ategorylD
i···· ~ Group Name
Fields
,.. Sedion4 (Report Footer )
i····~ Running
Total Fields
iiJ.. ]: Special
,.. Section5 (Page Footer )
I
Fields .
III··= Unbound Fields
DACC
Open the code window by double-click the form and in the Form1_load procedure write the following code:
Imports System.Data.SqlClient
Imports System.Data.SqlClient
Public Class Form1
----=-~--~----~--~~~~----~-~~---~-~-~-·~-~~-------..... .
~Form1 ~~~ .
.
Show Report
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.CrystalReports.Engine
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
Dim cryRpt As New ReportDocument
cryRpt.Load("PUT CRYSTAL REPORT PATH
HERE\CrystalReport1.rpt")
CrystalReportViewer1.ReportSource = cryRpt
CrystalReportViewer1.Refresh()
End Sub
End Class
DACC
NOTES:
cryRpt.Load("PUT CRYSTAL REPORT PATH
HERE\CrystalReport1.rpt")
~ Form ~LQ]
1
~