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. C#
  4. rtf files and pagebreaks

rtf files and pagebreaks

Scheduled Pinned Locked Moved C#
tutorialcsharpquestion
4 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.
  • P Offline
    P Offline
    panoskatws
    wrote on last edited by
    #1

    Hello all!! What I want to do is to create rtf files with c# and then read them page by page(for example every page can contain 50 lines). Can anyone advise me on how to do this? I think there should be a way of inserting pagebreaks but not shure. Is this the right way? If it is I don't have an idea of how to read the pagebreak... Thank you!!

    S M 2 Replies Last reply
    0
    • P panoskatws

      Hello all!! What I want to do is to create rtf files with c# and then read them page by page(for example every page can contain 50 lines). Can anyone advise me on how to do this? I think there should be a way of inserting pagebreaks but not shure. Is this the right way? If it is I don't have an idea of how to read the pagebreak... Thank you!!

      S Offline
      S Offline
      Simon P Stevens
      wrote on last edited by
      #2

      2 options: 1) Find an RTF library. There's one on codeproject here. There are stacks of commercial ones if you just google around. http://www.codeproject.com/KB/string/nrtftree.aspx[^] 2) Read the RTF[^] spec, and write your own parser.

      Simon

      P 1 Reply Last reply
      0
      • P panoskatws

        Hello all!! What I want to do is to create rtf files with c# and then read them page by page(for example every page can contain 50 lines). Can anyone advise me on how to do this? I think there should be a way of inserting pagebreaks but not shure. Is this the right way? If it is I don't have an idea of how to read the pagebreak... Thank you!!

        M Offline
        M Offline
        Michael Schubert
        wrote on last edited by
        #3

        The rtf code is \page

        1 Reply Last reply
        0
        • S Simon P Stevens

          2 options: 1) Find an RTF library. There's one on codeproject here. There are stacks of commercial ones if you just google around. http://www.codeproject.com/KB/string/nrtftree.aspx[^] 2) Read the RTF[^] spec, and write your own parser.

          Simon

          P Offline
          P Offline
          panoskatws
          wrote on last edited by
          #4

          I'm not shure if I am able of writting down my own parser. Also I tryied out the library you suggested, but could not use it. I imported the dll file and still din't manage it. I'm new in programming and have not enough experience. Could you please help me out here??

          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