Jump to content
Changes to the Jaspersoft community edition download ×
  • Jasperserver reports from html file


    Issue Description :


    How to call a report from html file?



    Open a notepad file and add below well formed html and then save the file as type .html.

    <body onload="document.forms[0].submit()"> 
    <form name="pop_up" method="get" action="http://localhost:8080/jasperserver-pro/flow.html"> 
    <input type="hidden" name="reportUnit" value="/organization/public/Accounts"> 
    <input type="hidden" name="ParentFolderUri" value ="/organization/public"> 
    <input type="hidden" name="p_id" value="28"> 
    <input type="hidden" name="_flowId" value="viewReportFlow"> 
    <input type="hidden" name="decorate" value="no"> 
    <input type="hidden" name="j_username" value="jasperadmin"> 
    <input type="hidden" name="j_password" value="jasperadmin"> 
    <input type="hidden" name="output" value="pdf"> 
    <input type="submit" name="OK" value="OK"> 

    After saving the file double click the html file, once opened you will see the report being fetched and exported to pdf file.

    Please note that if there are any parameters in the report then you have have to set the property value of Input control as not mandatory
    other wise it will ask the parameter value even though it's passed in html file.


    User Feedback

    Recommended Comments

    There are no comments to display.

    This is now closed for further comments

  • Create New...