Você está na página 1de 11

International Journal of Research (IJR) Vol-1, Issue-6, July 2014 ISSN 2348-6848

Visual Basic Programming Connectivity


with Crystal Report
Narinder Kumar Sharma
Guide Name: - Mr. Ashwani Sethi
Guru Kashi University Talwandi Sabo, India
EMAIL ID: - nar12f1980@yahoo.co.in

ABSTRACT

The research on Visual Basic Programming


connectivity

Crystal Reports has been part of Visual


Studio since 1993, and is now the standard
for reporting in Visual Studio 2005. It ships
with every copy of Visual Studio 2005 and is
integrated directly into the development
environment.

with

Crystal

Reports

is

completely attached with database system.


In this research we can attach programming
language, database with Crystal Reports. At
a time we can attach with database and
access the data on the crystal report which
is required for the printout. If we required

Crystal Reports for Visual Studio 2005

enter information on the form and create the

brings the ability to create interactive,

print using print command then we are

presentation-quality content to the Windows

helpless because visual basic support only

environment. With Crystal Reports for

the data reports. So my research is that if we

Visual Studio 2005, you can create complex

required enter the data or modify the data

and professional reports in a GUI-based

on the visual basic form then we can print

program. Then you can connect your report

these data using the crystal report also. This

to almost any database source, as well as to

research is completely based on coding.

proxy data, such as a result set (for example,

Keywords:

an ADO.NET Dataset). With the wizards

Programming,

included in the GUI designer, you can easily

Programming Control and Crystal Reports.

Visual
Database,

Basic
Visual

6.0
Basic

set formatting, grouping, charting, and other


criteria.

INTRODUCTION

Visual Basic Programming Connectivity with Crystal Report by Narinder Kumar Sharma 944

International Journal of Research (IJR) Vol-1, Issue-6, July 2014 ISSN 2348-6848

You can host your report in either a Web or

Windows application, with one of the

Access them as a Report Web Service from


a remote server.

Crystal Reports for Visual Studio 2005

Connect to them as Crystal Services.

viewer controls. Report presentation in both

With an upgrade to Crystal Reports Server

Windows and HTML 3.2 or 4.0 clients is

you can access them through the RAS

highly interactive and provides you with

Server.

features such as chart drill down, report

navigation, and text search.

With

an

upgrade

to

BusinessObjects

Enterprise, you can access them through the


Page server or the RAS server contained

Crystal Reports for Visual Studio 2005 ships

within

with an extensive SDK. You can use the


SDK

to

interact

with

the

report

programmatically at runtime, by use of one


of four possible object models:

the

BusinessObjects

Enterprise

framework.

You can access them through a legacy


enterprise

solution,

such

as

Crystal

Enterprise or an unmanaged RAS server.

CrystalReportViewer, the simplest object


model.

ReportDocument, the more extensive object

PROBLEM FORMULATION

model.

Before developing research we keep

Object models available through upgrade:

following things in mind so that we can

ReportClientDocument, the most extensive

develop powerful and quality research.

object model.

PROBLEM STATEMENT

InfoObject, a powerful object model for


scheduling and configuring reports within
the

Crystal

Reports

Server

or

BusinessObjects Enterprise framework.

Embed your reports directly into the project.

Access
directory.

externally,

from

Which will be user friendly?


Which will restrict the user from

Your reports can be related to your Visual


Studio 2005 project in many ways:

them

Problem statement was to design a module:

file

accessing other users data?


Which will help the user in viewing
his data and privileges?
Which will help the administrator to
handle all changes?

Visual Basic Programming Connectivity with Crystal Report by Narinder Kumar Sharma 945

International Journal of Research (IJR) Vol-1, Issue-6, July 2014 ISSN 2348-6848

In which further additions can be

The system will be user friendly and

made without changing its design

completely menu-driven so that users

drastically.

shall have no problem in using all

Which would restrict the server

the options provided.

