Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Save the File With Picture

Save the File With Picture

Scheduled Pinned Locked Moved Visual Basic
helpcsharp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Wlink
    wrote on last edited by
    #1

    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.

    A 1 Reply Last reply
    0
    • W Wlink

      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.

      A Offline
      A Offline
      Ajay k_Singh
      wrote on last edited by
      #2

      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

      W 1 Reply Last reply
      0
      • A Ajay k_Singh

        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

        W Offline
        W Offline
        Wlink
        wrote on last edited by
        #3

        Thanks Sir, Your code helped me to solve my problem.I hope same kind of Response in next time. Pawan Nepal Wlink Tech. Kathmandu, Nepal

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups