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. Value of dmPaperSize in DEVMODE structure for custom papersize

Value of dmPaperSize in DEVMODE structure for custom papersize

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

    Hi! I would like to know whether the value of dmPaperSize in DEVMODE structure for custom papersize varies with the printer used. How is it possible to know the dmPaperSize for custom paper size for a particular printer. Thanks

    K H 2 Replies Last reply
    0
    • V vcpgmr

      Hi! I would like to know whether the value of dmPaperSize in DEVMODE structure for custom papersize varies with the printer used. How is it possible to know the dmPaperSize for custom paper size for a particular printer. Thanks

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

      vcpgmr wrote:

      is it possible to know the dmPaperSize for custom paper size for a particular printer

      Hi, Did you try like this? pDevModeOutput->dmFormName = NewFormName; pDevModeOutput->dmPaperSize = DMPAPER_USER; pDevModeOutput->dmPaperLength = CustomLength; pDevModeOutput->dmPaperWidth = CustomWidth;

      Krishnakumar

      V 1 Reply Last reply
      0
      • V vcpgmr

        Hi! I would like to know whether the value of dmPaperSize in DEVMODE structure for custom papersize varies with the printer used. How is it possible to know the dmPaperSize for custom paper size for a particular printer. Thanks

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        See Set up/change printer orientation and select paper type/size [^]


        WhiteSky


        1 Reply Last reply
        0
        • K KKumarTG

          vcpgmr wrote:

          is it possible to know the dmPaperSize for custom paper size for a particular printer

          Hi, Did you try like this? pDevModeOutput->dmFormName = NewFormName; pDevModeOutput->dmPaperSize = DMPAPER_USER; pDevModeOutput->dmPaperLength = CustomLength; pDevModeOutput->dmPaperWidth = CustomWidth;

          Krishnakumar

          V Offline
          V Offline
          vcpgmr
          wrote on last edited by
          #4

          Hi!, Thank you for the reply. Yes I had tried the way you said, but its not working. Are there any other variables/properties which we need to set before setting value to DocumentProperties Thank you

          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