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
brad skipper
NA
1
1.4k
App wont save inline images,, thy load and del on re-opening of the rtf
Jul 8 2012 1:10 PM
public void SaveMyFile()
{
SaveFileDialog saveFile1 = new SaveFileDialog();
saveFile1.DefaultExt = "*.rtf";
saveFile1.Filter = "RTF Files|*.rtf";
if (saveFile1.ShowDialog() == System.Windows.Forms.DialogResult.OK && saveFile1.FileName.Length > 0)
{
textArea.SaveFile(saveFile1.FileName, RichTextBoxStreamType.TextTextOleObjs);
}
}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
private void addImage(String name) {
try
{
string szFileName = Path.Combine(Environment.CurrentDirectory,@"..\..\emoticons\"+name+".png"); Bitmap bitImage = new Bitmap(szFileName); Clipboard.SetDataObject(bitImage);
DataFormats.Format objFormat =DataFormats.GetFormat(DataFormats.Bitmap);
if (textArea.CanPaste(objFormat))
{
textArea.Paste(objFormat);
}
}
catch (Exception)
{ textArea.AppendText("ErroR"); }
}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
When I re-open the App and load the rtf the loaded images are gone please help
Reply
Answers (
1
)
C# working with linq
unload or exit application