To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
Part 10 of the Visual Basic .NET 2010 Express Tutorial Complete!
How to Use the Visual Studio Code Analysis Tool FxCop
Article :: Interview with Andrei Alexandrescu (Part 3 of 3)
Introducing Visual Studio LightSwitch
Visual Studio LightSwitch Beta 1 is Available



Go Back   VBForums > Visual Basic > Reporting (Crystal, Access and Data Designer)

Reply Post New Thread
 
Thread Tools Display Modes
Old Mar 5th, 2007, 02:15 AM   #1
nasreen
Lively Member
 
Join Date: Apr 05
Posts: 71
nasreen is an unknown quantity at this point (<10)
Display the number of records in Crystal Report 9

Hi All,

Is there any idea to display the number of records in Crystal Report 9 (CRViewer91).

In crystal Repot 6, it is shown in the tool bar by default.

But in Crystl Repot 9 there is no such faciltiy.

Can anybody suggest a solution to display in the umber of record in report or in tool bar for Crystal Report 9.

Wit regards,

Nasreen

Last edited by nasreen; Mar 5th, 2007 at 02:44 AM.
nasreen is offline   Reply With Quote
Old Mar 5th, 2007, 02:18 AM   #2
RobDog888
Super Moderator
 
RobDog888's Avatar
 
Join Date: Apr 01
Location: LA, Calif. Raiders #1 AKA:Gangsta Yoda™
Posts: 58,875
RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)
Re: Display number of records in Crystal Report 9

