Skip to Content
0
Former Member
Mar 29, 2010 at 01:15 PM

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

54 Views

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