Skip to Content
author's profile photo Former Member
Former Member

How to insert Xcelsius in CR with SDK

Has anyone programmatically inserted a SWF Xcelsius flash object in to a Crystal Report? If so, can you please describe how you did it?

I tried the code below, but got this error: "Adding or changing this kind of report object is not supported." I am using Crystal Reports 2008 and C#/.NET in Visual Studio 2008.

CrystalDecisions.CrystalReports.Engine.ReportDocument rptDoc = new CrystalDecisions.CrystalReports.Engine.ReportDocument(); 
ISCDReportClientDocument rasDoc = rptDoc.ReportClientDocument; 

CrystalDecisions.ReportAppServer.ReportDefModel.FlashObject fo = new CrystalDecisions.ReportAppServer.ReportDefModel.FlashObject(); 
CrystalDecisions.ReportAppServer.ReportDefModel.Section section = rasDoc.ReportDefController.ReportDefinition.ReportHeaderArea.Sections[0]; 
rasDoc.ReportDefController.ReportObjectController.Add(fo, section, -1);

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Oct 23, 2010 at 05:13 AM

    Hi Jim,

    No API's are exposed for doing that. All you an do is get the object info. Search using the Object Browser on swf and you'll find the 4 references.

    Go to Idea Place on the TABs above and suggest it as an Enhancement request.

    Thank you


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.