Its been a while but you can create a running sum formula and add it to your report.
__________________
VB/Office Guru™ (AKA: Gangsta Yoda®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.

Microsoft MVP 2006, 2007, 2008, 2009, 2010
Office Development FAQ (VBA, VB 6, VB.NET, C#)
Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
Star Wars Gangsta Rap Reps & Rating PostsVS.NET on Vista (New)Multiple .NET Framework Versions (New)Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
System: Intel Core 2 Extreme Ed., 2 WD Raptor 10K RPM 150 GB HDs RAID 1, 2 GBs DDR2 667 MHz RAM, 3 Viewsonic 17" LCDs, Windows Vista RTM, IE 7, Office 2007
RobDog888 is offline   Reply With Quote
Old Mar 5th, 2007, 02:49 AM   #3
shakti5385
Just Married
 
shakti5385's Avatar
 
Join Date: Mar 06
Location: Udaipur,Rajasthan(INDIA)
Posts: 3,742
shakti5385 has a spectacular aura about (150+)shakti5385 has a spectacular aura about (150+)
Re: Display the number of records in Crystal Report 9

Read Crystal report tutorial at my signature, See the last Post.
__________________
My Blog : My Article of the day
shakti5385 is offline   Reply With Quote
Old Mar 5th, 2007, 03:29 AM   #4
nasreen
Lively Member
 
Join Date: Apr 05
Posts: 71
nasreen is an unknown quantity at this point (<10)
Re: Display the number of records in Crystal Report 9

Hi shakti5385,

Can u pls give me the link to the Crystal report tutorial at your signature

With regards,
Nasreen
nasreen is offline   Reply With Quote
Old Mar 5th, 2007, 03:36 AM   #5
shakti5385
Just Married
 
shakti5385's Avatar
 
Join Date: Mar 06
Location: Udaipur,Rajasthan(INDIA)
Posts: 3,742
shakti5385 has a spectacular aura about (150+)shakti5385 has a spectacular aura about (150+)
Re: Display the number of records in Crystal Report 9

__________________
My Blog : My Article of the day
shakti5385 is offline   Reply With Quote
Old Mar 5th, 2007, 04:15 AM   #6
nasreen
Lively Member
 
Join Date: Apr 05
Posts: 71
nasreen is an unknown quantity at this point (<10)
Re: Display the number of records in Crystal Report 9

Hi shakti5385

Thanks for your prompt reply

Here I use Crystal Repot 9 (CRViewer91) in VB6

I can't see a property or method as .RecordsPrinted under Crystal repot 9

Here is my exact VB code

VB Code:
  1. Private Sub CmdPrnt_Click()
  2. Dim CrystApp As CRAXDRT.Application
  3. Dim CrystRpt As CRAXDRT.Report
  4. Dim MyFrmDtlRpt As New FrmRptViewr 'Form with CRViewer91 to view the report
  5. Set CrystApp = New CRAXDRT.Application
  6. Set CrystRpt = CrystApp.OpenReport("Reports\EBLStlRpt.rpt")
  7. CrystRpt.DiscardSavedData
  8. MyFrmDtlRpt.CRViewer91.ReportSource = CrystRpt
  9. MyFrmDtlRpt.CRViewer91.Refresh
  10. MyFrmDtlRpt.CRViewer91.ViewReport
  11. MyFrmDtlRpt.Show
  12. Set CrystApp = Nothing
  13. Set CrystRpt = Nothing
  14. End Sub

How can I display the number of records in my this report.

With regards,

Nasreen
nasreen is offline   Reply With Quote
Old Mar 5th, 2007, 04:19 AM   #7
nasreen
Lively Member
 
Join Date: Apr 05
Posts: 71
nasreen is an unknown quantity at this point (<10)
Re: Display number of records in Crystal Report 9

Hi Mr. RobDog888

Your rpelay

Quote:
Originally Posted by RobDog888
Its been a while but you can create a running sum formula and add it to your report.

Can u pls describe me how can I run the sum formula as you think. Which field I can use for sum. ?

With regards,
Nasreen
nasreen is offline   Reply With Quote
Old Mar 5th, 2007, 04:20 AM   #8
shakti5385
Just Married
 
shakti5385's Avatar
 
Join Date: Mar 06
Location: Udaipur,Rajasthan(INDIA)
Posts: 3,742
shakti5385 has a spectacular aura about (150+)shakti5385 has a spectacular aura about (150+)
Re: Display the number of records in Crystal Report 9

Crystal report control has a .RecordPrinted Property you can pass the value of this property using the parameter in the crystal report.
http://vbforums.com/showpost.php?p=2647344&postcount=3
__________________
My Blog : My Article of the day
shakti5385 is offline   Reply With Quote
Old Mar 5th, 2007, 11:07 AM   #9
nasreen
Lively Member
 
Join Date: Apr 05
Posts: 71
nasreen is an unknown quantity at this point (<10)
Re: Display the number of records in Crystal Report 9

Hi shakti5385

Thanks,

But your idea is only applicable for Crystal Report OCX control, which is no longer available all new features of crystal report 8 and onwards

Even the Seaget crystal report team doesn't suggest to use this control more after the release of Crystal Report 8. They suggest to use The Report Designer Component (RDC) as a better method.

And we cannot open a report designed in Crystal Report 9 using .Action method of this Crystal Reprot OCX control. If we try, a run time error Unable to load report. will come.

Overall, if we use this OCX control for a reprot designed in Crystal Report 6, the number of records will be displayed on the tool bar of the report by default, the case already I indicated in my first question.

But as I think your this idea is not applicable for crystal report 9, especially for (RDC) method.

So if you have an idea which is alo applicable for crystal report 9, pls help in this regards.

With regards,
Nasreen
nasreen is offline   Reply With Quote
Old Mar 5th, 2007, 01:41 PM   #10
RobDog888
Super Moderator
 
RobDog888's Avatar
 
Join Date: Apr 01
Location: LA, Calif. Raiders #1 AKA:Gangsta Yoda™
Posts: 58,875
RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)
Re: Display number of records in Crystal Report 9

Quote:
Originally Posted by nasreen
Hi Mr. RobDog888

Your rpelay




Can u pls describe me how can I run the sum formula as you think. Which field I can use for sum. ?

With regards,
Nasreen
Inside CR you can select the menu item to Add a field to your report. In htat window is the various types of fields to add. A formula field is one of them. Click create new.
__________________
VB/Office Guru™ (AKA: Gangsta Yoda®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.

Microsoft MVP 2006, 2007, 2008, 2009, 2010
Office Development FAQ (VBA, VB 6, VB.NET, C#)
Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
Star Wars Gangsta Rap Reps & Rating PostsVS.NET on Vista (New)Multiple .NET Framework Versions (New)Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
System: Intel Core 2 Extreme Ed., 2 WD Raptor 10K RPM 150 GB HDs RAID 1, 2 GBs DDR2 667 MHz RAM, 3 Viewsonic 17" LCDs, Windows Vista RTM, IE 7, Office 2007
RobDog888 is offline   Reply With Quote
Old Mar 6th, 2007, 12:31 AM   #11
shakti5385
Just Married
 
shakti5385's Avatar
 
Join Date: Mar 06
Location: Udaipur,Rajasthan(INDIA)
Posts: 3,742
shakti5385 has a spectacular aura about (150+)shakti5385 has a spectacular aura about (150+)
Re: Display the number of records in Crystal Report 9

Ok that’s fine
If you do not want t use the OCX control then best idea is that you can use parameter in the crystal report, using the parameter you can pass the value of the total printed record (you can get them from the SQL query).
__________________
My Blog : My Article of the day
shakti5385 is offline   Reply With Quote
Reply

Go Back   VBForums > Visual Basic > Reporting (Crystal, Access and Data Designer)


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:35 AM.





Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.