![]() |
ReportControl FieldChooser and C# |
Post Reply ![]() |
Author | |
Boyd ![]() Senior Member ![]() Joined: 08 December 2003 Location: United States Status: Offline Points: 285 |
![]() ![]() ![]() ![]() ![]() Posted: 30 December 2004 at 10:47am |
I'm trying to use ReportControl in Visual C# .NET 2003. I have ReportControl on one form and have a second form with the FieldChooser on it (just like the VB Sample App). In order to tie to two together, you have to set the 'ReportControl.FieldChooser' property to reference the FieldChooser control on the 2nd form. The 'ReportControl.FieldChooser' property expects an object of type 'XtremeReportControl.FieldChooser'. When I try to cast the 'FieldChooser' object reference on my form to this type, I get an 'InvalidCastException' saying that the specified cast is not valid. Can someone help explain how I use FieldChooser with ReportControl in Visual C# .NET 2003? Thanks in advance! |
|
![]() |
|
Boyd ![]() Senior Member ![]() Joined: 08 December 2003 Location: United States Status: Offline Points: 285 |
![]() ![]() ![]() ![]() ![]() |
For anyone interested, the following code can be adapted to set the FieldChooser for a ReportControl: axReportControl.FieldChooser = axFieldChooser.GetOcx() as XtremeReportControl.FieldChooser; |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() 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 |