Print Page | Close Window

PropExchange problems

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=6150
Printed Date: 20 May 2024 at 6:08pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: PropExchange problems
Posted By: AndyL
Subject: PropExchange problems
Date Posted: 18 January 2007 at 5:02am
I have just installed version 10.4 and in experimenting with the Report Control I am having trouble using the PropExchange Object in the Report Control.
 
I added the following code to the standard sample app.
 

//try to save to XML file

XtremeReportControl.PropExchange pe = new XtremeReportControl.PropExchange();

pe.CreateAsXML(true, "TestSection");

pe.SaveToFile(@"c:\temp\andytest.xml");

I get the following error when trying to build the solution

Error 1 Cannot create an instance of the abstract class or interface 'XtremeReportControl.PropExchange' C:\Program Files\Codejock Software\ActiveX\Xtreme SuitePro ActiveX v10.4\samples\ReportControl\C#.NET\ReportSample\frmMain.cs 1818 51 ReportSample
 
 
I am sure that I have probably forgotten to add a reference or something - can anyone help?
 
regards
 
Andy



Replies:
Posted By: sserge
Date Posted: 18 January 2007 at 4:36pm
Hi,

You have to use a corresponding method of ReportControlGlobalSettings
 

XtremeReportControl.ReportControlGlobalSettings GS =
new XtremeReportControl.ReportControlGlobalSettings();
XtremeReportControl.PropExchange pe = GS.CreatePropExchange();


--
WBR,
Serge


Posted By: AndyL
Date Posted: 19 January 2007 at 4:23am

That worked a treat Serge - Many thanks

Andy




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net