traffic?

The system will be efficient and fast

Another problem was that the

in response by careful programming.

data should be accessed from the server

The system will be customized

and accordingly changes should be made

according to the needs of the

on the data in the server only. The main

organization.

problem comes with create the reports,

It will provide overall security to

because when we enter the data on the

database both from user as well as

form, but we required the print the data

administrator side.

in programming language then we print


the command in visual basic, but vb

OBJECTIVE

support the data reports only. Many


formulas and queries which do not
support the data reports, so we required
the crystal report which consist the
formulas and queries also. When the
situation is that when we connect the
programming language with database

According to the situation of the problem, a


solution is provided to use a Visual Basic
programming and External tool that is
Crystal Reports which has been connect
with database according to requirement of
the user.

then we use the external tools on run

Unlike the databases of MS Access, SQL

time and if we require the data printout

Server database and the Oracle database if

which support the data reports and

we connect the Crystal Reports with

connect with database then using Excel

database then we access the data from the

Sheets and other sheets are helpless at

database in the Crystal Report tool, because

that time.

in programming language this tool fully

FUNCTIONS TO BE PROVIDED

support the database and Crystal Reports,


but required some procedures and coding

The various features that the proposed

with ODBC. But this technique or research

system will possess will be:

helps us to connect the database and access

Visual Basic Programming Connectivity with Crystal Report by Narinder Kumar Sharma 946

International Journal of Research (IJR) Vol-1, Issue-6, July 2014 ISSN 2348-6848

the data Printout from the database on the

Programming connectivity with Crystal

crystal reports. And second solution is that

Reports

any database which is Access, SQL Server

database system. In this research we can

and Oracle database has been used with this

attach programming language, database with

tool. Also, users do not require any addition

Crystal Reports. At a time we can attach

software or tools for it to connect it

with database and access the data on the

accurately in order to provide authentication.

crystal report which is required for the

This technique is helpful for connect with

printout. If we required enter information on

database programming system and it used

the form and create the print using print

the different queries and formulas which is

command then we are helpless because

useful for many business purpose and useful

visual basic support only the data reports. So

for many organizations.

my research is that if we required enter the

My

Research

is

Visual

Basic

Programming connectivity with Crystal


Reports The research on Visual Basic

is

completely

attached

with

data or modify the data on the visual basic


form then we can print these data using the
crystal

report

also.

This

research

is

completely based on coding.

Visual Basic Programming Connectivity with Crystal Report by Narinder Kumar Sharma 947

International Journal of Research (IJR) Vol-1, Issue-6, July 2014 ISSN 2348-6848

This first figure visual basic form show the

very importance for programmers to do

option of All and Date wise stock issue

computer programming because it figures

data and the second figure crystal report

out the programming process. Algorithm is a

show the print data of stock issue, which is

part of problem-solving techniques. After

connect with database table on run time

the problem has been raise, we have to

window.

analyze the problem first then the inputs and

RESEARCH METHODOLOGY

outputs are defined. After that we start to


design the algorithm that is a process to
transform inputs into outputs.

What is Algorithm in Computer


Science?
Algorithm is a process of problem-solving
in step by step to get result. Algorithm is

Visual Basic Programming Connectivity with Crystal Report by Narinder Kumar Sharma 948

International Journal of Research (IJR) Vol-1, Issue-6, July 2014 ISSN 2348-6848

FIGURE.Problem Solving Technique

FIGURE.Flow Chart of a Problem

Problem: - First of all the main question

coding efforts. Finally we are unable to do

arises that what is the problem? The

with generate the print out which is

problem is that we can enter the information

necessary for organizational need and other

or data in visual basic form but these forms

business purpose.

do not create the directly print report of the


data. If we want to enter the data or
information on the visual basic form and
generate the printout of this data. Then
visual basic support only the data reports
which is unable to do the calculations of
formulas and queries in the reports. We are
unable to do this. So in this problem we
waste a lot of time cost for support the
database or programming and increase the

