|
-
Oct 30th, 2006, 02:52 AM
#1
Thread Starter
Hyperactive Member
no of rows one excel sheet could accomodate
Plz any one help me in this regard ...
I need to save data from my SQL server table to en excel file ... Now i need to know how many records could be accomodated in one worksheet ... If records get more than 1 sheet will it automatically move to 2nd work sheet or we have to control it manually.
-
Oct 30th, 2006, 03:11 AM
#2
Re: no of rows one excel sheet could accomodate
The number of rows an Excel sheet can hold is hardly a C# question. You should go to MSDN and read about Excel and the capabilities of each version. As for whether anything will automatically go to the next sheet, no matter how you're interacting with Excel you always specify the worksheet so if you want to change worksheets you have to specify the new one.
-
Oct 30th, 2006, 03:26 AM
#3
Re: no of rows one excel sheet could accomodate
Excel can hold 65,535 rows on a single sheet.
How are you exporting the SQL data?
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 30th, 2006, 05:47 AM
#4
Thread Starter
Hyperactive Member
Re: no of rows one excel sheet could accomodate
thnx rob .. m just extracting data from table to a dataset and then thru data set export all rows to an excel file
-
Oct 30th, 2006, 06:57 AM
#5
Re: no of rows one excel sheet could accomodate
As I said, when you interact with an Excel sheet you have to specify which sheet it is. If you're using ADO.NET then you use the sheet name as the table name in your SQL code. If you specify the name of a sheet that has too many rows then ADO.NET won't simply ignore your sheet specification and arbitrarily put the data into another worksheet. It will throw an exception.
-
Oct 30th, 2006, 10:48 AM
#6
Re: no of rows one excel sheet could accomodate
Well that is why you would want to keep track of the number of records.
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
|