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. Not printing properly...

Not printing properly...

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

    hi,.i am using printing class from the following URL http://www.codeproject.com/printing/printlib.asp[^] here i am sending my own rect..and MM_ANISOTROPIC instead of MM_TEXT.The table is printed correctly,but the text is not printed in the table,instead it is printed out side the table . CPage* pPage = new CPage(rect,pDC,MM_ANISOTROPIC); //create and use a table TABLEHEADER* pTable = new TABLEHEADER; pTable->PointSize = 10; pTable->LineSize = 1; //default shown only for demo purposes pTable->UseInches = TRUE; pTable->AutoSize = FALSE; pTable->Border = TRUE; pTable->FillFlag = FILL_NONE; pTable->NumColumns = 5; pTable->NumRows = 12; pTable->StartRow = 0.0; pTable->StartCol = 0.0; pTable->EndCol = 8.0; pTable->ColDesc[0].Init(1.0,"Item #",FILL_NONE); pTable->ColDesc[1].Init(3.0,"Desc.",FILL_LTGRAY); pTable->ColDesc[2].Init(1.0,"#Items"); pTable->ColDesc[3].Init(1.0,"Cost"); pTable->ColDesc[4].Init(1.0,"Ext Cost"); pPage->Table(pTable); //place information in a table pPage->Print(pTable,0,0,12,TEXT_LEFT|TEXT_BOLD,"123-009"); pPage->Print(pTable,0,1,12,TEXT_CENTER|TEXT_BOLD,"SmallCray Computer"); pPage->Print(pTable,0,2,12,TEXT_CENTER|TEXT_BOLD,"2"); pPage->Print(pTable,0,3,12,TEXT_RIGHT|TEXT_BOLD,"22.10"); pPage->Print(pTable,0,4,12,TEXT_RIGHT|TEXT_BOLD,"44.20"); delete pPage; delete pTable;

    H 1 Reply Last reply
    0
    • R RockyJames

      hi,.i am using printing class from the following URL http://www.codeproject.com/printing/printlib.asp[^] here i am sending my own rect..and MM_ANISOTROPIC instead of MM_TEXT.The table is printed correctly,but the text is not printed in the table,instead it is printed out side the table . CPage* pPage = new CPage(rect,pDC,MM_ANISOTROPIC); //create and use a table TABLEHEADER* pTable = new TABLEHEADER; pTable->PointSize = 10; pTable->LineSize = 1; //default shown only for demo purposes pTable->UseInches = TRUE; pTable->AutoSize = FALSE; pTable->Border = TRUE; pTable->FillFlag = FILL_NONE; pTable->NumColumns = 5; pTable->NumRows = 12; pTable->StartRow = 0.0; pTable->StartCol = 0.0; pTable->EndCol = 8.0; pTable->ColDesc[0].Init(1.0,"Item #",FILL_NONE); pTable->ColDesc[1].Init(3.0,"Desc.",FILL_LTGRAY); pTable->ColDesc[2].Init(1.0,"#Items"); pTable->ColDesc[3].Init(1.0,"Cost"); pTable->ColDesc[4].Init(1.0,"Ext Cost"); pPage->Table(pTable); //place information in a table pPage->Print(pTable,0,0,12,TEXT_LEFT|TEXT_BOLD,"123-009"); pPage->Print(pTable,0,1,12,TEXT_CENTER|TEXT_BOLD,"SmallCray Computer"); pPage->Print(pTable,0,2,12,TEXT_CENTER|TEXT_BOLD,"2"); pPage->Print(pTable,0,3,12,TEXT_RIGHT|TEXT_BOLD,"22.10"); pPage->Print(pTable,0,4,12,TEXT_RIGHT|TEXT_BOLD,"44.20"); delete pPage; delete pTable;

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

      Did you asked from writter this article

      _**


      **_

      WhiteSky


      R 1 Reply Last reply
      0
      • H Hamid Taebi

        Did you asked from writter this article

        _**


        **_

        WhiteSky


        R Offline
        R Offline
        RockyJames
        wrote on last edited by
        #3

        i haven`t asked

        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