In the codeproject article it refers to
System.Web.UI.WebControls.DataGrid()
this doesn't seem to exist in VB2008 or VB2005.
How do I reference this?
:
Hello Chris,
Thanks for using Microsoft Newsgroup Support Service, my name is Ji
Zhou [MSFT] and I will be working on this issue with you.
As to your first question, we have the following three solutions to
export the data from a datatable into an Excel file:
1.Using Office automation as Gillard's code shows. In this approach,
each row in the datatable will cost one Excel COM server call. So the
speed is a little slow.
2.We can put the datatable in a System.Web.UI.WebControls.DataGrid
control and use the DataGrid's RenderControl function to export the
data into an Excel file. There is a sample article about this approach
in code project:
http://www.codeproject.com/KB/office/ExcelDataTable.aspx
3.We take the Excel file as a database and use OleDbConnection to
connect to it. After that, we can update our datatable to the Excel
file database. The following Microsoft KB article dedicate to this
method:
http://support.microsoft.com/kb/316934
As to the second question, we have the managed newsgroup
microsoft.public.sqlserver.reportingsvcs that targets at issues about
SQL Reporting services.
If you have any future questions, please feel free to let me know.
Best regards,
Ji Zhou (
[email protected], remove 'online.')
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments
and suggestions about how we can improve the support we provide to you.
Please feel free to let my manager know what you think of the level of
service provided. You can send feedback directly to my manager at:
(e-mail address removed).
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent
issues where an initial response from the community or a Microsoft
Support
Engineer within 1 business day is acceptable. Please note that each
follow up response may take approximately 2 business days as the
support
professional working with you may need further investigation to reach
the most efficient resolution. The offering is not appropriate for
situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are
best handled working with a dedicated Microsoft Support Engineer by
contacting Microsoft Customer Support Services (CSS) at
http://support.microsoft.com/select/default.aspx?target=assistance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.
#1 Is there a quick way to export a datatable to an excel file? Or
delimited file?
#2 Where is the appropriate Microsoft monitored group to ask about
writing reports in SQL Reporting services or SQL Server Business
Intelligence Development Studio or whatever it's called?