找回密码
 立即注册

QQ登录

只需一步,快速开始

john

注册会员

1

主题

13

帖子

16

积分

注册会员

积分
16

活字格认证

最新发帖
john
注册会员   /  发表于:2010-1-12 12:32  /   查看:17993  /  回复:17
(急,在线等)关于ActiveReport 6.0试用版
安装使用该试用版,在VS 2005上调试运行 web viewer,运行正常,可以看到运行结果!
但是发布到IIS网站上,运行出错!
运行结果:
Error executing child request for /R0000/ReportViewer.aspx.
请教原因!
是试用版的原因吗?

17 个回复

正序浏览
wahaha
社区贡献组   /  发表于:2010-3-1 14:26:00
18#

回复 17# john 的帖子

回复 使用道具 举报
john
注册会员   /  发表于:2010-1-15 14:31:00
17#
关于htmlviewer和pdf 显示问题,已经解决!
iis上.ArCacheItem需要配置错误导致的
正确修正后,故障解决!
回复 使用道具 举报
john
注册会员   /  发表于:2010-1-14 18:31:00
16#
非常感谢各位的鼎力相助!
上述错误问题,已经解决!可以发布到iis,使用webviewer进行html浏览.
不过出现一些其他问题:
webviewer中
Q1: HtmlViewer     可以浏览报表数据,但是 一些图标按钮(翻页等)没有正常显示  原因不明
Q2: PDF Reader    不能显示,提示:页面没有找到   原因不明
Q3:  Excel出力        webviewer好像不支持显示的! 如何才能使用rpx,  直接进行excel出力。
请教各位大侠!
回复 使用道具 举报
john
注册会员   /  发表于:2010-1-13 18:30:00
15#
我的调查好像有点进展:好像是rpx文件没有正确找到!
现在状况:
rpx文件和reportviewer.aspx在同级目录
rpx的选定是在reportviewer中动态设定reportname
------------------------------------------------------------------
                string RptType = PreviousPage.RptType;
                switch (RptType)
                {
                    case "0801":
                        arvWebMain.ReportName = "Rpt01.rpx";
                        break;
                    case "0802":
                        arvWebMain.ReportName = "Rpt02.rpx";
                        break;
                    case "0803":
.....
---------------------------------------------------------------------
ReprotName的设定方法是否正确?
rpx文件好像不能发布,我自己将rpx文件拷贝到Reprotviewer.aspx所在目录
请教设置是否正确?
回复 使用道具 举报
john
注册会员   /  发表于:2010-1-13 17:31:00
14#
我刚才试了一下Ar6.0 提供sample( ArWebSampleProCs6)
我把它发布到iis上,WebControl.aspx运行正常
我觉得iis配置应该没有问题!
是不是ReportViewer.aspx得调用方式有问题?
我的写法基本上采用了sample中的方式。
回复 使用道具 举报
john
注册会员   /  发表于:2010-1-13 16:36:00
13#
感谢帮助!我将发mail给您!
回复 使用道具 举报
wahaha
社区贡献组   /  发表于:2010-1-13 15:46:00
12#
非常感谢楼主对我们产品的试用!

对于楼主遇到的问题, 经过几轮讨论, 以及我们技术人员的测试未能在我们的环境中重现这样的错误;
无论是试用版还是正式版,甚至是专业版.

至于是否是楼主环境中其他方面的问题, 也较难判断.

楼主能否短消息我您的联络方式, 或寄至tool-support.cn@grapecity.com; 以便我们进一步跟进.

楼主提到的评估版, 指的是下载的试用版对吧, 试用版是可以正常使用的
回复 使用道具 举报
john
注册会员   /  发表于:2010-1-13 13:56:00
11#
ActiveReports.Web.dll, AR评估版中是不是不可以发布使用的?
回复 使用道具 举报
john
注册会员   /  发表于:2010-1-13 12:58:00
10#

回复 9# john 的帖子

程序调用过程:
1 report调用
Server.Transfer("~/R0000/ReportViewer.aspx",false);

2 reportviewer.aspx
-------------------------------------------
<%@ Page Language="C#" MasterPageFile="~/VivaBase.master" AutoEventWireup="true" Inherits="R0000_ReportViewer" Title="ReportViewer" Codebehind="ReportViewer.aspx.cs" %>
<%@ Register TagPrefix="activereportsweb" Namespace="DataDynamics.ActiveReports.Web"
    Assembly="ActiveReports.Web, Version=6.0.2019.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" %>
<%@ PreviousPageType VirtualPath="~/R0000/R1001.aspx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
<table style="width:100%;height:100%">
    <tr>
        <td align="left">
            <aspabel ID="lblViewerType" runat="server" Font-Bold="True" >Select Viewer Type:</aspabel>&amp;nbsp;
            <aspropDownList ID="cboViewerType" runat="server" Width="150px">
            </aspropDownList>
            <asp:Button ID="BtnView" runat="server" OnClick="BtnView_Click"  Text="View" Width="65px" />
        </td>
    </tr>
    <tr style="width:100%;height:95%">
        <td align="center" >
            <activereportsweb:WebViewer ID="arvWebMain" runat="server" Width="100%" Height="650px">
                <dfExportOptions
                    Application="GrapeCity ActiveReports (tm) 6">
                </PdfExportOptions>
                <FlashViewerOptions ShowSplitter="False" ShowToc="False">
                </FlashViewerOptions>   
            </activereportsweb:WebViewer>
        </td>
    </tr>
</table>
</asp:Content>
----------------------------------
reportviewer.aspx.cs

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DataDynamics.ActiveReports;

public partial class R0000_ReportViewer : System.Web.UI.Page
    {
    public string rptName = string.Empty;

    protected void Page_Load(object sender, System.EventArgs e)
    {

        // Put user code to initialize the page here
        // if this is not the postback, then fill the dropdown/combo with it's available viwer types.
        if (!this.IsPostBack)
        {
            // it's not a postback, so populate that combo
            this.cboViewerType.Items.Clear();
            this.cboViewerType.Items.Add("HtmlViewer");
            this.cboViewerType.Items.Add("DF Reader");
            this.cboViewerType.Items.Add("MS Excel");
            //this.cboViewerType.Items.Add("FlashViewer");
            //this.cboViewerType.Items.Add("RawHtml");
            this.cboViewerType.SelectedIndex = 0;// the default is HTML.

            if (Page.PreviousPage != null) {
                string RptType = PreviousPage.RptType;
                switch (RptType)
                {
                    case "0801":
                        arvWebMain.ReportName = "Rpt01.rpx";
                        break;
                    case "0802":
                        arvWebMain.ReportName = "Rpt02.rpx";
                        break;
                    case "0803":
                        arvWebMain.ReportName = "Rpt03.rpx";
                        break;
                    case "0804":
                        arvWebMain.ReportName = "Rpt04.rpx";
                        break;
                    case "0805":
                        arvWebMain.ReportName = "Rpt05.rpx";
                        break;
                    case "0806":
                        arvWebMain.ReportName = "Rpt06.rpx";
                        break;
                }
            }
        }
    }
        #region Web Form Designer generated code
                override protected void OnInit(EventArgs e)
                {
                        //
                        // CODEGEN: This call is required by the ASP.NET Web Form Designer.
                        //
                        InitializeComponent();
                        base.OnInit(e);
                }
               
                /// <summary>
                /// Required method for Designer support - do not modify
                /// the contents of this method with the code editor.
                /// </summary>
                private void InitializeComponent()
                {   

                }
        #endregion

                /// <summary>
                /// commit_Click - runs with the user click the view button
                /// and selects a different viewing mode.
                /// </summary>
        protected void BtnView_Click(object sender, EventArgs e)
                {
            // Set the Viewer Type from the dropdown list to the ActiveReports WebViewer
            string selection = this.cboViewerType.Items[this.cboViewerType.SelectedIndex].Text;
            switch (selection)
            {
                case "DF Reader":  //Acrobat Reader was chosen as the viewer type
                    this.arvWebMain.ViewerType = DataDynamics.ActiveReports.Web.ViewerType.AcrobatReader;
                    break;
                //case "FlashViewer":  //Flash was chosen as the viewer type
                //    this.arvWebMain.ViewerType = DataDynamics.ActiveReports.Web.ViewerType.FlashViewer;
                //    break;
                case "HtmlViewer":  //HTML Viewer was chosen as the viewer type
                    this.arvWebMain.ViewerType = DataDynamics.ActiveReports.Web.ViewerType.HtmlViewer;
                    break;
                case "RawHtml":  //Raw HTML was chosen as the viewer type
                    this.arvWebMain.ViewerType = DataDynamics.ActiveReports.Web.ViewerType.RawHtml;
                    break;
                case "MS Excel":
                    break;
            }
        }
    }
回复 使用道具 举报
12下一页
您需要登录后才可以回帖 登录 | 立即注册
返回顶部