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 Class Library PrintRotatedText

Printing Class Library PrintRotatedText

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

    There is a great article here: Printing Class Library[^] on how to print. I have read the article since 1999 and am hoping there are others out there that use this class. There is this function: pPage->PrintRotatedText(2.30,0.72,0.50,0.85,TEXT_NORMAL|TEXT_NOCLIP,9,"some text",90*10); which will rotate the text 90 degrees. My problem is, the text is rotated and left justified and I need it to be rotated and right justified. If I try changing the flags to TEXT_RIGHT or TEXT_CENTER, the text still is left justified. Any chance, any one knows how to rotate text and make it right justified. Im trying to rotate these numbers and it looks silly having them left justified. Please, any response any one can give me will be greatly appreciated. Sincerely, Danielle Brina

    R 1 Reply Last reply
    0
    • D DanYELL

      There is a great article here: Printing Class Library[^] on how to print. I have read the article since 1999 and am hoping there are others out there that use this class. There is this function: pPage->PrintRotatedText(2.30,0.72,0.50,0.85,TEXT_NORMAL|TEXT_NOCLIP,9,"some text",90*10); which will rotate the text 90 degrees. My problem is, the text is rotated and left justified and I need it to be rotated and right justified. If I try changing the flags to TEXT_RIGHT or TEXT_CENTER, the text still is left justified. Any chance, any one knows how to rotate text and make it right justified. Im trying to rotate these numbers and it looks silly having them left justified. Please, any response any one can give me will be greatly appreciated. Sincerely, Danielle Brina

      R Offline
      R Offline
      Roger Allen
      wrote on last edited by
      #2

      I haven't tested this, but a quick look through the source suggests that the line

      m_PrtDesc.uTextFlags = flags;

      is missing in the PrintRotatedText function.

      If you vote me down, my score will only get lower

      D 1 Reply Last reply
      0
      • R Roger Allen

        I haven't tested this, but a quick look through the source suggests that the line

        m_PrtDesc.uTextFlags = flags;

        is missing in the PrintRotatedText function.

        If you vote me down, my score will only get lower

        D Offline
        D Offline
        DanYELL
        wrote on last edited by
        #3

        I just tried adding that code and recompiled and it still is left justified. :( Any other ideas and I'll try them. Please any response any one can give me will be greatly appreciated.

        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