Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - ReportControl FieldChooser and C#
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ReportControl FieldChooser and C#

 Post Reply Post Reply
Author
Message
Boyd View Drop Down
Senior Member
Senior Member


Joined: 08 December 2003
Location: United States
Status: Offline
Points: 285
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boyd Quote  Post ReplyReply Direct Link To This Post Topic: ReportControl FieldChooser and C#
    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!

Back to Top
Boyd View Drop Down
Senior Member
Senior Member


Joined: 08 December 2003
Location: United States
Status: Offline
Points: 285
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boyd Quote  Post ReplyReply Direct Link To This Post Posted: 12 January 2005 at 8:00am

For anyone interested, the following code can be adapted to set the FieldChooser for a ReportControl:

axReportControl.FieldChooser = axFieldChooser.GetOcx() as XtremeReportControl.FieldChooser;

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.