The Stimulsoft Server REST API can log in, create a report snapshot, run a template into it, and export the snapshot to PDF.

Log in, snapshot, run, export.
// Log in
var login = WebRequest.Create("http://localhost:40010/1/login");
login.Headers.Add("x-sti-UserName", Username);
login.Headers.Add("x-sti-Password", Password);
var sessionKey = (string)GetJson(login)["ResultSessionKey"];

// Create a snapshot, then run the template into it
var run = WebRequest.Create("http://localhost:40010/1/reporttemplates/" + reportKey + "/run");
run.Method = "PUT";
run.Headers.Add("x-sti-SessionKey", sessionKey);
run.Headers.Add("x-sti-DestinationItemKey", snapshotKey);

// Export the snapshot to PDF
var export = WebRequest.Create("http://localhost:40010/1/reportsnapshots/" + snapshotKey + "/export");
export.Method = "PUT";
export.Headers.Add("x-sti-SessionKey", sessionKey);
Request(export, "{ 'ExportSet': { 'Ident':'Pdf', 'EmbeddedFonts':false } }");

How it works. The REST workflow chains login → run → export through session-keyed calls, so any HTTP client can generate documents from the Server.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.