|
-
Dec 26th, 2004, 05:26 PM
#1
Thread Starter
PowerPoster
Crystal Reports 8.5 SelectionFormula
I am using CR 8.5 for reporting purposes. I am controlling the reporting thru VB6.0. My problem is that there is no "SelectionFormula" method to use.
Anyone have any ideas?
I have attached my code below:
VB Code:
Set oApp = New CRAXDRT.Application
Set oReport = oApp.OpenReport(App.Path & "\Reports\Invoice.rpt", 1)
CRViewer1.ReportSource = oReport
CRViewer1. ?
CRViewer1.ViewReport
What Method do I need to use to replace the question mark with?
Thanks,
Blake
-
Dec 26th, 2004, 05:27 PM
#2
Re: Crystal Reports 8.5 SelectionFormula
The SelectionFormula is under the oReport report object.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Dec 26th, 2004, 05:28 PM
#3
Thread Starter
PowerPoster
Re: Crystal Reports 8.5 SelectionFormula
No wonder.....Thanks Rob!
-
Dec 26th, 2004, 05:33 PM
#4
Thread Starter
PowerPoster
Re: Crystal Reports 8.5 SelectionFormula
Rob,
I am using the "GroupSelectionFormula" method? If this is the correct method, I am receiving the following error msg "This field name is not known" on the following line of code:
VB Code:
oreport.groupSelectionFormula = strFormula
-
Dec 26th, 2004, 06:05 PM
#5
Re: Crystal Reports 8.5 SelectionFormula
Edit: I didnt notice that you were not using an ADO rs as the reportsource. Would that be an option because it is easier sometimes to do all your grouping and sorting in the SQL string.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|