Jump to content
Changes to the Jaspersoft community edition download ×

Connecting jasper reports using stored procedures from C#


akesavapillai

Recommended Posts

I have deployed a test.jrxml in jasperserver, which is using jdbc as adapter ..I have deployed sqljdbc4.jar in the below locations in jasperserver

  1.  apache-tomcatlib
  2. apache-tomcatwebappsjasperserverweb-inflib

and restarted the jasperserver.

Now I wrote a test application but its not generating pdf file and throwing BadRequest error

Below is the piece of code

string connectionString = "http://jasperserver:8080/jasperserver/rest_v2/reports/reports/Par/test.pdf";             string destinationpath  = @"C:test.pdf";using (var client = new WebClient()){    client.Credentials = new NetworkCredential("jasperadmin", "jasperadmin");    client.DownloadFileTaskAsync(connectionString, destinationpath);}[/code]
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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