|
-
Mar 24th, 2006, 12:08 PM
#1
Thread Starter
Lively Member
Producing Reports
Hi,
can anyone please enlight me in how can I produce reports with Visual Basic? I am using Adodc's to extract data and present them in forms through a Datagrid, but I also wish these data (extracted with an SQL statement) to be printed as a report.. But I don't know how to do it. Can anyoone pls heeelp?
thx
-
Mar 24th, 2006, 12:34 PM
#2
Member
Re: Producing Reports
search information on "datareport" and export to excel.
If an answer to your question has been helpful, then please, Rate it! where are u?
On Staying Informed and Intellectual Self-Defense
There's no way to be informed without devoting effort to the task, whether we have in mind what's happening in the world, or anything else. Understanding doesn't come free. But it's feasible for anyone who is part of a cooperative community -- Same holds for "intellectual self-defense."
By Noam Chomsky
-
Mar 24th, 2006, 12:48 PM
#3
Re: Producing Reports
Moved to reporting section
There is also Crystal Reports as well as Access itself.
-
Mar 24th, 2006, 01:22 PM
#4
Thread Starter
Lively Member
Re: Producing Reports
No, you didn't understand. I am developing a system for users and besides viewing fields from the database I want to give to the user the possibility of printing data... So I cannot use Access or excel. I want to have a button, lets say, and that button when pressed prints the data. Please suggest something more appropriate.
thx a million!
-
Mar 25th, 2006, 01:35 AM
#5
Member
-
Mar 25th, 2006, 07:50 AM
#6
Thread Starter
Lively Member
-
Mar 25th, 2006, 06:28 PM
#7
Member
Re: Producing Reports
if you've got the vb6 cd, look in x:/common/tools/vb/crysrept
this is crystal reports 4.x - once loaded, you can add the Active X component to vb, add it to your project, and use this to draw up reports.
format the report in the CR application, then call it from vb by:
crpReports.ReportFileName = "whatever.rpt"
crpReports.Destination = 0 ' show report in window first
crpReports.PrintReport
where crpReports is the cr4 object added to the project.
a warning: cr is up to version 11, cr4 is considered hopelessly outdated. But the developer edition of cr11 (the only one you can call from vb) costs US$600 - I'm prepared to put up with cr4 for now.
good luck, this may open a can of worms, Peter
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|