Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: SetParameterValue Post Reply Post New Topic
Author Message
voxxo
Newbie
Newbie


Joined: 03 Jun 2009
Online Status: Offline
Posts: 4
Quote voxxo Replybullet Topic: SetParameterValue
    Posted: 04 Jun 2009 at 11:43pm
Can I do like this:

string parameterName = "CusdecMonth" + i.ToString();
customerReport.SetParameterValue(parameterName, billingMonth);

I get this error:
System.Runtime.InteropServices.COMException: Invalid index.
IP IP Logged
voxxo
Newbie
Newbie


Joined: 03 Jun 2009
Online Status: Offline
Posts: 4
Quote voxxo Replybullet Posted: 05 Jun 2009 at 2:47am
it works, sorry
IP IP Logged
kedarkhilare
Newbie
Newbie


Joined: 11 Jun 2009
Location: India
Online Status: Offline
Posts: 2
Quote kedarkhilare Replybullet Posted: 11 Jun 2009 at 10:33pm
Hello

I have one problem...................in sub reports I am using the links of parameters from main report ........also i have added one table in subreport
using database expert.............i am passing value of parameters using Vb.Net 2008............here problem begins

It only shows me the value of parameter field passed through code and data table feilds of subreport are disabled......but when I remove all the references of parameters it shows me all the fields of database....................


any buddy help me out?


IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.