Symptoms: The "Specified Cast Is Not Valid" exception fires.
Cause: There is a mix of old and new dlls in the references.
Solution:
- Remove all ActiveReports for .NET 3.0 references from the project.
- Add the ActiveReports for .NET 3.0 references necessary to your project, making sure to use only references to assemblies from the latest build installed on your machine.
Symptoms: The exported RTF file does not look exactly like the original report.
Cause: The RTF export is not WYSIWYG, and is based on WordPad rather than Word, so there are a number of limitations. The following items are not supported in the RTF export.
- Line controls
- Backcolor
- Shape controls
- Overlapping controls
- Control borders (except for borders on the RichTextBox control, which are supported)
- Angled text
Solution: Try to avoid using the above items in reports which will be exported to RTF.