|
-
Oct 22nd, 2007, 12:18 AM
#1
Thread Starter
Lively Member
how to create report without database
hello,
is there a way to create a report without a database?
i want everything to show on the report in runtime.
-
Oct 22nd, 2007, 01:11 AM
#2
Re: how to create report without database
What report? Crystal Reports, Access Report, etc. ?
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 
-
Oct 22nd, 2007, 01:52 AM
#3
Thread Starter
Lively Member
Re: how to create report without database
the normal reports that comes with vb6
-
Oct 22nd, 2007, 02:05 AM
#4
Re: how to create report without database
That is really outdated but its the VB 6 Data Report.
I havent used it since 1998 just after VB 6 came out as its too limited and cumbersome.
If you can write some kind of textfile or ini file you may be able to connect to it instead but Im unsure.
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 
-
Oct 23rd, 2007, 01:35 PM
#5
Re: how to create report without database
you could use something like this,
Code:
Dim rsP As New ADODB.Recordset
With rsP
' Create Recordset Fields (Columns) here
.Fields.Append "tender", adVarChar, 10
.Fields.Append "activity", adVarChar, 8
.Fields.Append "reading", adVarChar, 10
.Fields.Append "turn out", adVarChar, 12
.Fields.Append "date", adVarChar, 10
.Fields.Append "time", adVarChar, 10
.Fields.Append "cfs", adVarChar, 6
.CursorType = adOpenKeyset
.LockType = adLockOptimistic
.Open
End With
' load the data into the recordset
With report1
' Bind the Recordset to the Report
Set .DataSource = rsP
.DataMember = rsP.DataMember
.Show
End With
Assign the text boxes on report1 to use the fields from the recordset.
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
|