Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

prints

Posted on 1998-10-17
5
Medium Priority
?
166 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 150 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses

972 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