Solved

prints

Posted on 1998-10-17
5
162 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

820 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