|
-
Jun 15th, 2006, 07:14 AM
#1
Thread Starter
Member
[RESOLVED] hi
Hi all
I am trying to pass some values from a Visual Basic 6 MSHFlexGrid to a CrystalReport 11 report.
Is there any example or something?
Thank you
-
Jun 15th, 2006, 08:58 AM
#2
Frenzied Member
Re: hi
How does your grid get loaded?
Instead of the grid itself, it might be easier to pass it the recordset (if you are using one) that loads the grid.
Beantown Boy
Please use [highlight=vb]your code goes in here[/highlight] tags when posting code.
When you have received an answer to your question, please mark it as resolved using the Thread Tools menu.
-
Jun 15th, 2006, 09:18 AM
#3
Re: hi
There is a Paramaters collection of the report object that you can use to pass parameters from VB to CR. Does CR XI still support ADO recordsets? If so you can do like SeanK posted and set the reports DataSource to your recordset.
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 
-
Jun 16th, 2006, 01:31 AM
#4
Thread Starter
Member
Re: hi
 Originally Posted by RobDog888
There is a Paramaters collection of the report object that you can use to pass parameters from VB to CR. Does CR XI still support ADO recordsets? If so you can do like SeanK posted and set the reports DataSource to your recordset.
I dont use a recordset. I type all values that I use and insert in my grid.
Any idea.
-
Jun 16th, 2006, 01:54 AM
#5
Re: hi
Sounds like your going to have to loop through your grid and write the values to a recordset.
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 
-
Jun 16th, 2006, 01:58 AM
#6
Thread Starter
Member
Re: hi
 Originally Posted by RobDog888
Sounds like your going to have to loop through your grid and write the values to a recordset.
No I type the values I want to the grid then is done some calculates and I wont to print the result of the calculation to the report.
-
Jun 16th, 2006, 07:52 AM
#7
Thread Starter
Member
Re: hi
I uderstarnd but I dont wont to use Recordset
-
Jun 16th, 2006, 09:49 AM
#8
Re: hi
Well the only way is to set a datasource for your report. You can not just use typed values.
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 
-
Jun 19th, 2006, 04:59 AM
#9
Thread Starter
Member
Re: hi
How I can make this Datasource?
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
|