Save the File With Picture
-
Dear All, I am using vb.net and creating a simple application like wordpad.I used the Rich text box control as the platform.I can insert the picture in Rich Text box control,But my problem is thai i can't save the created file with the inserted picture only text content are saved.I choose the save option in (*.Doc)format.Please help me i am new in .net technology.
-
Dear All, I am using vb.net and creating a simple application like wordpad.I used the Rich text box control as the platform.I can insert the picture in Rich Text box control,But my problem is thai i can't save the created file with the inserted picture only text content are saved.I choose the save option in (*.Doc)format.Please help me i am new in .net technology.
Hello, If you have image in a Rich Text Box, you may use following line of code to save it with image- RichTextBox1.SaveFile("C:\FileWithImage.rtf", RichTextBoxStreamType.RichText) You may save this data directly to RTF file using .rtf extension. This rtf file can be opened in MS Word or can be loaded in RichTextBox again using LoadFile method. I hope this helps:). -Dave.
Dave Traister, ComponentOne LLC. www.componentone.com
-
Hello, If you have image in a Rich Text Box, you may use following line of code to save it with image- RichTextBox1.SaveFile("C:\FileWithImage.rtf", RichTextBoxStreamType.RichText) You may save this data directly to RTF file using .rtf extension. This rtf file can be opened in MS Word or can be loaded in RichTextBox again using LoadFile method. I hope this helps:). -Dave.
Dave Traister, ComponentOne LLC. www.componentone.com