ActiveReports 6: FlashViewer Troubleshooting


01-12-2010, 9:43 AM

This FAQ is compiled based on errors reported by end users and solutions provided to them.

Symptom: When running from IIS, an error occurs with the following message: "IOError while loading document. Reason: Error #2032."
Resolution: Make sure that IIS is configured correctly. Also, enable HTTPHandlers in Web.config File

Symptom: When running from IIS, an error occurs with the following message: "swfobject is undefined".  Reported here.
Resolution: Make sure that IIS is configured correctly.  Also, make sure that ActiveReports Handlers are configured properly
.

Symptom:  FireFox displays white pages when using Flash Viewer.  IE renders fine.  This can occur if height and width of Flash Viewer control is set to 100% and because of this setting FireFox wont resize the Flash Viewer at all.
Resolution:  This issue can be resolved though the usage of CSS. 

A.  If working in Visual Stdio IDE, in the aspx that contains the WebViewer Control, following code can be used.
-------------
<style type="text/css">
html, body, #WebViewer1, #WebViewer1_controlDiv
{
  width: 100%;
  height: 100%;
  margin: 0;
}
</style>
-------------
where, WebViewer1 is the name of the WebViewer control and NOT Flash Viewer control.

B.  If using an external css file, assign the Flash Viewer control a CSS class of report-viewer and the specified the following in the CSS file:
------------------------------
.report-viewer, .report-viewer div, .report-viewer object {height: 100%; width: 100%;}