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 / C++ / MFC
  4. Print a FormView

Print a FormView

Scheduled Pinned Locked Moved C / C++ / MFC
6 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.
  • S Offline
    S Offline
    Shivanand Gupta
    wrote on last edited by
    #1

    Hi my program print a form-view correctly if it does not have scroll bar. if scroll bar is present then we can print only visible area of scroll bar. But i need to print full form-view with all control . i.e. scroll bar should not be effect on print procedure. many sample available but no one fulfill above requirement.

    L B 2 Replies Last reply
    0
    • S Shivanand Gupta

      Hi my program print a form-view correctly if it does not have scroll bar. if scroll bar is present then we can print only visible area of scroll bar. But i need to print full form-view with all control . i.e. scroll bar should not be effect on print procedure. many sample available but no one fulfill above requirement.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      The view that you see on the screen is merely one 'page' which you can scroll up, down, left and right. After each scroll operation the view is repainted to show just the data within the current view. In order to print all pages you need to add some similar print logic to your program which will iterate through all your data formatting it correctly to the printer device of your choice.

      It's time for a new signature.

      1 Reply Last reply
      0
      • S Shivanand Gupta

        Hi my program print a form-view correctly if it does not have scroll bar. if scroll bar is present then we can print only visible area of scroll bar. But i need to print full form-view with all control . i.e. scroll bar should not be effect on print procedure. many sample available but no one fulfill above requirement.

        B Offline
        B Offline
        bob16972
        wrote on last edited by
        #3

        Here is an old post of mine that describes printing in MFC in a generic way. It was written for CScrollView but I'm hoping it'll help regardless...Printing Sample[^]

        S 1 Reply Last reply
        0
        • B bob16972

          Here is an old post of mine that describes printing in MFC in a generic way. It was written for CScrollView but I'm hoping it'll help regardless...Printing Sample[^]

          S Offline
          S Offline
          Shivanand Gupta
          wrote on last edited by
          #4

          Thanks for response it work good but, my requirement is still open. my form view have many control and scroll bar hide some control so how can print full image of form view.

          B 1 Reply Last reply
          0
          • S Shivanand Gupta

            Thanks for response it work good but, my requirement is still open. my form view have many control and scroll bar hide some control so how can print full image of form view.

            B Offline
            B Offline
            bob16972
            wrote on last edited by
            #5

            How are you trying to print it now. What does your "Draw" code look like? (small snippet)

            S 1 Reply Last reply
            0
            • B bob16972

              How are you trying to print it now. What does your "Draw" code look like? (small snippet)

              S Offline
              S Offline
              Shivanand Gupta
              wrote on last edited by
              #6

              fine, I could not print formview properly that have scroll bar. so i remove scroll bar.

              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