Click here to Skip to main content
15,921,840 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,


I am using C# wpf application,through this application i will open the files, but the thing is i want to copy all contents from the currently opened active file.


can you please help me.

Thanks,
Posted
Comments
ZurdoDev 3-Apr-13 8:57am    
If you have code to open a file where are you stuck? Just read the contents into a variable and then do whatever you need to.
Pheonyx 3-Apr-13 8:57am    
What sort of files are you accessing? What have you tried? Are you trying to copy the file as it is and just re-name it?

There are various approaches you can take and you need to be a bit clearer about what you want to do?
Ayyappan Ravi 3-Apr-13 9:12am    
Hi friend,

I am trying to copy content of outlook mails body. i am able to open the outlook message file. can you please help me to copy the body content to word file as RTF.

Thanks.

1 solution

This is not something I have tried before but the following link provides an e-mail access class that can return pure text or html text depending on the type of body found in the e-mail.

It may provide some basis for what you are trying to achieve:

http://www.example-code.com/csharp/email_body.asp[^]
 
Share this answer
 
Comments
Ayyappan Ravi 3-Apr-13 11:11am    
Hin friend,

Thanks for the solution. but this one is fine with email file (.mime) here i have outlook mails (.msg) files . its not copying my datas.


Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900