TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
try abc
1.1k
306
488.3k
problem in appending (.wri)wordpad file
May 2 2008 5:49 AM
hello everyone..
In my c# project I want to paste rtf text to wordpad from clipboard.I am using streamwriter for that.
I have three richtextbox and I am able to paste only first textbox data not others.
here is my code please help me...
Code: ( text )
StreamWriter sw = new StreamWriter("wpreview.wri");
for (int i = 0; i < count; i++)
{
child = clpbrd_panel.Controls["chkbox" + i];
if (child != null)
{
if (((CheckBox)child).Checked == true)
{
child = clpbrd_panel.Controls["rtextbox" + i];
((RichTextBox)child).SelectAll();
((RichTextBox)child).Copy();
idata = Clipboard.GetDataObject();
if (idata.GetDataPresent(DataFormats.Rtf))
{
sw.Write(idata.GetData(DataFormats.Rtf));
sw.WriteLine("");
}
}
}
sw.close();
Reply
Answers (
0
)
Video Editing In C# How?
check and get the name of device connect to PC using by c#