- Main Page
- Data Structures
- Files

- File List
- Globals

# samples/jsrun.c File Reference

`#include <jasperserver.h>`

Go to the source code of this file.

## Functions
void | run_report (char *reportUnitUri, char *outfile)
int | main (int argc, char **argv)
## Variables
const char | server [] = "http://127.0.0.1:8080/jasperserver/services/repository"

## Detailed Description

This sample shows how to run a report unit. In particular this sample shows how run a report unit and export it in html. The file is saved in a file specified by the user. If there are images, them are saved inside the directory images.

A more complex sample about how run a report unit having input controls is named jsrun_params.c

See also:
  jasperserver_ws_runReport

Definition in file jsrun.c.

## Function Documentation

int main | ( | int | argc,
|  | char ** | argv |
| ) |  |  |

Definition at line 89 of file jsrun.c.

void run_report | ( | char * | reportUnitUri,
|  | char * | outfile |
| ) |  |  |

Definition at line 37 of file jsrun.c.

## Variable Documentation

const char server[] = "http://127.0.0.1:8080/jasperserver/services/repository"

Definition at line 35 of file jsrun.c.