cancel
Showing results for 
Search instead for 
Did you mean: 

Remove report Groups/Section via API

Former Member
0 Kudos

Hi,

I`ve looked at the groups, sections collections and I did not see any delete method.

I need to remove specific groups or sections on run time.

How can I do it ?

do I need to named each section or group so I can find it using code ?

Regards,

Roei

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

To actually delete objects from a report, you will have to use the RAS SDK. Now, you may want to consider simply hiding a section as opposed to deleting it. In this case, you do not need RAS and you can use the Crystal Reports assemblies for .NET. Please note that if you do need more help, it will be good to provide the info requested in the previous note.

Ludek

Former Member
0 Kudos

Hi,

First I want to thank you for your answers.

The purpose is to delete the groups and also the sections and not supress them.

Here are the details:

1) .NET framework: 2.0

2) CR: 11.5.7

Which king of objects should I use in .NET to accomplish the task ?

Regards,

Roei

former_member183750
Active Contributor
0 Kudos

You will have to use RAS. There are a number of sample apps at this link:

https://boc.sdn.sap.com/samples/84/1194

And here is a link to the developer library;

https://boc.sdn.sap.com/developer/library

This White paper is a good source of info too:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10b840c0-623f-2b10-03b5-9d191386...

And finally, a KB on how to use reportclientdocument object from a reportdocument object is [here|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]

Ludek

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Please provide more details-

.net version?

CR version?

If you are using RAS sdk's than you can take help frorm [sample codes|https://boc.sdn.sap.com/codesamples].

You can also take help from [Dev library|https://boc.sdn.sap.com/node/7770]

Hope this helps!!

Regards,

Amit