Solved

Get Crystal Report Recordcount Using VB6

Posted on 2002-03-05
1
505 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
1 Comment
 
LVL 4

Accepted Solution

by:
P1 earned 300 total points
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

744 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

16 Experts available now in Live!

Get 1:1 Help Now