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 2 Pages Per Sheet

Printing 2 Pages Per Sheet

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

    I need to print 2 pages per sheet in my application without showing any type of print dialogs. It also needs to work in Windows 98, 2000, XP. I am using a proprietary set of API's and I need to send a PRINTDLG object to this API's print function. What this program does is print charts in some proprietary format(I have limited ability to manipulate these charts), and i want to print two charts on one sheet of paper. I can print a chart easily on a half of the page, but how would I print 2 on a sheet? I cannot combine the charts into one either. I know that on this 98 machine, I can go to Print/Properties and select the "finishing" tab to print multiple per page. Is there a way to set this in my program? Also, is this something that Windows 98 allows me to do, or is it something that this particular print driver allows me to do? I searched through the articles and checked out the Printing Section, but to no avail. Can anyone answer some/all of my questions? Thanks Kevin Shaffer kshaff03@msn.com

    S 1 Reply Last reply
    0
    • K K Shaffer

      I need to print 2 pages per sheet in my application without showing any type of print dialogs. It also needs to work in Windows 98, 2000, XP. I am using a proprietary set of API's and I need to send a PRINTDLG object to this API's print function. What this program does is print charts in some proprietary format(I have limited ability to manipulate these charts), and i want to print two charts on one sheet of paper. I can print a chart easily on a half of the page, but how would I print 2 on a sheet? I cannot combine the charts into one either. I know that on this 98 machine, I can go to Print/Properties and select the "finishing" tab to print multiple per page. Is there a way to set this in my program? Also, is this something that Windows 98 allows me to do, or is it something that this particular print driver allows me to do? I searched through the articles and checked out the Printing Section, but to no avail. Can anyone answer some/all of my questions? Thanks Kevin Shaffer kshaff03@msn.com

      S Offline
      S Offline
      Steve S
      wrote on last edited by
      #2

      Printer driver only. Many HP printers, for example, do n-up printing like this. Anything you do is therefore printer specific. The DEVMODE data is what's saying do two pages per sheet. If it was me, and I really HAD to do this, I'd get the default DEVMODE block, then get a block which does 2-up, and compare the two. Hopefully, dmDriverExtra would be the same value in both cases. However, you have to then dump the bytes from the end of the DEVMODE (hint: dmSize) and examine them 'by hand'. Hope this helps. Steve S

      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