PRINT ONE LINE OF TEXT

  • Thread starter Thread starter yom
  • Start date Start date
Y

yom

Hi all.
I have to write a Windows Application presenting a textbox to the
user.
Each time the user press a button on the main form I need to print the
text of the textbox.

I try using the printDocument object but if I call its print method a
page is printed by my printer.
I need to print just one line each time filling the same page until
space is available on it ...

Anyone can help me?

Thanks in advance
yom
 
Hi,

Try storing the data in an array. When you get a pages worth print
it.

Ken
 
yom said:
Hi all.
I have to write a Windows Application presenting a textbox to the
user.
Each time the user press a button on the main form I need to print
the text of the textbox.

I try using the printDocument object but if I call its print method
a page is printed by my printer.
I need to print just one line each time filling the same page
until space is available on it ...

Anyone can help me?

Never tried and maybe not worth investigating, but...: Put the printdocument
in a differnt thread. After a line has been printed, send the thread to
sleep. The main thread continues. Whenever there is sufficent data for a
line, pass the data to the other thread/class and call it's interrupt
method. The thread wakes up, does his job, and ZZzzzz....


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
Back
Top