On 2015-06-30 14:03, Graeme Geldenhuys wrote:
> ===================================
> If FRPrint.PrepareReport then
> begin
> FRPrint.Variables.Values['HideKlas'] := '1'; // for testing only
> FRPrint.Preview := FAfdrukForm.PrintPanel;
> FRPrint.ShowPreparedReport;
> end;
> ===================================
I've even tried removing the "HideKlas" variable completely, then do
something like this in the .pas unit.
(FRPrint.Pages.Pages[0].FindObject('memo5') as TfrMemoView).Visible :=
False;
FRPrint.Preview := FAfdrukForm.PrintPanel;
FRPrint.ShowPreparedReport;
But not even that works. In this case the memo5 is always shown, as if I
didn't have that extra line of code.
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus