Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Insert new ReportObject (dinamic) in a Section... Post Reply Post New Topic
Author Message
cwrulez
Newbie
Newbie


Joined: 29 Mar 2010
Online Status: Offline
Posts: 5
Quote cwrulez Replybullet Topic: Insert new ReportObject (dinamic) in a Section...
     Posted: 29 Mar 2010 at 3:05am
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:\temp\sample.jpg') then
  Section.AddPictureObject('c:\temp\sample.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 cwrulez - 29 Mar 2010 at 3:23am
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 01 Apr 2010 at 3:43am
in general, CR does not like dynamic changes to the report.  You can rearrage existing objects and suppress existing objects in a report, but adding/deleting them...well it seems most people run into issues.  Best would be to have the report load a picture from a location or from a dataset, and to supply the picture you want to that location of in that dataset.  If you don't want to see something, suppress it.
 
HTH
IP IP Logged
cwrulez
Newbie
Newbie


Joined: 29 Mar 2010
Online Status: Offline
Posts: 5
Quote cwrulez Replybullet Posted: 07 Apr 2010 at 2:50am
Originally posted by lockwelle

in general, CR does not like dynamic changes to the report.  You can rearrage existing objects and suppress existing objects in a report, but adding/deleting them...well it seems most people run into issues.  Best would be to have the report load a picture from a location or from a dataset, and to supply the picture you want to that location of in that dataset.  If you don't want to see something, suppress it.
 
HTH


Thanks for help me Clap
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum