Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Get Crystal Report Recordcount Using VB6

Posted on 2002-03-05
1
Medium Priority
?
517 Views
Last Modified: 2007-12-19
Hello All,

I'm using Crystal Reports 8.5 and VB6. What I have is an automated process that runs several reports. I would like to load the report recordcount into a variable to be used in my VB code. How do I pull that info. I'm using the following connection string into my Oracle DB. I've also included my print code. Please include an example. I'll give this one high points because it will help me out big time. Thanks in advance for any help you can give me.

Thanks

' Logs onto server in Crystal Reports
  crApplication.LogOnServer "p2sodbc.dll", "O8IPROD", O8IPROD, "username", "password"
 
  ' Prints the Customer Copy Invoices
  Set crReport1 = crApplication.OpenReport("c:\test_invoice_GSCopy.rpt")

crReport1.DiscardSavedData

crReport1.PrintOut False

0
Comment
Question by:mts9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
P1 earned 900 total points
ID: 6841961
Well there's:

Read% = CrystalReport1.RecordsRead
Printed& = CrystalReport1.RecordsPrinted
Selected& = CrystalReport1.RecordsSelected

These work with top level report, if the report itself has sub-reports, total records involved may not be available.

See Developer's Help file for more details.

Enjoy your work,  P1
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…
Suggested Courses

636 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