Crystal Reports with VB Pro 4.0 
Author Message
 Crystal Reports with VB Pro 4.0

Is there a way to print reports from a data control with VB Pro 4.0
and Crystal Reports 3.0 ??    I have a query system that I would like
to add the option to print the results.  By printing from the data
control I wouldn't have to use Crystal Reports to execute yet another
SQL query.

Thanks in Advance!

/*
Andrew Carter
Oak Ridge National Laboratory
http://www.*-*-*.com/
*/
/*

   Oak Ridge National Laboratory
    http://www.*-*-*.com/
*/



Sun, 17 May 1998 03:00:00 GMT  
 Crystal Reports with VB Pro 4.0
Quote:

> Is there a way to print reports from a data control with VB Pro 4.0
> and Crystal Reports 3.0 ??    I have a query system that I would like
> to add the option to print the results.  By printing from the data
> control I wouldn't have to use Crystal Reports to execute yet another
> SQL query.

> Thanks in Advance!

> /*
> Andrew Carter
> Oak Ridge National Laboratory
> http://www.ornl.gov
> */
> /*

>    Oak Ridge National Laboratory
>    http://www.ornl.gov
> */Check out the bound control option of Crystal Reports. The process is something

like
1) Set the DataSource property to the Datacontrol on the form.
2) Set the ReportSource property to 3-All Data Control Fields
3) Click on the Custom property and scroll over to databound report (You have to
use the scroll arrow to see it) Click on Save Report As and give it a file name
4) Now use the Crystal Reports Designer using the file name you just gave to lay
out your report the way you want it. (Crystal defaulted to what it thought was the
best)
5) Back in your VB application, change the ReportSource property to 0-Crystal
Report. And the ReportName property to your file.
6) Now whenever you execute the query in your data control, that information will
be transferred to your report.

The big disadvantage to this method is that if your query changes such that
additional fields/tables are added, then you have to go through this entire process
again. If your report is a complicated layout, redesigning it a lot can be
cumbersum. One last note, I have the professional version of Crystal Reports. I am
not sure if the one that ships with VB4 has this bound report option.

--
Tim




Mon, 18 May 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Crystal Reports for VB 4.0 pro 32bit bug?

2. VB 4.0 (32) and Crystal Reports Pro 5.0

3. Exporting to HTML using the Version of Crystal Reports that Comes with VB 4.0 Pro

4. Visual Basic 4.0 Pro, Crystal Reports, Access 7.9 under NT 3.51

5. Crystal Reports pro 4.0 x VB4 x MS-Access 7

6. FORSALE: Graphics Server & Crystal Reports Pro 4.0

7. Top N Query in Crystal Reports 4.0 Pro

8. Crystal Reports 4.0 Pro !, Decent, finally...

9. Bound Report in Crystal Reports 3.1 pro/VB 3.0

10. Help please: VB 3.0 pro to VB 4.0 pro

11. Help please: VB 3.0 pro to VB 4.0 pro

12. VB 3.0 Pro vs VB 4.0 Pro

 

 
Powered by phpBB® Forum Software