Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - PropExchange problems
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

PropExchange problems

 Post Reply Post Reply
Author
Message
AndyL View Drop Down
Newbie
Newbie


Joined: 07 November 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndyL Quote  Post ReplyReply Direct Link To This Post Topic: PropExchange problems
    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
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
AndyL View Drop Down
Newbie
Newbie


Joined: 07 November 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndyL Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2007 at 4:23am

That worked a treat Serge - Many thanks

Andy

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.188 seconds.