Unregistered
October 10, 2002, 18:29:03
I have a problem when I want to print pages automatically: there are always just two lines of the header printed and sometimes even the main text is partly printed over the header.
When I print the page manually, the whole page with all headerlines is printed.
I use Delphi 5 with Textcontrol 9 Sp 5.
The problem occurs depending on the printer, that is used. With Lexmark Optra E 312 for example all header lines are printed, but with HP Laserjet 6L for example the printing just has two header lines.
Befor the printing is started I use a modal Form, in which the user can select what he wants to print, TextControl itself lies in another form in the background.
Trying to solve the problem, I found this funny thing:
after I filled TextControl with the text and the header I want to print, I can see in the background, that there are just two lines of the header shown, but when I add a "Showmessage" before printing the Text, the Textcontrol-Form comes up to the front aswell and switches, so that now all header lines are shown and the printing is fine with all printers.
With the Lexmark the TextControl does not even has to be visible, there is a Form lying in front of the Form, in which Textcontrol lies, that fills the whole screen and the printing is fine.
Does anyone have a clue, how I can print headers without the Textcontrol being shown and using different printers?
This message was originally posted by iris in the old TX Text Control Support Forum.
When I print the page manually, the whole page with all headerlines is printed.
I use Delphi 5 with Textcontrol 9 Sp 5.
The problem occurs depending on the printer, that is used. With Lexmark Optra E 312 for example all header lines are printed, but with HP Laserjet 6L for example the printing just has two header lines.
Befor the printing is started I use a modal Form, in which the user can select what he wants to print, TextControl itself lies in another form in the background.
Trying to solve the problem, I found this funny thing:
after I filled TextControl with the text and the header I want to print, I can see in the background, that there are just two lines of the header shown, but when I add a "Showmessage" before printing the Text, the Textcontrol-Form comes up to the front aswell and switches, so that now all header lines are shown and the printing is fine with all printers.
With the Lexmark the TextControl does not even has to be visible, there is a Form lying in front of the Form, in which Textcontrol lies, that fills the whole screen and the printing is fine.
Does anyone have a clue, how I can print headers without the Textcontrol being shown and using different printers?
This message was originally posted by iris in the old TX Text Control Support Forum.