Solved

prints

Posted on 1998-10-17
5
160 Views
Last Modified: 2010-04-30
I have a big amount of data to retrieve from one or two databases and print them in a matrix printer.
Should I make reports in crystal reports or make it in a function in VB using the Printer.print....intructions?
Thanks
0
Comment
Question by:asimoes
  • 2
  • 2
5 Comments
 
LVL 3

Expert Comment

by:traygreen
ID: 1440352
Depends on what you want out fof the data.  If it is just a quick and dirty dump user the printer object.  If there is a good chance the format of the output needs to change and you don't want to have to read a layout file to print or recompile, then use Crystal Reports(as then anyone can make the changes)
0
 

Accepted Solution

by:
pbirkbeck earned 50 total points
ID: 1440353
If you have a large amount of data from multiple data sources and need to create a report here is what I would do:

Crystal is notoriously bad and slow for doing anything but the easiest of joins in the same database, let alone across data sources.  Create a table in one of the databases.  If this is a
report that you run all the time, just create it and leave it there.  If you want to, you can create the table on the fly in your source but it is much easier if it is just there already.  In your program, write the code that will:
   a) delete the contents of the table
   b) select the data you need out of as many disparate data
      sources as required
   c) insert the data into the report table
   d) use Crystal to report off of that one table

I think you'll find that you will have much more control over your reported data that way.

Paul
0
 

Author Comment

by:asimoes
ID: 1440354
Well.This is the situation:
Every time I report is printed I need to save in a table some data saying that that report come out.
Can I control this with the Crystal Reports or it's better to do it with the printer object?
Thanks
0
 

Expert Comment

by:pbirkbeck
ID: 1440355
Crystal or the printer object won't save any data to a table, you have to do this with plain old VB and just show a message box or something.  Maybe I don't understand the problem fully.  Presumably the user clicks a button or something in your program to force the report to come out.  At this time you would save something to the database to indicate it has been produced.
0
 

Author Comment

by:asimoes
ID: 1440356
Well that´s the way it is, so What should I use printer object or Crystal Reports?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now