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. Mobile Development
  3. Mobile
  4. RTF files

RTF files

Scheduled Pinned Locked Moved Mobile
csharp
5 Posts 3 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.
  • _ Offline
    _ Offline
    _tasleem
    wrote on last edited by
    #1

    hi i want my application(vb.net mobile application) to read the RTF file i tried myself but it does not work i mean controll is not available in toolbox,is there is any other controll/way to show the RTF files. Tasleem Arif

    L 1 Reply Last reply
    0
    • _ _tasleem

      hi i want my application(vb.net mobile application) to read the RTF file i tried myself but it does not work i mean controll is not available in toolbox,is there is any other controll/way to show the RTF files. Tasleem Arif

      L Offline
      L Offline
      likefood
      wrote on last edited by
      #2

      Unfortunately, Microsoft didn't think it was necessary to include RichTextBox in the .Net CF (not even V2.0). You're going to have to use a custom control (either of your own making, or if someone else has already done the work for you). Since RTF files are just text files with some markup, it's just a matter of reading in the text file and interpreting the RTF codes. Another problem lies with actually displaying the RichText-formatted text. Like I said, since the NCF doesn't have a RichTextBox, you might try using a Graphics object to draw the text to a control (of course, you'd have to draw it one character at a time, but printing RTF to a printer is pretty much the same way). The BIGGEST problem is that you would only be able to DISPLAY the text, not modify it as well. I ran into the same frustration, with a PocketPC app I started a while ago. The most we all can do is either use PocketWord, or cuss at Microsoft for not including the RichTextBox control. -Daniel

      _ 1 Reply Last reply
      0
      • L likefood

        Unfortunately, Microsoft didn't think it was necessary to include RichTextBox in the .Net CF (not even V2.0). You're going to have to use a custom control (either of your own making, or if someone else has already done the work for you). Since RTF files are just text files with some markup, it's just a matter of reading in the text file and interpreting the RTF codes. Another problem lies with actually displaying the RichText-formatted text. Like I said, since the NCF doesn't have a RichTextBox, you might try using a Graphics object to draw the text to a control (of course, you'd have to draw it one character at a time, but printing RTF to a printer is pretty much the same way). The BIGGEST problem is that you would only be able to DISPLAY the text, not modify it as well. I ran into the same frustration, with a PocketPC app I started a while ago. The most we all can do is either use PocketWord, or cuss at Microsoft for not including the RichTextBox control. -Daniel

        _ Offline
        _ Offline
        _tasleem
        wrote on last edited by
        #3

        thanks for ur reply.can u tell me in v 2.0 the "Web browser controll" used to display web pages is also not present. Tasleem Arif

        L 1 Reply Last reply
        0
        • _ _tasleem

          thanks for ur reply.can u tell me in v 2.0 the "Web browser controll" used to display web pages is also not present. Tasleem Arif

          L Offline
          L Offline
          likefood
          wrote on last edited by
          #4

          I'm sorry, but I don't have any experience with the web browser control. -Daniel

          J 1 Reply Last reply
          0
          • L likefood

            I'm sorry, but I don't have any experience with the web browser control. -Daniel

            J Offline
            J Offline
            jw_barber
            wrote on last edited by
            #5

            I am sharing your frustration. The web browser is included in CF 2.0. For my purposes, however, I don't want to use webBrowser because webBrowser then calls PocketWord and thats not very pretty. I am hoping i can figure out some way to display word type files using the OpenNetCF Inkx control, but I haven't gotten very far with it. Jim

            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