Rave Reports Printing

Posted on 2004-11-07
Last Modified: 2008-02-07
 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);
 with Sender as TBaseReport do

   Print('Hello World');


procedure TFrmPrintPOS.BtnPrintPOSClick(Sender: TObject);
Question by:WayneFischer
    LVL 14

    Accepted Solution

    from RvSystem1's SystemSetups properties, remove ssAllowSetup.

    Author Comment

    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?
    LVL 14

    Expert Comment

    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?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
    In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now