cancel
Showing results for 
Search instead for 
Did you mean: 

Insert new ReportObject (dinamic) in a Section...

Former Member
0 Kudos
87

Hello Sr´s.

I need upgrade my crystal 8.5 (RDC) to crystal 2008 .NET.

But have problems to convert some function of RDC to .NEt.

Samples: (Using Delphi)

1 - Insert a new image object dinamic.

In RDC:

var

Section : ISection;

...

if FileExists('c: empsample.jpg') then

Section.AddPictureObject('c: empsample.jpg', 120, 120);

In .NET:

reportDocument1.ReportDefinition.Areas[0].Sections[0].???

Need some like this:

reportDocument1.ReportDefinition.Areas[0].Sections[0].AddReportObject...

Its possible?

I really need Insert a new ReportObject in a Section (dinamic)...

2 - Delete a CrossTab Row Group.

In RDC:

var

CrossTabObj : ICrossTabObject;

index : integer ; // index of CrossTab Row Group

...

CrossTabObj := ICrossTabObject(Objeto);

CrossTabObj.RowGroups.Delete(index);

In .NET:

????

I dont know what need to do....

2 - Delete a Report Group. (dinamic)

In RDC:

var

index : integer ; // index of Repot Group

Report : IReport;

...

report.DeleteGroup(Index);

In .NET:

????

I dont know what need to do....

I really need help.

Thanks.

Edited by: Fabio.w on Mar 29, 2010 3:22 PM

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

To get Report Creation APIs, you will have to use InProc Ras. InProc Ras is only available with full versions of Crystal Reports. E.g.; it does not come with any version of CR that bundles with .NET.

I am not sure what you mean by crystal 2008 .NET, but I suspect it is "Crystal Reports Basic for Visual Studio 2008"(?). If that is the case, you will have to upgrade to CR 2008 (12.x).

Eval of CR 2008 is here;

http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx

Info on InProc Ras:

[Developer Library|https://boc.sdn.sap.com/developer/library]

[Sample Apps|https://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples]

[Programming Tutorial|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b050afe0-2fa5-2b10-658d-98f214ba6a4a]

Ludek

Answers (0)