I have a project in which I am using StiWebViewer along with other controls TreeView and Multiview etc., inside AjaxUpdatePanel.
when I click on a report in the TreeView the reports is loaded but the 'Save' and 'Print' Buttons does not work any more.
Please let me know what is the work around for this problem. I need to use the viewer inside the update panel.
I am using Stimulsoft Ultimate 2013.3.1800.0.
For your reference here following is the sample code page, the report and the data files are attached.
Thank you,
Irfan
ASPX:
-------
Code: Select all
Imports System.Data
Imports Stimulsoft.Report
Imports System.Math
Imports Stimulsoft.Report.Web
Partial Class Default2
Inherits System.Web.UI.Page
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
End Sub
Protected Sub btn2_Click(sender As Object, e As System.EventArgs) Handles btn2.Click
Dim data As New DataSet
data.ReadXml("D:\\demo.xml")
Dim report As New Stimulsoft.Report.StiReport
report.Load("D:\\Simplelist.mrt")
report.RegData(data)
StiWebViewer1.Report = report
End Sub
End Class
ASPX.VB:
----------
Code: Select all
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="Stimulsoft.Report.Web, Version=2013.3.1800.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a"
Namespace="Stimulsoft.Report.Web" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
<asp:UpdatePanel ID="UpdatePanel0" runat="server">
<ContentTemplate>
<asp:Button ID="btn2" Text="GetRpt" runat="server" Height="26px" />
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<table>
<tr>
<td>
</td>
</tr>
<tr>
<td>
<cc1:StiWebViewer ID="StiWebViewer1" RenderMode="AjaxWithCache" PrintDestination="PopupWindow" runat="server" />
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</form>
</body>
</html>