abhishekpathak.zcst Posted December 18, 2013 Share Posted December 18, 2013 Hi,I am new to Jasper Report and was using Crystal Report earlier. I want to ask can anyone share a c# class file which shows how to call a Jasper Report from C# application which is deployed in Jasper Report Server.Also is there any cloud based Jasper Report server where some sample Jasper Report are deployed which can be used for testing purpose using one's C# code?Any input wil be deeply appreciated.Regards,Abhishek. Link to comment Share on other sites More sharing options...
abhishekpathak.zcst Posted February 4, 2014 Author Share Posted February 4, 2014 Hi All, I was able to run report successfully from c# Rest webservice . I took help from this blog http://www.freeze.ro/node/7 . This blog doesnt shows anything about passing parameters. So. I figured it on my own. Let know if anyone needs it. It was quite simple. Regards, Abhishek Link to comment Share on other sites More sharing options...
anas.benseddik Posted March 12, 2014 Share Posted March 12, 2014 can you please post the parameters, i didn't hnow how to change it ! thanks Link to comment Share on other sites More sharing options...
abhishekpathak.zcst Posted March 21, 2014 Author Share Posted March 21, 2014 There is separate class for the same such as IntJasperReportParameter, StringJasperReportParameter. Assign value and Name to it and pass as a list of JasperReportP"arameters. It will be done Link to comment Share on other sites More sharing options...
aelhadi Posted April 16, 2014 Share Posted April 16, 2014 JrParameterItem mp3 = new JrParameterItem(); mp3.Name = "Au"; mp3.Value = "01-01-2015"; mP.Add(mp3); IntJasperReportParameter p = new IntJasperReportParameter(); p.IntValue = 2; p.Name = "NN"; mP.Add(p); DateTimeJasperReportParameter d = new DateTimeJasperReportParameter(); d.DateTimeValue = DateTime.Now.Date; d.Name = "Du"; mP.Add(d); JasperReport report = new JasperReport() { Name = "Relevé", Path = "/Pathto/MyReport", Parameters = mP, }; @aelhadi Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now