473,399 Members | 3,656 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

C2664 error fix in SetParameters for Local Report

I am using VS 2005 c++ ReportViewer to generate a dynamic report with a date filter.

The following is the code contained in the form.h:

public: void SetReportParameters()
{
ReportParameter^ DatePara = gcnew ReportParameter("ShowDate",this->datepick->Value.ToString());

this->reportViewer1->LocalReport->SetParameters( gcnew array<ReportParameter^>{DatePara});

}

The last statement above leads to Error C2664, which complains that .. cannot convert parameter1 from 'cli::array<Tpe>^' to 'System::Collections::Generic::IEnumerable<T>^'...

Is this related to some bug in my version of Visual Studio 2005? This seems related to Feedback
C++/CLI incorrectly requires safe_cast to assign CLI array to IEnumerable<T>, opened in 11/05/2006

If the VS 2005 contains Service Pack 1, the problem described in C2664 shouldn't happen? Anyone can help me to answer this problem? Thanks.

Franklin
Mar 10 '08 #1
0 1355

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: intl04 | last post by:
I am getting strange print-related error messages when trying to create (not print!) reports. For example, when I click 'new' to create a report then choose 'design view', I get an error message...
4
by: Scott Chang | last post by:
Hi all I copied the following VC++ 6.0 code (written by someone in the website) to my VC++ .Net 2002-Windows XP Pro PC ////****Solution 'dyndllclass' (2 projects)***/// ///***dynapp****(1st...
0
by: runningdog | last post by:
Hi, I've tried to follow the example provided in http://msdn2.microsoft.com/en-us/library/microsoft.reporting.winforms.serverreport.setparameters.aspx in a server report with multiple parameters...
1
by: Babillon | last post by:
Good day all. I have a bit of a problem in a small project I'm working on. I've decided to make a function that will recursively loop through all of the controls on a form and apply a user...
0
by: smkkaleem | last post by:
I am stuck with the error I have posted above in the question title I am developing ASP.NET 2.0 web site and I have added a new rdlc file to my project by using the following process: -Right...
2
by: =?Utf-8?B?R3lhbmVuZHJh?= | last post by:
I am using Ajax control(Update Panel) in my web page(ASP.Net 2.0) and putting Report Viewer(Sql Server Reporting Services 2005) Control in it. When I am displaying any report it is coming...
1
by: td0g03 | last post by:
I have no idea why am I getting an error C2664: 'parseInput' : cannot convert parameter 2 from 'main::WORD_STRUCT ' to 'struct WORD_STRUCT ' #include <stdio.h> #include <stdlib.h> #include...
0
by: biswajitkundu2007 | last post by:
How to implement subreport in vb.net RDLC report?? I have the following code but it gives the error :-error subreport could not be shown Private orderDetailsData As DataTable = Nothing ...
2
by: johnsonbl | last post by:
pttempmonthaddr = &tempmonth; pttempdayaddr = &tempday; separate(date, pttempmonthaddr, pttempdayaddr);/*function call*/ printf("\nThe month entered is %s and day entered is %f.\n",...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.