Jump to content
We've recently updated our Privacy Statement, available here ×

Please help me: How to load pdf from server with jquery ajax


raulrojash

Recommended Posts

Please help me!!!!

 

I have this section code:

.................................

......................

byte[] bytes = null;
            
            Map<String, Object> parameters = new HashMap<String, Object>();
            parameters.put("fecha_generacion", "Septiembre 07, 2013");
            parameters.put("cuenca_nombre", "mi cuenca"); 
 
            Map data = new HashMap();        
            data.put("variable_informe_texto", "Variable de prueba 01");
            data.put("variable_informe_recomendacion", "la recomendacion es xxxxx");
            Map data2 = new HashMap();
            data2.put("variable_informe_texto", "Variable de prueba 02");
            data2.put("variable_informe_recomendacion", "la recomendacion es yyyyyy");        
            List dataList = new ArrayList();
            dataList.add(data);
            dataList.add(data2);
JRMapCollectionDataSource JRMapDataList = new JRMapCollectionDataSource(dataList);
 bytes = JasperRunManager.runReportToPdf(reportFile.getPath(), parameters, JRMapDataList);
 
Now how to send this byte array. and how to load fro jquery with ajax?
 
Thanksss!!!
 
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...