Ejemplo n.º 1
0
 protected void ButtonDesignFile_Click(object sender, EventArgs e)
 {
     if (FileReport.PostedFile != null && FileReport.PostedFile.FileName.Length > 0 && FileReport.PostedFile.InputStream != null)
     {
         StiReport report = new StiReport();
         report.Load(FileReport.PostedFile.InputStream);
         StiWebDesignerFx1.Design(report);
     }
 }
Ejemplo n.º 2
0
        protected void ButtonDesignServer_Click(object sender, EventArgs e)
        {
            if (DropDownListReport.Text != null && DropDownListReport.Text.Length > 0)
            {
                string applicationDirectory = HttpContext.Current.Server.MapPath(string.Empty);
                string reportFileName       = applicationDirectory + "\\Reports\\" + DropDownListReport.Text;

                StiReport report = new StiReport();
                report.Load(reportFileName);
                StiWebDesignerFx1.Design(report);
            }
        }
Ejemplo n.º 3
0
        protected void StiWebViewerFx1_ReportDesign(object sender, EventArgs e)
        {
            string keyValue = Page.Request.QueryString.Get("reportname");

            if (keyValue == null)
            {
                keyValue = "SimpleList";
            }

            var report = new StiReport();

            report.Load(string.Format("{0}\\ReportTemplates\\{1}.mrt", AppDirectory, keyValue));

            StiWebDesignerFx1.Design(report);
        }
Ejemplo n.º 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string appDirectory = HttpContext.Current.Server.MapPath(string.Empty);

            // Load report
            StiReport report = new StiReport();

            report.Load(appDirectory + "\\Reports\\SimpleList.mrt");

            // Assign data
            StiXmlDatabase database = new StiXmlDatabase("Demo", appDirectory + "\\Data\\Demo.xsd", appDirectory + "\\Data\\Demo.xml");

            report.Dictionary.Databases.Add(database);
            report.Dictionary.Synchronize();

            // Design report
            StiWebDesignerFx1.Design(report);
        }
Ejemplo n.º 5
0
        protected void ButtonDesignNew_Click(object sender, EventArgs e)
        {
            StiReport report = new StiReport();

            StiWebDesignerFx1.Design(report);
        }