|
-
Feb 18th, 2006, 07:51 AM
#1
Thread Starter
Lively Member
How to Generate the Report at Runtime
Hi,
Can someone help me about how can i generate the report at run time.
Cheers
-
Feb 18th, 2006, 11:55 PM
#2
Re: How to Generate the Report at Runtime
What type of reports are you wanting info on? Crystal Reports, Access Reports, or the Data Environment?
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 
-
Feb 20th, 2006, 06:56 AM
#3
Re: How to Generate the Report at Runtime
 Originally Posted by M.Zafar Iqbal
Hi,
Can someone help me about how can i generate the report at run time.
Cheers
What are you using for a front end? VB6? VB.NET? C#? What, if any, database are you using?
-
Feb 20th, 2006, 07:05 AM
#4
Thread Starter
Lively Member
Re: How to Generate the Report at Runtime
i am using
vb6 + Crystal Reports
-
Feb 20th, 2006, 08:43 AM
#5
Re: How to Generate the Report at Runtime
What verision of Crystal?
-
Feb 20th, 2006, 11:09 AM
#6
Thread Starter
Lively Member
Re: How to Generate the Report at Runtime
Vb6
crystal report v8.0
and
Sql Server 2000
Last edited by M.Zafar Iqbal; Feb 20th, 2006 at 11:17 AM.
-
Feb 20th, 2006, 12:23 PM
#7
Re: How to Generate the Report at Runtime
I have an example in my signature - "VB6/Crystal Reports Ex."
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 
-
Feb 21st, 2006, 02:47 AM
#8
Thread Starter
Lively Member
Re: How to Generate the Report at Runtime
i didn't found ?
can u plz send the link ?
-
Feb 21st, 2006, 03:06 AM
#9
Thread Starter
Lively Member
Re: How to Generate the Report at Runtime
Hi,
after i found it
you have placed this code there
Dim oApp As CRAXDRT.Application
Dim oReport As CRAXDRT.Report
Dim oRs As ADODB.Recordset
Dim sSQL As String
sSQL = "SELECT * FROM Table1"
Set oRs = New ADODB.Recordset
Set oRs = oCnn.Execute(sSQL)
Set oApp = New CRAXDRT.Application
Set oReport = oApp.OpenReport(App.Path & "\MyReport.rpt", 1)
oReport.Database.SetDataSource oRs, 3, 1
crvMyCRViewer.ReportSource = oReport
crvMyCRViewer.ViewReport
you passed the recordset to the report
is there a way to pass the date using loop
in other words can i pass the fields to report at runtime.
Cheers
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
|