<< Back to embedding reports

Embed Report Output

This embeds report output in a page. Reportico allows extra parameters to be passed to suppress elements of the output and also provide criteria parameters to the report.

        $q = new reportico();        // Fetches reportico engine
        $q->access_mode = "REPORTOUTPUT";             // Allows access to report output only
        $q->initial_execute_mode = "EXECUTE";         // Just executes specified report
        $q->initial_project = "northwind";            // Name of report project folder    
        $q->initial_report = "salestotals";           // Name of report to run
        $q->bootstrap_styles = "3";                   // Set to "3" for bootstrap v3, "2" for V2 or false for no bootstrap
        $q->force_reportico_mini_maintains = true;    // Often required
        $q->bootstrap_preloaded = true;               // true if you dont need Reportico to load its own bootstrap
        $q->clear_reportico_session = true;           // Normally required

Monthly Sales

  Output: HTML PDF CSV
Style Table Form
Customer ANY
Order Date  -
Unable To Continue:
Notice: A non well formed numeric value encountered
Main Report Query - Error: Query Failed

SELECT customers.country, DATE_FORMAT(orderdate, "%Y %M") month, sum((order_details.unitprice - discount) * order_details.quantity) total_discounted_sales, sum((order_details.unitprice) * order_details.quantity) total_sales FROM customers join orders on customers.customerid = orders.customerid join order_details on orders.orderid = order_details.orderid join products on order_details.productid = products.productid WHERE 1 = 1 AND DATE(orderdate) BETWEEN '1996-01-01' AND '1998-12-31' GROUP BY country, month order by country, month

Status 0 -