Click here to Skip to main content
15,910,980 members
Home / Discussions / C#
   

C#

 
QuestionReportViewer Properties in C# Pin
Davood Riazi14-Nov-07 3:10
Davood Riazi14-Nov-07 3:10 
AnswerRe: ReportViewer Properties in C# Pin
Abhijit Jana14-Nov-07 3:15
professionalAbhijit Jana14-Nov-07 3:15 
GeneralRe: ReportViewer Properties in C# Pin
Davood Riazi14-Nov-07 3:42
Davood Riazi14-Nov-07 3:42 
QuestionExceptions in Appdomain Pin
prasuaaron14-Nov-07 2:29
prasuaaron14-Nov-07 2:29 
QuestionC# Form and Mozilla engine Pin
springtime5414-Nov-07 2:11
springtime5414-Nov-07 2:11 
QuestionUploading Excell file to FTP Pin
Reddy Prakash14-Nov-07 1:25
Reddy Prakash14-Nov-07 1:25 
AnswerRe: Uploading Excell file to FTP Pin
Giorgi Dalakishvili14-Nov-07 1:29
mentorGiorgi Dalakishvili14-Nov-07 1:29 
GeneralRe: Uploading Excell file to FTP Pin
Reddy Prakash14-Nov-07 1:48
Reddy Prakash14-Nov-07 1:48 
Following code is working fine for word document
but incase of excel it is in binary format

// Get the object used to communicate with the server.
FtpWebRequest request = (FtpWebRequest)WebRequest.Create("ftp://172.22.4.14" + @"/" + "E3764_DetailedLevelDesign.doc");
request.Method = WebRequestMethods.Ftp.UploadFile;

// This example assumes the FTP site uses anonymous logon.
request.Credentials = new NetworkCredential("Danaher", "Motion$123");

// Copy the contents of the file to the request stream.
StreamReader sourceStream = new StreamReader("c://E3764_DetailedLevelDesign.doc");
byte[] fileContents = Encoding.UTF8.GetBytes(sourceStream.ReadToEnd());
sourceStream.Close();
request.ContentLength = fileContents.Length;

Stream requestStream = request.GetRequestStream();
requestStream.Write(fileContents, 0, fileContents.Length);
requestStream.Close();

FtpWebResponse response = (FtpWebResponse)request.GetResponse();

Console.WriteLine("Upload File Complete, status {0}", response.StatusDescription);

response.Close();


when i try to open the excell file in IE it is not in redable format.
AnswerRe: Uploading Excell file to FTP Pin
Guffa14-Nov-07 3:43
Guffa14-Nov-07 3:43 
GeneralRe: Uploading Excell file to FTP Pin
Reddy Prakash14-Nov-07 17:01
Reddy Prakash14-Nov-07 17:01 
QuestionHow To Start Service In Setup Application Pin
Boroumandan14-Nov-07 1:13
Boroumandan14-Nov-07 1:13 
AnswerRe: How To Start Service In Setup Application Pin
Abhijit Jana14-Nov-07 1:20
professionalAbhijit Jana14-Nov-07 1:20 
QuestionProblem with invoking new thread with socket parameter Pin
Coyote.Max14-Nov-07 1:09
Coyote.Max14-Nov-07 1:09 
AnswerRe: Problem with invoking new thread with socket parameter Pin
TJoe14-Nov-07 2:13
TJoe14-Nov-07 2:13 
GeneralRe: Problem with invoking new thread with socket parameter Pin
Coyote.Max14-Nov-07 4:35
Coyote.Max14-Nov-07 4:35 
QuestionParsing strings into TimeSpans Pin
Vikram A Punathambekar14-Nov-07 1:02
Vikram A Punathambekar14-Nov-07 1:02 
AnswerRe: Parsing strings into TimeSpans Pin
Pete O'Hanlon14-Nov-07 2:19
mvePete O'Hanlon14-Nov-07 2:19 
GeneralRe: Parsing strings into TimeSpans Pin
Vikram A Punathambekar14-Nov-07 3:38
Vikram A Punathambekar14-Nov-07 3:38 
QuestionHelp with Data Export Pin
MumbleB14-Nov-07 0:40
MumbleB14-Nov-07 0:40 
AnswerRe: Help with Data Export Pin
Rob Philpott14-Nov-07 2:21
Rob Philpott14-Nov-07 2:21 
GeneralRe: Help with Data Export Pin
MumbleB14-Nov-07 7:57
MumbleB14-Nov-07 7:57 
QuestionHow to start service Pin
Boroumandan14-Nov-07 0:35
Boroumandan14-Nov-07 0:35 
AnswerRe: How to start service Pin
Abhijit Jana14-Nov-07 0:43
professionalAbhijit Jana14-Nov-07 0:43 
GeneralRe: How to start service Pin
Boroumandan14-Nov-07 0:49
Boroumandan14-Nov-07 0:49 
GeneralRe: How to start service Pin
Abhijit Jana14-Nov-07 1:10
professionalAbhijit Jana14-Nov-07 1:10 

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.