Print Page | Close Window

A parameter passing problem

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Writing Code
Forum Discription: .NET programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=3547
Printed Date: 23 Apr 2024 at 4:03pm


Topic: A parameter passing problem
Posted By: tboley
Subject: A parameter passing problem
Date Posted: 27 Jun 2008 at 6:27am
I have an application running (VB.Net VS2005) using CR11 , the report is created using a stored procedure that requests a parameter(fiscal period) to supply the information. The only problem is I receive the following error and do not know how to get around it. Error - 'ActiveX control '8856f961 -340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment.' I am still a beginner and could really use some help.
The report use to work when ran with VS2003, but after the conversion to VS2005 something changed with CR. A separate application has been created and the reports work fine, but when I try to pull it through the original application it fails.  I really need to get it back to the original application. I have converted this application to the VS2008, but still have the same problem.
If anyone has any advice or suggestions I would really appreciate it.



Print Page | Close Window