Jump to content
Changes to the Jaspersoft community edition download ×

How to call Jasper Report from C# .net windows application


abhishekpathak.zcst

Recommended Posts

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

  • 1 month later...
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 month later...
  • 2 weeks later...
  • 4 weeks later...

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

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...