Analyze: - I analyze this problem which is


serious and it should have easy solution.
Then I have made an algorithm which is
necessary to solve this problem. With the
help of this algorithm and database model
diagram in my research I am able to access
the data or also able to generate the data
with the crystal reports which is external
tools of programming and support with

Visual Basic Programming Connectivity with Crystal Report by Narinder Kumar Sharma 948

International Journal of Research (IJR) Vol-1, Issue-6, July 2014 ISSN 2348-6848

database and give the results better than data

stock. Two buttons which are Print

reports and other reports.

and Exit.
6. Finally

Design Algorithm: - The steps of this

am

able

to

connect

Programming Visual Basic with

algorithm used in my research are as follow:

database table and Crystal Report for


generating the printout of the data

1. Firstly I have made a database which

with the help of ODBC connection.

is Inventory Control System.mdb in

This algorithm is used to reduce the

MS Access. This database has

time

several tables which are necessary

cost

and

another

coding

procedure.

for my research project.


2. My research project front-end is

RESULT

Visual Basic 6.0 and back-end is MS


Access and platform used in this

EXPERIMENTAL RESULTS

research

6.1 VISUAL BASIC FORM WITH


CRYSTAL REPORT

is

Window

XP

and

reporting tool is Crystal Report.


3. Then I have made the Stock Issue

My

Research

is

Visual

Basic

Report form which is used in visual

Programming connectivity with Crystal

basic programming language and

Report The research on Visual Basic

make a connection provider with

Programming connectivity with Crystal

ADO control which is used in VB

Report is completely attached with database

components.

system. In this research we can attach

4. I connect this form with database and


database

table

through

the

connection provider OLEDB.

programming

language,

database

with

Crystal Reports. At a time we can attach


with database and access the data on the

5. This form consist the option buttons

crystal report which is required for the

All and Date wise which is used

printout. If we required enter information on

to access the data from the database

the form and create the print using print

table and we can generate the crystal

command then we are helpless because

report for all stock and Date wise

visual basic support only the data reports. So


my research is that if we required enter the

Visual Basic Programming Connectivity with Crystal Report by Narinder Kumar Sharma 950

International Journal of Research (IJR) Vol-1, Issue-6, July 2014 ISSN 2348-6848

data or modify the data on the visual basic

crystal

report

also.

This

form then we can print these data using the

completely based on coding.

research

is

FIGURE 10.My Experimental Research Form

Visual Basic Programming Connectivity with Crystal Report by Narinder Kumar Sharma 951

International Journal of Research (IJR) Vol-1, Issue-6, July 2014 ISSN 2348-6848

This first figure visual basic form show the

multiple application projects. Custom user

option of All and Date wise stock issue

function libraries have also been enhanced

data and the second figure crystal report

so you can incorporate your own Java or

show the print data of stock issue, which is

.NET code into Crystal Reports.

connect with database table on run time

Upgrading your Java or .NET application to

window.

use

Crystal

Reports

Server

is

straightforward because these technologies

CONCLUSION AND FUTURE


WORK

are built using a common underlying object


model. Crystal Reports also supports leading

Technology that grows with your

web application servers and platforms. You

Business

can take advantage of Crystal Reports as


your single reporting standard to address any

Universal Integration with Applications

deployment requirements and to increase the

and Portals

longevity of your applications. With Crystal

Successful businesses grow and so should

Reports, you can write your application in

their technology. Crystal Reports XI is an

Java, .NET, or COM and deploy on

enterprise

Windows, LINUX, and UNIX.

reporting solution that easily integrates with

You can even call reports stored from a

existing

single Crystal Reports Server deployment

systems,

applications,

and

infrastructure. For application developers,

from within

Crystal Reports includes extensive SDKs for

Multiple applications that were created

easily integrating report

using Java, .NET, or COM. There is no

