Glossary Item Box
Symptoms: In the WebViewer, reports render correctly with the HTML viewer type but they show up blank with the AcrobatReader viewer type on the production web server.
Cause: .ArCacheItem is not set up in your IIS extension mappings.
Solution:
Symptoms: "Error Creating Control - Webviewer" appears on the WebForm in place of the WebViewer control.
Cause: There is a version conflict within the project.
Solution:
<%@ Register TagPrefix="activereportsweb" Namespace="DataDynamics.ActiveReports.Web" Assembly="ActiveReports.Web, Version=4.0.0.1009, Culture=neutral, PublicKeyToken=cc4967777c49a3ff"%>
Protected WithEvents WebViewer1 As DataDynamics.ActiveReports.Web.WebViewer
Symptoms:
Cause: The httpHandlers in the Web.config file are missing or referencing the wrong version.
Solution: Make sure that the following HTTP Handler code is in the Web.config file and that the version is current.
<httpHandlers><add verb="*" path="*.ArCacheItem" type="DataDynamics.ActiveReports.Web.Handlers.WebCacheAccessHandler, ActiveReports.Web, Version=4.0.0.1009, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" /><add verb="*" path="*.Rpx" type="DataDynamics.ActiveReports.Web.Handlers.RpxHandler, ActiveReports.Web, Version=4.0.0.1009, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" /><add verb="*" path="*.ActiveReport" type="DataDynamics.ActiveReports.Web.Handlers.CompiledReportHandler, ActiveReports.Web, Version=4.0.0.1009, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" /></httpHandlers>
Symptoms: The report in the HTML viewer type does not look exactly like the other viewer types.
Cause: The HTML format is not WYSIWYG. It does not support the following items:
Solution: Try to avoid using the above items in reports which will be shown in HTML format.
Symptoms:
Cause: If the control is being loaded in response to a client postback, the Report property will not run the specified report. Instead it uses a previously cached copy of the report's Document in the WebCache service to supply speedy responses to clients.
Solution: To force the client to use a new instance, call the ClearCachedReport method before setting the Report property.
Symptoms: The WebViewer will not automatically print a report without displaying it.
Cause: The WebViewer provides convenience in automating many of the steps involved in providing a reporting solution, but the cost of this automation is a loss of control of these steps.
Solution: In order to provide no touch printing in ASP.NET, stream the file to the ActiveX viewer control and then print using vbscript in the ASP code (not the ASP code behind).
<OBJECT id=arv codeBase=bin/arview2.cab#version=-1,-1,-1,-1 height=0 width=0 classid=CLSID:8569d715-ff88-44ba-8d1d-ad3e59543dde>
<script language=vbscript> <!-- sub window_onload() arv.datapath = "Default.aspx?ReturnReport=1" end sub
sub arv_loadcompleted() arv.PrintReport False end sub --> </script>
See Also |
Walkthroughs: Configuring the HTTP Handlers | Walkthrough: Web Viewer Control
Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.