Check out the class EPSendDocument, method make document for a good
starting point.

Here is part of it below, i have tidied it up a bit.

    args                args;
    ReportRun           rr;
    Report              rb;
    PrintJobSettings    pjs;
    ;

        args = new Args(reportName);

        rr = new ReportRun(Args,'');
        rb  = rr.report();
        rr.suppressReportIsEmptyMessage(true);  // no more "Report
is empty..." stuff
        pjs = rr.printJobSettings();
        pjs.virtualPageHeight(0);
        pjs.fitToPage(true);
     
        rb.interactive(false);
        rr.query().interactive(false);
        // here you can add ranges etc
        // rr.query().dataSourceNo(1).addRange(...
        rr.init();
        rr.run();
    }

--- In [email protected], "gonzalo_edo" <[EMAIL PROTECTED]>
wrote:
>
>
> How can I execute a report through code and pass it parameters,
like
> the active datasource??
>
> Hope you can help me!
>
> Regards








Yahoo! Groups Links

Reply via email to