473,385 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Connecting Crsytal report 9 to Visual Basic 6.0

Hi! Guys..

I just want to connect my Reports Created in crsytal report 9. to my System develop in Visual Basic..I can't find an answer in my MSDN so I hope that somebody will help me in my problem.

My Question is..How to Connect..? thanks in Advance Guys..
Jul 25 '07 #1
1 1791
pureenhanoi
175 100+
Hi! Guys..

I just want to connect my Reports Created in crsytal report 9. to my System develop in Visual Basic..I can't find an answer in my MSDN so I hope that somebody will help me in my problem.

My Question is..How to Connect..? thanks in Advance Guys..
If u installed Crystal Report into ur system, so u have several component to display CR Report on ur project.
Open ur VB project. Press Ctrl+T to open Component dialoge.
Check into Crystal Report Control and Crystal Report Viewer Control.
Click Ok.
Now, u have two component on ur ToolBox.
Double click on Crystal Report Control to place into ur form.
Now, write following code
Expand|Select|Wrap|Line Numbers
  1. Private Sub Command1_Click()
  2.         CrystalReport1.ReportFileName = "full path to ur created report"
  3.         CrystalReport1.RetrieveDataFiles
  4.         CrystalReport1.PrintReport
  5. End Sub
  6.  
Learn more about using Crystal Report Viewer by ur-selft.
Jul 25 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: chris | last post by:
hello, i have a crystal report and would like to set it to not visible from a form. it is in groupfootersection3 on my report. thanks/
0
by: RiteshDotNet | last post by:
I am calling crystal report from my web application which is develop in asp.net, I wanted to know how i can directly print report without preview ? --Crsytalreport.pritertoprint its running on...
1
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
6
by: Robin Cushman | last post by:
Hi all, I need some help -- I'm working with an A2K database, using DAO, and am trying to read records into a Crystal Report and then export it to a folder on our network as an Excel...
1
by: Chasing Gates | last post by:
I have created a database that brings in a new table weekly. I then made a separate query for each sales rep and a separate report for each rep. (The reports are all identical but call different...
0
by: Arif | last post by:
MY crystal report is using Access database. At design time i set file path for report. But i want that i can change this path at runtime so that my report can connect to the same database on...
1
by: praful pathak | last post by:
i i am praful pathak,porbandar i want to develop my own cross tab report in visual basic 6 i know what developed query from ms access but how to coded in visual basic in designing time and how to...
0
by: ranesmitas | last post by:
i want to use crystal report in visual basic as i am new , i want to know i create crytal report in visual basic . we want to create designer (crystal report) in visual basic or in seagate crystal...
1
by: Serenityquinn15 | last post by:
Hi! I'm a newbe in Crystal Report, and it is my first time to use it in my Visual Basic.. I just wonder how I can Install Crystal Report 8.5 for use in Visual Basic 6.0 also connect it to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.