TPrintPreview & functions
I am trying to learn how to use PrintPreview to Preview a Print procedure.
It appears to work fine except when I call call a function that also does some printing. The previously created image appears to go out of scope and I have to recreate it and use BeginDoc;l and EndDoc; all over again, but it won't print anything to the image. When using the printer the following:
but the
will not work.
What do I need to do to be able to use the functions and TprintPreview?
I am using the functions to print page and table headers.
I would really like to understand how to get this to work.
Thanks in advance.
It appears to work fine except when I call call a function that also does some printing. The previously created image appears to go out of scope and I have to recreate it and use BeginDoc;l and EndDoc; all over again, but it won't print anything to the image. When using the printer the following:
- Code: Select all
with printer do
begin
canvas.textout() etc.; //other code
end;
but the
- Code: Select all
with image do
will not work.
What do I need to do to be able to use the functions and TprintPreview?
I am using the functions to print page and table headers.
I would really like to understand how to get this to work.
Thanks in advance.