Click here to Skip to main content
15,886,362 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to restart Console Application at Main Method Pin
I Believe In GOD14-Jun-09 10:50
I Believe In GOD14-Jun-09 10:50 
AnswerRe: How to restart Console Application at Main Method Pin
PIEBALDconsult14-Jun-09 15:14
mvePIEBALDconsult14-Jun-09 15:14 
AnswerRe: How to restart Console Application at Main Method [modified] Pin
XA21X30-Aug-10 19:48
XA21X30-Aug-10 19:48 
QuestionXLS to CSV - header problem Pin
Fehim Dervišbegović14-Jun-09 5:46
Fehim Dervišbegović14-Jun-09 5:46 
AnswerRe: XLS to CSV - header problem Pin
Henry Minute14-Jun-09 9:47
Henry Minute14-Jun-09 9:47 
GeneralRe: XLS to CSV - header problem Pin
Fehim Dervišbegović14-Jun-09 23:07
Fehim Dervišbegović14-Jun-09 23:07 
Questiondatagridview to excell Pin
michaelgr114-Jun-09 5:27
michaelgr114-Jun-09 5:27 
AnswerRe: datagridview to excell Pin
Fehim Dervišbegović14-Jun-09 5:55
Fehim Dervišbegović14-Jun-09 5:55 
You can try to do that with:

http://www.devexpress.com[^] components which are not free but they worth.

You can export datagrid in excel/pdf/html/xml ... with few lines of code.


In order that you want to use "native" datagridview, you can try to save underlaying dataset to excel using JET drivers or ODBC connection.

Here is how you can made connection:

public OleDbConnection Conn
{
get {
if (conn == null)

//conn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + filePath + ";Extended Properties=Excel 8.0;");
conn = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + filePath + ";Extended Properties=Excel 12.0;");
return conn;
}
}

Best regards,
Fehim.
GeneralRe: datagridview to excell Pin
michaelgr114-Jun-09 6:01
michaelgr114-Jun-09 6:01 
GeneralRe: datagridview to excell Pin
Fehim Dervišbegović14-Jun-09 6:16
Fehim Dervišbegović14-Jun-09 6:16 
AnswerRe: datagridview to excell Pin
I Believe In GOD14-Jun-09 10:52
I Believe In GOD14-Jun-09 10:52 
Question[Message Deleted] Pin
CoderForEver14-Jun-09 2:53
CoderForEver14-Jun-09 2:53 
AnswerRe: how could i make my program to be opened only one instance @ a time when installed to my buyer's computer Pin
Henry Minute14-Jun-09 3:18
Henry Minute14-Jun-09 3:18 
AnswerRe: how could i make my program to be opened only one instance @ a time when installed to my buyer's computer Pin
OriginalGriff14-Jun-09 3:46
mveOriginalGriff14-Jun-09 3:46 
GeneralRe: how could i make my program to be opened only one instance @ a time when installed to my buyer's computer Pin
Henry Minute14-Jun-09 9:50
Henry Minute14-Jun-09 9:50 
GeneralRe: how could i make my program to be opened only one instance @ a time when installed to my buyer's computer Pin
CoderForEver15-Jun-09 7:18
CoderForEver15-Jun-09 7:18 
GeneralRe: how could i make my program to be opened only one instance @ a time when installed to my buyer's computer Pin
OriginalGriff15-Jun-09 8:21
mveOriginalGriff15-Jun-09 8:21 
GeneralRe: how could i make my program to be opened only one instance @ a time when installed to my buyer's computer Pin
CoderForEver15-Jun-09 23:41
CoderForEver15-Jun-09 23:41 
AnswerRe: how could i make my program to be opened only one instance @ a time when installed to my buyer's computer Pin
Coding 10114-Jun-09 4:19
Coding 10114-Jun-09 4:19 
GeneralRe: how could i make my program to be opened only one instance @ a time when installed to my buyer's computer Pin
CoderForEver15-Jun-09 7:27
CoderForEver15-Jun-09 7:27 
AnswerRe: how could i make my program to be opened only one instance @ a time when installed to my buyer's computer Pin
OriginalGriff14-Jun-09 4:36
mveOriginalGriff14-Jun-09 4:36 
GeneralRe: how could i make my program to be opened only one instance @ a time when installed to my buyer's computer Pin
Dave Kreskowiak14-Jun-09 4:51
mveDave Kreskowiak14-Jun-09 4:51 
AnswerRe: how could i make my program to be opened only one instance @ a time when installed to my buyer's computer Pin
Luc Pattyn14-Jun-09 5:24
sitebuilderLuc Pattyn14-Jun-09 5:24 
GeneralRe: how could i make my program to be opened only one instance @ a time when installed to my buyer's computer Pin
CoderForEver15-Jun-09 7:26
CoderForEver15-Jun-09 7:26 
GeneralRe: how could i make my program to be opened only one instance @ a time when installed to my buyer's computer Pin
Luc Pattyn15-Jun-09 8:17
sitebuilderLuc Pattyn15-Jun-09 8:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.