Solved

prints

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

757 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

20 Experts available now in Live!

Get 1:1 Help Now