|
-
Oct 3rd, 2006, 11:56 PM
#1
Thread Starter
Hyperactive Member
Export data from a tabe to excel sheet
I need to develop an export module thru which data of a table will be moved to an excel sheet . Can any one help me in this regard? from where should i start?
-
Oct 4th, 2006, 12:42 AM
#2
Re: Export data from a tabe to excel sheet
Use an OleDbConnection connection to a blank Excel workbook file. You can get the connectionstring from connectionstrings.com.
Then its just an Insert Into statement from your table to your Excel Sheet.
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 4th, 2006, 01:23 AM
#3
Thread Starter
Hyperactive Member
Re: Export data from a tabe to excel sheet
Thanx Rob i m trying it now and will tell u abt it
-
Oct 4th, 2006, 01:32 AM
#4
Re: Export data from a tabe to excel sheet
You will need to create the blank excel file first manually and then embed it and when run, extract it in from your app for writting to.
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 4th, 2006, 01:36 AM
#5
Lively Member
Re: Export data from a tabe to excel sheet
But will it allow to export more than 16K records.
I am doing similar operation in VB6 but it give me error message 3437: spreadsheet is full.
I am having approximately 50 K records which i need to save in excel.
-
Oct 4th, 2006, 01:43 AM
#6
Re: Export data from a tabe to excel sheet
Excel can hold 65,535 records in a single sheet.
Maybe if you have a memo type field its taking up more then the average space?
do you have a thread in the VB 6 forum for it?
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 4th, 2006, 01:49 AM
#7
Lively Member
Re: Export data from a tabe to excel sheet
Thanx Rob. I will start a new thread in VB6 forum and will post the code in that.
Hope to get the help there.
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
|