borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Crystal Reports!!! Error Application Defined / User Define Error)Next Topic (Changing Crystal Header) New Topic New Poll Post Reply
AndreaVB Forum : Reporting tools : Crystal reports and VB 6
Poster Message
Pulky
Level: Guest


icon Crystal reports and VB 6

I`m trying to print some kind of reports, and i`ve heard that using crystal reports is an easy way of doing it. I´m using VB 6, but crystal reports is only installed in vb 5. Can you help me?

Well, sorry. I should have given a little bit more information.

I want to print a bill. I´m trying to print data from an access database and i`m using ADO.

Thank you again.

Pulky.


Thank you.

[Edited by Pulky on 12-08-2003 at 06:17 PM GMT]

12-08-2003 at 10:15 AM
| Quote Reply
Shady
Level: VB Guru


Registered: 08-07-2002
Posts: 305
icon Re: Crystal reports and VB 6

Hi,

What sort of reports, are you printing data from a database, if so what DBase do you use and what connection DAO or ADO.

It may help in deciding the best way to print your report, there's more than one way to skin a cat.

Shady

____________________________
I don't wanna die... but I ain't keen on livin' either

12-08-2003 at 10:32 AM
View Profile Send Email to User Show All Posts | Quote Reply
Pulky
Level: Guest

icon Re: Crystal reports and VB 6

Well, sorry. I should have given a little bit more information.

I want to print a bill. I´m trying to print data from an access database and i`m using ADO.

Thank you again.

Pulky.

12-08-2003 at 03:42 PM
| Quote Reply
attumm
Level: Guest

icon Re: Crystal reports and VB 6

Hey Pulky,

There are quite a few methods to extract data from DBs to Crystal report.
The two easy methods are:

Method 1:
a. ADD a DSN from ODBC Data Source Administrator.
b. Open your DB and write a TABLE & PARAMETER query to select set of records.
c. Open Crystal report, select the DSN (a).
d. Select the table (b)
e. Design your report, set report option to 'Refresh Data'.
f. Call the report from VB of run outside VB IDE.



Method 2:
a. ADD a DSN from ODBC Data Source Administrator.
b. Open your DB and write SELECT query to select set of records.
c. Open Crystal report, select the DSN (a).
d. Select the table (b)
e. Design your report, set report option to 'Refresh Data'.
f. Use 'Select Expert' option of Crystal report to filter data.
g. Call the report from VB of run outside VB IDE.


13-08-2003 at 06:11 AM
| Quote Reply
Shady
Level: VB Guru


Registered: 08-07-2002
Posts: 305
icon Re: Crystal reports and VB 6

OK,

So now we know what you are doing there are a couple of options.

You could use crystal report, of which I have no knowledge myself, if this is the way you wish to proceed I cannot advise you.

Or you could simply use the built in printer commands in VB.

Or you could create a template for your bill in Excel and have VB transfer the information from your DB to the spreadsheet.

It's time to decide!!!

Shady

____________________________
I don't wanna die... but I ain't keen on livin' either

13-08-2003 at 08:09 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Reporting tools : Crystal reports and VB 6
Previous Topic (Crystal Reports!!! Error Application Defined / User Define Error)Next Topic (Changing Crystal Header) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder