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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. printing problem on a graph control

printing problem on a graph control

Scheduled Pinned Locked Moved C / C++ / MFC
data-structureshelp
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.
  • R Offline
    R Offline
    RockyJames
    wrote on last edited by
    #1

    I have a graph control in my application where i plot a series of values .I need to show the specific x and y coordinate values on the graph. For the code what i have written it is working fine for print preview but when i print the graph, i could just see a rectangle outline on the graph but not the text content in it.But its working fine for the print preview. i have written the same code for both, passing the respective DC values whenever the respective flag is set. Pls let me know the reason . Regards James

    L 1 Reply Last reply
    0
    • R RockyJames

      I have a graph control in my application where i plot a series of values .I need to show the specific x and y coordinate values on the graph. For the code what i have written it is working fine for print preview but when i print the graph, i could just see a rectangle outline on the graph but not the text content in it.But its working fine for the print preview. i have written the same code for both, passing the respective DC values whenever the respective flag is set. Pls let me know the reason . Regards James

      L Offline
      L Offline
      Lane Yu
      wrote on last edited by
      #2

      Are u using MFC's Print & Print Preview functions?

      R 1 Reply Last reply
      0
      • L Lane Yu

        Are u using MFC's Print & Print Preview functions?

        R Offline
        R Offline
        RockyJames
        wrote on last edited by
        #3

        i am calling the OnPrint() function where i have created a compatibleDC() using createCompatibleDC() for the printer and passed the dc to onDraw() along with the device-independent bitmap which i need to print. The OnDraw() function handles the code for both printpreview and printing based on the appropriate flag.

        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