,printing in tabular format [modified]
-
hi all, how to print in tabular format with 4 col IN A PRINTER LIKE THIS ---------------------------------------------------------------- ---------------------------------------------------------------- | | | ---------------------------------------------------------------- | | | ---------------------------------------------------------------- | | | INSIDE EACH BOX MY TEXT SHOULD BE APPEARED anyone know plz tell me -- modified at 8:00 Thursday 15th June, 2006
-
hi all, how to print in tabular format with 4 col IN A PRINTER LIKE THIS ---------------------------------------------------------------- ---------------------------------------------------------------- | | | ---------------------------------------------------------------- | | | ---------------------------------------------------------------- | | | INSIDE EACH BOX MY TEXT SHOULD BE APPEARED anyone know plz tell me -- modified at 8:00 Thursday 15th June, 2006
:confused: That's not very clear. Where do you need to print it ? On the screen ? You can simply use cout and make a tabulation inside your text.
Cédric Moonen Software developer
Charting control -
hi all, how to print in tabular format with 4 col IN A PRINTER LIKE THIS ---------------------------------------------------------------- ---------------------------------------------------------------- | | | ---------------------------------------------------------------- | | | ---------------------------------------------------------------- | | | INSIDE EACH BOX MY TEXT SHOULD BE APPEARED anyone know plz tell me -- modified at 8:00 Thursday 15th June, 2006
Check this. http://www.gidforums.com/t-4314.html[^] Appu.. "If you judge people, you have no time to love them."
-
hi all, how to print in tabular format with 4 col IN A PRINTER LIKE THIS ---------------------------------------------------------------- ---------------------------------------------------------------- | | | ---------------------------------------------------------------- | | | ---------------------------------------------------------------- | | | INSIDE EACH BOX MY TEXT SHOULD BE APPEARED anyone know plz tell me -- modified at 8:00 Thursday 15th June, 2006
-
hi all, how to print in tabular format with 4 col IN A PRINTER LIKE THIS ---------------------------------------------------------------- ---------------------------------------------------------------- | | | ---------------------------------------------------------------- | | | ---------------------------------------------------------------- | | | INSIDE EACH BOX MY TEXT SHOULD BE APPEARED anyone know plz tell me -- modified at 8:00 Thursday 15th June, 2006
GANsJob wrote:
how to print in tabular format with 4 col anyone know plz tell me
You may use C++ IO manipulaters for same. for e.g.
setw(size)
sets the width of the stream you are suppose to output on console. Knock out 't' from can't, You can if you think you can :cool: -
printf("%04.04s%04.04s%04.04s", "a", "ab", "abc"); or CString cs; cs.Format("%04.04s%04.04s%04.04s", "a", "ab", "abc"); But take UNICODE into consideration and adjust the code for UNICODE if you need to. Use minus-sign to right-justify. ("%-04.04s")
kakan wrote:
Use minus-sign to right-justify. ("%-04.04s")
That should be left-justify.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
-
kakan wrote:
Use minus-sign to right-justify. ("%-04.04s")
That should be left-justify.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb