Build your first report with MaxPrint

Build your first report with MaxPrint

This article explains how to build a simple report using MaxPrint Oracle APEX plugin. To use the plugin in your Oracle APEX Application, you first need to download the plugin, install it within your application and then use it.

Environment: Oracle APEX 20.1

  1. How to Download the plugin?
  • Get the installation files here:

You will receive an email with a link containing installation packages after your purchase. Click to that link to download the plugin.

  • Unzip the installation folder named:

Here are the content of the unzipped installation folder:

  1. Installation process

Follow the below steps to Run the install.sql script in oracle APEX workspace script command.

  • Log into your Oracle APEX Workspace and select the application you are working on.

Run the uploaded script: once the script uploaded, you can now run it. See the below picture.

You will get the below result

Import MaxPrint plugin file(dynamic_action_plugin_com_maxprint.sql)

In your installation folder, let’s import the file dynamic_action_plugin_com_maxprint.sql as a pluggin in APEX.

  • Go into your application and click on the Export/Import button

On the next page, click on the Import button

Import the file named: dynamic_action_plugin_com_maxprint.sql from the installation folder

Start using MaxPrint!

Enter the Following information :

http Link 
API Key $2a$16$9SKi35ksuFrbCcSTf.VGIu0zsQzl5dpZvMGaks5AH3YodspJp1.jq

And then click on Apply Changes.

Now you have successfully installed MaxPrint Plugin. Let now try to print a report

  1. Create your first report

You must first design your report on a windows document based on the information you want to display.

NB: you must have a schema with some tables on which you want to display a report. In our case, we have the below schema table objects and will like to print an order detail.


    Report template language

  • Keywords:
  • Report: use this tag to start and end your template region.  The start tag is {#report} and the end tag is {/report}.
  • Details: use this tag to start and end query tuple for a single SQL. This tag is only used when your report query is simple SQL.  The open tag is {#details} and the close tag is {/details}
  • Query cursor name Tag: if your report query used cursor, the cursor name is a start and end tag in your template. For example, if I have a cursor named: employee, I will have an open tag name {#employee} and a close tag name {/employee} in the template, to list all employees.
  • pageBreakExceptLast: Break the report page over query row.
  • Label: you can enter any words anywhere in you template. It will be display as it is.
  • Column name: your query column name.
  • Image: you can add any picture like your company logo to you template.

Generate a Report Template

  • You can build your own template form from scratch

Example of template

Open a docx file and create your template. When you are done, save your template on your computer and follow the below steps to upload the document in your Oracle APEX Workspace.

  • Inside your Oracle Application
  • Go to the shared component
  • Under Files section, Select Static Application Files
  • Click on Upload file and then upload your saved Docx template
  • Copy your document name
  • Or you generate a template from your query
  • Create a MaxPrint Dynamic Action on a button
  • Select : generate template on the setting action
  • Run you APEX page and click on the button to generate the template

Here is what we will have :

You can now modify the template the make it look nicer by adding your logo, color, organizing label position. When your template is ready, upload it in Oracle APEX to be used to generate future reports.

  Print Action :

We can run a report on different way.

  • Onload process
  • On button click

In this case, we are going to run the report when a user click on a button.

 Within a page in your application, create a button and add a dynamic action to it.  Create a true action with the below setting:

  • Action: MaxPrint[Plug-In]
  • Setting Action: Generate Report
  • Template Source: APEX Static Files Directory
  • Template File Name : OrderTemplate.docx
  • Template File Type : Docx
  • Data Source Type : SQl Query
  • SQL Type : Simple SQL
  • Query: Enter your query here.

MaxPrint Support three types of SQL queries

  • Simple SQL
    • Cursor based SQL
    • JSON Object SQL

Below is an example of simple SQL query for MaxPrint plugin.

  • Master Query Columns: List all query Columns.
  • Items to submit: if you query use an Item, enter the item name here. In our case, the query uses the order id item (P29_ORDER_ID) which contains the order id we want to print. We must submit this item in the APEX session to be access by the query on the server side. That is the reason why, we have it in the items to submit.
  • OutPut Type: pdf
  • Output Filename: the output filename. Enter any name.
  • OutPut Method: open in web browser.


We have the below result when we click on the print button:

No Comments

Post A Comment