Re: Implementation in Websites
Posted: Tue Nov 18, 2014 8:19 am
Hi Andrew,
Thanks for the GUI video. Please provide the same for API.
Thanks for the GUI video. Please provide the same for API.
Reporting tool and data analytics tools for creating reports and dashboards in ASP.NET, ASP.NET MVC, .NET Core, Blazor, Angular, PHP, Python, WPF, JavaScript, and Java applications.
https://forum.stimulsoft.com/
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();
You can get it here: http://www.stimulsoft.com/en/downloadsAnuranjani wrote: Please let me know where can i get the latest version of stimulsoft report server which includes the assembly Stimulsoft.Server.Connect