Page 2 of 3

Re: Implementation in Websites

Posted: Tue Nov 18, 2014 8:19 am
by Anuranjani
Hi Andrew,

Thanks for the GUI video. Please provide the same for API.

Re: Implementation in Websites

Posted: Tue Nov 18, 2014 8:38 am
by Andrew
Ok,

We will prepare this.
This will take a day or two.

Have a nice day!

Re: Implementation in Websites

Posted: Thu Nov 20, 2014 10:38 am
by Anuranjani
Ok,

Thank you.

Re: Implementation in Websites

Posted: Thu Nov 20, 2014 12:23 pm
by Andrew
Anuranjani,

We are ending testing process. The assembly with API will be available on Monday next week. Video and documentation will be available on Monday too. API is not the .NET Framework.

Documentation for the REST API will be done in 2 weeks.

In this thread, we will keep informed on this.
Have a nice day!

Re: Implementation in Websites

Posted: Mon Nov 24, 2014 2:02 pm
by Andrew
Dear Anuranjani,

The assembly Stimulsoft.Server.Connect is required for this SDK. The current version of the report server does not contain this assembly but it will available in the next release on December, 1 2014. Please contact us at support@stimulsoft.com if you need the new version shortly.

Let us know if you have additional questions.
Thank you.

Re: Implementation in Websites

Posted: Wed Nov 26, 2014 4:31 am
by Anuranjani
Ok,

Thank you for your response.

Re: Implementation in Websites

Posted: Wed Nov 26, 2014 6:04 am
by HighAley
Hello.

We are always glad to help you.
Let us know if you need any additional help.

Thank you.

Re: Implementation in Websites

Posted: Fri Nov 28, 2014 8:28 am
by Andrew
Dear Anuranjani,

Please see the code how to generate a PDF file with help of Stimulsoft Reports.Server.

Code: Select all

// Connect to Stimulsoft Report.Server on port 40010
var connection = new StiServerConnection("http://localhost:40010/");
// User Name and Password from actions
connection.Users.Login("username", "password");

// Load Data in ByteArray
var bytes = File.ReadAllBytes("Data.xml");

// Get Item from Access Key
var dataItem = connection.Items.Get("94ebe81e880843fb899eee393397f092") as StiFileItem;
// Create Item if it does not exist
if (dataItem == null) dataItem = connection.Items.Root.NewFile("data.xml", StiFileType.Xml);
// Upload Data to Item
fileItem.UploadFromArray(bytes);

// Get PDF Item from Access Key
var pdfItem = connection.Items.Get("b17ce23f44ee411793440bceb61d4ba6") as StiFileItem;
// Create Item if it does not exist
if (pdfItem == null) pdfItem = connection.Items.Root.NewFile("report.pdf", StiFileType.Pdf);
fileItemPdf.Save();

// Get Report from Access key
var reportItem = connection.Items.Get("4cf1d78e5773470880b0145f895c7f00") as StiReportTemplateItem;
// Create Item if it does not exist
if (reportItem == null) reportItem = connection.Items.Root.NewFile("report", StiFileType.ReportSnapshot);
// Compile Report to PDF Item
reportItem.Run(pdfItem);

// Download PDF to ByteArray
var result = fileItemPdf.DownloadToArray();

// Logout User
connection.Users.Logout();
Thank you.

Re: Implementation in Websites

Posted: Tue Dec 02, 2014 4:31 am
by Anuranjani
Hi,

Please let me know where can i get the latest version of stimulsoft report server which includes the assembly Stimulsoft.Server.Connect

Re: Implementation in Websites

Posted: Tue Dec 02, 2014 5:55 am
by Jan
Hello,
Anuranjani wrote: Please let me know where can i get the latest version of stimulsoft report server which includes the assembly Stimulsoft.Server.Connect
You can get it here: http://www.stimulsoft.com/en/downloads

Please contact us if you need any help!

Thank you.