.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> Windows Application >> Post New QuestionBookmark and Share Subscribe to Forum

how to save file in Multipal Extenstion using c#

Posted By: Naim Khan     Posted Date: August 23, 2010    Points:2   Category :Windows Application
hello friends,
i want to save data grid View Data in Multiple Extension like Excel, Access and Text file using C#.. so please tell me how can i save into these Extension....

Responses
Author: Hiren Soni             
Posted Date: August 23, 2010     Points: 5   

try to search in google like:

export gridview to excel
export gridview to access
export gridview to text file

Hiren soni
http://www.dotnetask.com
Author: Nikhil Kumar             
Posted Date: August 23, 2010     Points: 5   

use can follow this...

try
{
SaveFileDialog1.Title = "Save File";
SaveFileDialog1.DefaultExt = "rtf";
SaveFileDialog1.Filter = "Rich Text Files|*.rtf|Text Files|*.txt|HTML Files|*.htm|All Files|*.*";
SaveFileDialog1.FilterIndex = 1;

if (SaveFileDialog1.ShowDialog() == DialogResult.OK)
{

if (SaveFileDialog1.FileName == "")
{
return;
}


Be helpful and enjoy life because it comes only onces. Give all the happiness to yours and remember it doesn't comes by money ...


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend