Exception thrown when using Viewer. Print to print a report Symptoms: An exception is thrown when the Viewer. Print method is used to print a report. Cause: Print method was called before the page was loaded completely.
|Published (Last):||17 February 2012|
|PDF File Size:||9.24 Mb|
|ePub File Size:||6.7 Mb|
|Price:||Free* [*Free Regsitration Required]|
Exception thrown when using Viewer. Print to print a report Symptoms: An exception is thrown when the Viewer. Print method is used to print a report. Cause: Print method was called before the page was loaded completely. Solution: Use the Viewer. Print method in the LoadCompleted event. ActiveReports controls do not appear in the toolbox Symptoms: ActiveReport controls do not appear in the toolbox even when they are added manually using the steps in Adding ActiveReports Controls.
Cause: The project is using. NET 2. Solution: Confirm if the project is using. NET 3. Section Report Troubleshooting Blank pages printed between pages, or a red line appears in the viewer Symptoms: Blank pages are printed between pages of the report.
Cause: This problem occurs when the PrintWidth plus the left and right margins exceeds the paper width. For example, if the paper size were set to A4, the PrintWidth plus the left and right margins cannot exceed 8. At run time, ActiveReports marks a page overflow by displaying a red line in the viewer at the position in which the breach has occurred.
Solution: Adjust the PrintWidth in the report designer using either the property grid or by dragging the right edge of the report. Copying reports results in stacked controls Symptoms: A report file copied into a new project has all of its controls piled up at location 0, 0. Cause: The report has become disconnected from its resource file. Cause: This issue occurs when the Microsoft. NET Framework 4. Solution: Open the app. XML code. Cause: This is an expected error if no default value is given for a parameter.
To use some, but not all, of the optional parameters, use all of the separator characters but with no text between one and the next for unused parameters. OleDbException" occurred in system. Please note that for different data sources, these requirements may differ. This can be done in the property grid or in code in the ReportStart event. The viewer shows the report on the wrong paper size Symptoms: In the viewer, the report renders to a different paper size than the one specified.
Cause: ActiveReports polls the printer driver assigned to the report to check for clipping, margins, and paper sizes supported by the printer. Solution: If the report is to be printed, the printer assigned to the report must support the paper size and margins. Please note that any changes to the print settings in code must be made in or before the ReportStart event.
To use custom paper sizes not supported by the driver, set the PrinterName to an empty string to use the ActiveReports virtual print driver. This does not allow printing, but is recommended for reports that are only exported or viewed. This prevents ActiveReports from making a call to the default printer driver. Use the following code in the ReportStart event, or just before. Run is called. C code. Copy Code Visual Basic. NET code. Copy Code Me.
Here is some sample code which can be placed in the ReportStart event, or just before. Copy Code this. Custom; this. Custom Me. Cause: You can create more than one custom paper size, so setting only the PaperKind property is not enough to create a custom paper size. Solution: In addition to setting the PaperKind property to Custom, you must also set the PaperName property to a unique string. Symptoms: An expression containing a numeric field name does not display any data at runtime.
Cause: Visual Basic syntax does not allow an identifier that begins with a number. Value Solution: Make the numeric field name a string. Item "". Solution: There is no direct way to add a DataField in a PageHeader, however, as a workaround you can create a hidden report parameter that is bound to your dataset and has the default value set to your expression. You can then use this parameter in the page header. Alternatively, you can use an Page report instead, which lets you place data fields anywhere on a page.
Document property Symptoms: An exception is raised when Viewer. Cause: Document property is available for section reports only. Cannot add assembly reference created in. Cause: Stand-alone Designer application has been created in. NET 4. Flash Viewer Troubleshooting Symptoms: With the Flash viewer, my page throws a swfobject is undefined error. IOError while loading document. Reason: Error FireFox displays white pages Symptoms: When running the Flash viewer in FireFox, reports display white pages, but Internet Explorer renders reports correctly.
FireFox does not support this setting, so it does not resize the Flash Viewer at all. Solution: Use cascading style sheets CSS to set the properties. Add code like the following to the CSS file. Solution: There are two ways to resolve this issue.
Open a Command Prompt window. In Silverlight 5, adding the Silverlight Viewer control does not automatically add reference to System. Solution: Add a reference to System. Add the following content to the staticContent node. Collect and it should be avoided. However, if calling GC. Collect reduces the memory leak, then this indicates that it is not a leak after all. A leak in managed code is caused by holding a reference to an object indefinitely. If ActiveReports is holding a reference to an object, then the object cannot be collected by the garbage collector.
Cause: There are several reasons why too much memory may be consumed: The report is not being disposed of properly Cause: The report is not being disposed of properly. The incorrect syntax is as follows.
ACTIVEREPORTS OLEOBJECT PDF
Releases oleobjfct control instance from memory. Filtered Include Inherited Members. ARControl Top Gets or sets, in inches, the top position of the control relative to the section that contains it. Show All Members Options: Gets or sets the width of the control in inches. Name Description BackColor Gets or sets the background color axtivereports the control area.
Inserting Oleobject in entire report
Brings the control to the front of the z-order. Gets or sets the height of the control in inches. Size Gets or sets the size of the control in inches. Releases the control instance from memory. Invokes activereportx Ole server to edit the current embedded instance. SendToBack Sends the control to the back of the z-order.