Not printing properly...
-
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;
-
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;
Did you asked from writter this article
_**
**_
WhiteSky
-
Did you asked from writter this article
_**
**_
WhiteSky
i haven`t asked