Viewing, printing, and exporting into Java,

longer any need

.NET, and COM applications. Additional

to maintain redundant report repositories for

interactive

individual applications.

application programming interfaces (APIs)

Scale with Ease for Increased Application

are available in Crystal Reports Server for

Longevity

end-user

Reporting is often the foundation for future

report modification and creation at runtime.

business

New cross-platform APIs makes it even

Reports is an

intelligence

projects.

Crystal

more efficient to use Crystal Reports across


Visual Basic Programming Connectivity with Crystal Report by Narinder Kumar Sharma 951

International Journal of Research (IJR) Vol-1, Issue-6, July 2014 ISSN 2348-6848

Integral part of the unified BI product suite

you

from Business Objects. Based on the same

Enterprise with minimal code changes.

underlying infrastructure (BusinessObjects

Crystal Reports is already integrated as the

Enterprise), Crystal Reports makes for a

reporting standard in leading Java and .NET

seamless

existing

IDEs for report integration that can be

deployments to BI. Should your needs

accomplished without the need to leave a

evolve

familiar environment.

extension

to

require

of

your

query,

analysis,

can

migrate

to

BusinessObjects

dashboards, scorecards, OLAP, or data

You can upgrade the reporting components

integration capabilities; you can easily

included in Borland JBuilder, Borland

migrate your system from Crystal Reports to

C#Builder,

BusinessObjects Enterprise. Or, if you

Microsoft

simply need to scale your Crystal Reports

WebLogic Workshop, and IBM Rationale

Server deployment across multiple servers

WebSphere to

for mission-critical, fault-tolerant reporting,

Crystal Reports XI for greater ease of

Visual

Studio

.NET,

BEA

integration.

REFERENCES
6.
1. Horstmann,

2.

3.
4.

5.

C. S., & Cornell, G.


(2002). Core Java 2: Volume I,
Fundamentals. Pearson Education.
Geiger,
K.,
&
Tschumper,
B.
(1995). inside
ODBC (Vol.
22).
Redmond: Microsoft Press.
Grundgeiger, D. (2002). Programming
Visual Basic. NET. O'Reilly.
Greenberg, S., & Fitchett, C. (2001,
November).
Phidgets:
easy
development of physical interfaces
through
physical
widgets.
In Proceedings of the 14th annual ACM
symposium on User interface software
and technology (pp. 209-218). ACM.
Vaughn, W. R., Client, A. H., a Client, I.,
Decisions, B. D., Objects, W., Objects,
T.,
...
&
Data,
M.
R.
S.
(1998). Hitchhikers Guide to Visual

7.

8.

9.

Basic and SQL Server tm. Redmond


(WA): Microsoft presscop. 1998.
Lortz, V. B., & Ritchie, J. G. (2002). U.S.
Patent No. 6,438,618. Washington, DC:
U.S. Patent and Trademark Office.
Pinto, D. B., Castro, I., & Vicente, A. A.
(2006). The use of TICs as a managing
tool for traceability in the food
industry. Food
Research
International,39(7), 772-781.
Tilley, S., Gerdes, J., Hamilton, T.,
Huang, S., Mller, H., Smith, D., &
Wong, K. (2004). On the business value
and technical challenges of adopting
web services. Journal of Software
Maintenance and Evolution: Research
and Practice, 16(12), 31-50.
Selfa, D. M., Carrillo, M., & del Roco
Boone, M. (2006, February). A
Database and Web Application Based
on MVC Architecture. In Electronics,
Communications and Computers, 2006.
CONIELECOMP
2006.
16th

Visual Basic Programming Connectivity with Crystal Report by Narinder Kumar Sharma 952

International Journal of Research (IJR) Vol-1, Issue-6, July 2014 ISSN 2348-6848
International Conference on (pp. 48-48).
IEEE.

Visual Basic Programming Connectivity with Crystal Report by Narinder Kumar Sharma 953

Você também pode gostar