I have a problem..
i have a jrxml file in which query is present .i take the query and replace this query at runtime by java program by aatching some paramenter to that qurey
now i have code which work fine and produce output to pdf shows on broswer
then work on mozilla,IE and opera also
First time i had query like select * from demo in jrxml and then i replace the query as select * from demo where username='ashish'
the problem is that after showing the report on the browser i m going to save the pdf by click menu File->Save as then its save the report which have the data of first query mean(Select * from demo)
but when i save from the pdf button which is given in pdf menu tool then its save the result of select * From demo where username ='ashish' which is perfect (which i want)
so what i have to do so that when i click on save as option of mozilla broswer it will save the pdf having the queery 2nd which means the report showing on browser
Its Does not happening with IE and opera when i save the pdf from both option (1. from pdf tool save button 2. from file menu--> save as option) its save the pdf which are showing on the broswer PDF(its perfect)
so please help me to solve the problem i have the code below..
ServletOutputStream servletOutputStream =response.getOutputStream();
InputStream reportStream = getServlet().getServletConfig()
connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/flightstats?user=user&password=secret");
JasperRunManager.runReportToPdfStream(reportStream,servletOutputStream, new HashMap(), connection);