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 and Print Preview and relation with document view

Print and Print Preview and relation with document view

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
2 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.
  • A Offline
    A Offline
    Amin Abdi
    wrote on last edited by
    #1

    Hello guys i have a problem with my SDI program i show some data in my document and when i want see print preview or print data which shown in doc i see data in small font. how can i fix this problem regards.

    _ 1 Reply Last reply
    0
    • A Amin Abdi

      Hello guys i have a problem with my SDI program i show some data in my document and when i want see print preview or print data which shown in doc i see data in small font. how can i fix this problem regards.

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      I'm assuming you're drawing the text in the OnDraw function. The passed in CDC object will by default use its currently selected font which could be different for the screen and printer. To get the same font across the screen and printer, in the OnDraw function, create a CFont object and use SelectObject to attach it to the passed in CDC object.

      «_Superman_» I love work. It gives me something to do between weekends.

      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