After much trial and error I ended up printing the form with the designer in a Delphi project.
I load the report, give the printer a title, get rid of the inspector and guide and the print.
CloseDesigner;
if DMOptions.LoadFRXReport(DMOptions.frxPROLetter, scode, 'EN') then
RefreshfrxDesigner(nil);
Comments
I load the report, give the printer a title, get rid of the inspector and guide and the print.
CloseDesigner;
if DMOptions.LoadFRXReport(DMOptions.frxPROLetter, scode, 'EN') then
RefreshfrxDesigner(nil);
printer.Title :=
q.FieldByName('lrCode').AsString
+ ' (' + q.FieldByName('lrType').AsString + ') '
+ q.FieldByName('lrDescription').AsString
+ '.pdf';
Designer.Inspector.Visible := false;
RulersMI.Click;
GuidesMI.Click;
self.Print;