|
-
Nov 14th, 2005, 08:40 PM
#1
Thread Starter
Fanatic Member
VB and Crystal Report
Hello,
I have developed a samll application about Student Information. The database i have used is SQL Server.
On the form i have 2 textboxes and 1 image box
when i write student id in Text1 is shows student name in text2 and picture in image1
How to print that Id, Name and Picture using Crystal Report.
Please help me
Thanks
Farooq
-
Nov 14th, 2005, 08:48 PM
#2
Re: VB and Crystal Report
Did you already create your report in CR? What version of CR are you using? Your only wanting to print the one record as entered by the user?
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 
-
Nov 14th, 2005, 08:52 PM
#3
Thread Starter
Fanatic Member
Re: VB and Crystal Report
i have not created the report yet bcoz my concepts was not clear about transfering the data form VB to Cr. I m using Cr 8.5. I want to print the report of the selected record.
Thanks
-
Nov 14th, 2005, 09:00 PM
#4
Re: VB and Crystal Report
After you create your report you can use the example code I have in my signature. It works with ADO, VB6, and CR 8.5
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 
-
Nov 14th, 2005, 09:05 PM
#5
Thread Starter
Fanatic Member
Re: VB and Crystal Report
-
Nov 15th, 2005, 07:18 AM
#6
Re: VB and Crystal Report
Is this question resolved?
-
Nov 15th, 2005, 01:34 PM
#7
Thread Starter
Fanatic Member
Re: VB and Crystal Report
No, this question is not resolved HACK. Do u have any advise to solve the above mention problem
-
Nov 18th, 2005, 01:14 AM
#8
New Member
Re: VB and Crystal Report
-
Sep 7th, 2006, 11:50 PM
#9
New Member
Re: VB and Crystal Report
Hi RobDog888,
Thanks for the sample code you have given under your signature.
I tried the code. I am using VB6.0 ,CR8.0 and ADO. Things are working well till the code reaches oReport.Database.selectDatabase oRs,3,1.
It is giving an error message "Subscript beyond range". I suspect this is because oRs is defined as Ado.Recordset and value required in place of oRs in the oReport.Database.SelectDatabase line is data.
Can you please help me?
Can you also tell me how do I define the values for Datatag and Table No that come up after the Data in the same line while writing the code?
Thanks
GeoCrystal
-
Sep 8th, 2006, 12:15 AM
#10
Re: VB and Crystal Report
It should be .SetDataSource and not .SetDatabase.
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, 03:08 AM
#11
New Member
Re: VB and Crystal Report
I am used .setDatasource. Getting the same error. Any other way?
Thanks
GeoCrystal
-
Sep 8th, 2006, 03:20 AM
#12
Re: VB and Crystal Report
Step through your code and verify that the error is on that line.
The only other thing I can think of is that your using 8.0 which may have different arguments.
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
|