|
-
Sep 8th, 2006, 05:24 AM
#1
Thread Starter
Addicted Member
Crystal Report Problem
I AM USING CR 8.0 WITH VB 6.0
I HAVE A TABLE IN THE DATA BASE FROM WHICH I FILL THE FIELDS IN THE REPORT TILL NOW I WAS HAVING A SINGLE SET OF RECORD IN THAT TABLE BUT NOW I AM HAVING MORE THAN ONE SET OF RECORDS
WHAT I WANT IS THAT IF I HAVE 2 RECORDS IN THE TABLE THEN THE REPORT MUST SHOW 2 PAGES IN PREVIEW
TILL NOW I WAS USING THE FOLLOWING CODE FOR AT THE LOAD OF THE FORM THAT CONTAINED CRYSTAL VIEWER
VB Code:
Private Sub Form_Load()
Dim oapp As CRAXDRT.Application
Dim rpt As CRAXDRT.Report
Set oapp = New CRAXDRT.Application
Set rpt = oapp.OpenReport(App.Path & "\tax invoice.rpt", 1)
rpt.RecordSelectionFormula = "{DATA2.inv}='" & val(new1("INV")) & "'"
rpt.RecordSelectionFormula = "{kapil.article}='" & val(new1("anum")) & "'"
cr1.ReportSource = rpt
cr1.ViewReport
End Sub
PLZ TELL ME HOW TO DO THAT
Using VB.NET 2003/.NET 1.1
If you found a post useful then please Rate it!
Please mark you thread resolved using the Thread Tools above
-
Sep 8th, 2006, 06:58 AM
#2
Re: Crystal Report Problem
Moved to Reporting Section
-
Sep 8th, 2006, 07:00 AM
#3
Re: Crystal Report Problem
You will need to modify your RecordSelectionFormula to be able to include both or multiple records that fit your criteria.
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 
-
Sep 8th, 2006, 11:17 PM
#4
Thread Starter
Addicted Member
Re: Crystal Report Problem
sir, can u just give me a simple example of how to insert multiple records in a single reports
plz help
Using VB.NET 2003/.NET 1.1
If you found a post useful then please Rate it!
Please mark you thread resolved using the Thread Tools above
-
Sep 9th, 2006, 03:24 AM
#5
Re: Crystal Report Problem
I have an example in my signature for VB6/CR/ADO.
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 
-
Sep 9th, 2006, 05:07 AM
#6
Thread Starter
Addicted Member
Re: Crystal Report Problem
VB Code:
oReport.Database.SetDataSource oRs, 3, 1
sir plz can u just explain this line
what is data base
ors is recordsource ?
oreport is a report
Using VB.NET 2003/.NET 1.1
If you found a post useful then please Rate it!
Please mark you thread resolved using the Thread Tools above
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
|