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. Printing trouble once again

Printing trouble once again

Scheduled Pinned Locked Moved C / C++ / MFC
questionperformance
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.
  • E Offline
    E Offline
    ElCachubrey
    wrote on last edited by
    #1

    Hi Some time ago i send question here about BitBlt function in printing time.I had realized what its worked not correctly for my printer.And somebody suggest me to use StretchDIBits function but same trouble arising,when i try to print a lot of text printer not worked(but when i print a little text all work fine) This my code. //Initialize printer DC m_prtDC ... m_prtDC.StartDoc("Doc"); m_prtDC.StartPage(); StretchDIBits(m_prtDC.m_hDC,...); m_prtDC.EndDoc(); m_prtDC.EndPage(); Where is my fault here??? And wheser exist a way to printed an Memory device context into printer. Thank.

    K 1 Reply Last reply
    0
    • E ElCachubrey

      Hi Some time ago i send question here about BitBlt function in printing time.I had realized what its worked not correctly for my printer.And somebody suggest me to use StretchDIBits function but same trouble arising,when i try to print a lot of text printer not worked(but when i print a little text all work fine) This my code. //Initialize printer DC m_prtDC ... m_prtDC.StartDoc("Doc"); m_prtDC.StartPage(); StretchDIBits(m_prtDC.m_hDC,...); m_prtDC.EndDoc(); m_prtDC.EndPage(); Where is my fault here??? And wheser exist a way to printed an Memory device context into printer. Thank.

      K Offline
      K Offline
      Killen
      wrote on last edited by
      #2

      Although probably not solving your problem, it should probably be: m_prtDC.StartDoc("Doc"); m_prtDC.StartPage(); StretchDIBits(m_prtDC.m_hDC,...); m_prtDC.EndPage(); // switched place m_prtDC.EndDoc(); // switched place "Time to give a Newtonian demonstration, of a bullet, its mass and its acceleration." -Stephen Hawking the gangsta rapper

      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