[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 838
  • Last Modified:

Rave Reports Printing

 I want to Print a report directly to the printer without any print preview or setup form could you give me a simple code to do this
This is a simple example of what I am doing. but It always has a RV print form show up

procedure TFrmPrintPOS.RvSystem1Print(Sender: TObject);
begin
 with Sender as TBaseReport do
 begin

   Print('Hello World');

 end;
end;

procedure TFrmPrintPOS.BtnPrintPOSClick(Sender: TObject);
begin
  RvSystem1.Execute;
end;
0
WayneFischer
Asked:
WayneFischer
  • 2
1 Solution
 
DragonSlayerCommented:
from RvSystem1's SystemSetups properties, remove ssAllowSetup.
0
 
WayneFischerAuthor Commented:
It says invalid typecast in line  ''with Sender as TBaseReport do'' when I go to print am I missing the proper way to execute this?
0
 
DragonSlayerCommented:
Strange. That should work. Open up the example in the \Demos\Code folder of your Rave components. Check out Demo01.pas/dfm and compare it with your code?
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now