Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Exporting data (Data Table) to Excel

Hi,

I develop a windows application in C# and have a form with Data Table (Data
Grid). I need to export it to Excel to specific path (selected by the user in
SaveFileDialog). Can anybody tell me how I do it?
Code example will be more than welcomed.

Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 111
Default Exporting data (Data Table) to Excel

You may want to have your C# program save the data as a CSV (Preferred) or
Text (Tab delimited) file, which then Excel can take it from there and
convert it into an Excel spreadsheet.

Provided you know VBA in Excel, you can use the Object Browser within the
VBA side of Excel to view the various constants listed within the
"XlFileFormat" Class. Of course, for your C# program, you may have a
different set of constants for the File Type argument, which is the second
argument of the Dialogs(xlDialogSaveAs) object.

--
Ronald R. Dodge, Jr.
Production Statistician/Programmer
Master MOUS 2000

"Vlash" wrote in message
...
Hi,

I develop a windows application in C# and have a form with Data Table

(Data
Grid). I need to export it to Excel to specific path (selected by the user

in
SaveFileDialog). Can anybody tell me how I do it?
Code example will be more than welcomed.

Thank you.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Exporting data (Data Table) to Excel

Hi,
Check out this link..
this wil be use ful for u

http://support.microsoft.com/kb/306023/


thanks,
Jayavel Chakravarthy

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 111
Default Exporting data (Data Table) to Excel

Good thing in there though barely even looked over it. However, from the
little glance that I took a look at, I'm not so sure about the ADO and MS
Query stuff due to the memory leak issues that I have ran into using those
methods, which then caused my system to have to be rebooted so much sooner.

However, when you posted the link, you needed to add the "/en-us" at the
end, otherwise, it just posts as an invalid page with the MS's support
website area.

http://support.microsoft.com/kb/306023/en-us

--
Ronald R. Dodge, Jr.
Production Statistician/Programmer
Master MOUS 2000

wrote in message
ups.com...
Hi,
Check out this link..
this wil be use ful for u

http://support.microsoft.com/kb/306023/


thanks,
Jayavel Chakravarthy



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Pivot Table Plugin? (crosstab to data table) HoMoon115 Excel Discussion (Misc queries) 0 February 22nd 06 08:20 PM
how can i tell excel the data it has is in essence a pivot table Robin Krupp Excel Discussion (Misc queries) 1 February 10th 06 08:50 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Excel 2003, Convert EXISTING Worksheet Data to XML? [email protected] Excel Discussion (Misc queries) 4 November 16th 05 04:45 AM
Running Data Table using an input that triggers DDE linked data [email protected] Excel Discussion (Misc queries) 1 December 16th 04 11:56 AM


All times are GMT +1. The time now is 06:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"