Forum > General

Print a Form

(1/1)

spitofland:
I am converting a delphi program to lazarus, but I don't know how to convert these lines of code.

--- Code: ---  printdialog1.Execute;
  ABCCalcForm.Print;
--- End code ---

It seems that the first line will work as expected, but I need to find a replacement for "ABCCalcForm.Print;"

Does anyone know how to print a form to a printer? (I'm hoping for a simple solution, but as long as it works, I'll take any help I can get.)

Thanks.

Navigation

[0] Message Index

Go to full version