Moving a Subreport from one section to another with C#

Hi,
I'm new to this forum, so please forgive me if I posted my question on the wrong board.
I try to programm something like a litte template engine for our Crystal Reports (we are working here with CR 2008). Users of our application should be able to configure a template which parses the Report and rearranges sections and subreports accordingly. basicly, we design a report with, for example, four detail sections, in one of them we placed a subreport. The user should now be able to define, that detail section c is on top of section a (I solved this already) and that the subreport1 is shown in the report footer and no longer in the detail section.
How can I move a subreport from one section to another?
By the way, I'm using the Report Application Server SDK. I also found the SubreportController.ImportSubreport - method. But it only imports Subreports placed in another .rpt-file.
Hope somebody here could help me
Thanks in advance
Jerry

First place to start will be with the RAS samples page:
https://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples
Next see [How to Use The RAS SDK .NET With In-Process RAS Server|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10b840c0-623f-2b10-03b5-9d1913866b32]
The developer help is [here|http://help.sap.com/businessobject/product_guides/boexir31/en/rassdk_net_dg_12_en.chm]
Possibly one of the simplest ways of achieving what you want to do is to have a copy of the subreport on the HD and import it into the main report as needed:
//Get SubreportController object from ReportClientDocument object
SubreportController subRptController = reportClientDocument. getSubreportController();
String name = "GlobalSales.rpt";
String reportURL = "C:\MyReports\GlobalSales.rpt";
//Get the section into which the subreport will be added
ISection footerSection = reportClientDocument.getReportDefController() .findSectionByName
("FooterSection");
//Return the imported existing report as a SubReportClientDocument object
ISubreportClientDocument subRptClientDocument = subRptController. importSubreport(name,
reportURL, footerSection);
catch (ReportSDKException e)
//do something here
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup

Similar Messages

  • Moving field object from one section to another programatically

    How do I move text/field objects from one section to another at run time. The ReportObjects collection in the section is readonly and setting the left, top property of the ReportObject only seems to move object within the same section.
    I'm using Crystal Reports version 10.5 that comes with VS 2008 professional.
    Edited by: iyounus on May 26, 2009 9:41 PM

    Hi;
    The trial version will offer this capability. You can either use RAS (which is available with Crystal Reports, or Business Objects Enterprise), or the Crystal Reports engine. Which you use will depend on the target for your application, see this for some tips on that:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f006a5e6-7e64-2b10-8a84-8b15ca5cacfc
    And, some links to samples that add fields:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20300f17-c566-2b10-b586-b8e8a23e6668
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3085841e-c566-2b10-238c-9f7c3f85d816
    https://www.sdn.sap.com/irj/boc/sdklibrary
    Regards,
    Jonathan

  • I moved some songs from one computer to another with home sharing and now these songs will not play on iTunes on the second computer.

    What can I do without redownloading the songs, since I don't have access to the first computer right now?

    Does it give a reason for why they won't play, or is that a secret?
    Downloading (using iOS or computer) past purchases from the App Store, iBookstore, and iTunes Store - http://support.apple.com/kb/ht2519 - enabled with iTunes 10.3 and newer; not all media formats are available in all countries (see: iTunes in the Cloud and iTunes Match Availability by Country - http://support.apple.com/kb/HT5085); apps, books (not audiobooks), music, t.v. shows, and movies (some - not all studios have permitted this).  Downloading previously purchased movies and TV shows requires iTunes 10.6 or later.  Discontinued items not available. For items not included in the iCloud list (e.g., ringtones, audiobooks), or locations or computer systems where iCloud is not (yet?) available, you only get one download per fee paid.  Apple notes it is your responsibility to back up your purchases.
    Select the iTunes Store on the left side of iTunes.
    Click on Purchased on the right side under Quick Links.
    You can re-download your available previous purchases.

  • I bought a new laptop and used Windows Easy Transfer cable and moved all files from one computer to another. I installed iTunes and found my iTunes music Library.  However, when I plug in my iPod it says it is already synced with another iTunes Library.

    I bought a new laptop and used Windows Easy Transfer cable and moved all files from one computer to another. I installed iTunes and found my iTunes music Library.  However, when I plug in my iPod it says it is already synced with another iTunes Library. 
    I don't see anything in Help that shows when you already have transfered all the files over.  Why would it want to erase and sync when I already have all the music folder copied over?  I didn't have an issue when I had another technician copy from one laptop to another.  Home sharing is also on but not being recognized.

    I suspect you only migrated the media folder instead of the complete working library. Either review the transfer process and copy over the entire iTunes folder from your old profile's music folder or see Recovering your iTunes library from your iPod or iOS device.
    tt2

  • I have over 200 hours of HD video on 5 different TB Thunderbolt GRaid hard drives. I need to reorganize my projects, moving large files from one drive to another. Advice?

    I have over 200 hours of HD video on 5 different TB Thunderbolt GRaid hard drives. I need to reorganize my projects, moving large files from one drive to another. Advice?

    Do some testing to get your method working right with some less than important footage.
    Copy/paste files where you want then.
    Use the FCE Reconnect feature to tell FCE where the newly copied files reside.
    Make sure the new location and files are working as expected with your Projects.
    Delete the original files if no longer required.
    Al

  • How to programmatically copy a OneNote page from one section to another

    How to programmatically copy a OneNote page from one section to another.
    I don't find any interface in OneNote
    2010 Developer Reference which will let me do this.
    any help?
    Regards,
    Umar
    OneNote 2010

    Hi Umarinam,
    Thank you for posting in the MSDN Forum.
    In the page OneNote 2010 Developer Reference, you can see an Application Interface which includes methods
    help retrieve, manipulate, and update OneNote information and content. 
    The below are some basic samples 
    Retrieving Section Metadata in OneNote 2010
    Programmatically Opening and Closing a Notebook in OneNote 2010
    Hope it helps. 
    Best regards,
    Quist Zhang [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Moving multiple queries from one category to another in QM

    Hi All,
    Is there is any way of moving multiple queries from one category to another in the query manager?
    Or is the only way of doing it by saving each one individually into a different category.
    Any ideas ?
    Regards,
    Rakesh N

    Hi Rakesh,
    The query manager has limited function compare with normal file management applications. Under current design, you have to do this one by one. You just need to make sure move the smaller amount of queries to large category. Category name can be changed easily.
    Thanks,
    Gordon

  • Moving CMS database from one server to another

    Using the following:
    Crystal Enterprise 10, installed on W2K3 Server R2 (not making any changes to this server);
    CMS database, installed on W2K Server, SQL Server 2000, SP3
    New database server: W2K3 Server R2, SQL Server 2005, SP2
    I found what I think are the steps to moving the database from one place to another in the CE10 Administrator's guide (pages 291-300, but I want to make sure there aren't any "gotchas" when moving the database location and/or upgrading the database version.  I'm primarily a DBA, so I already know about the Schema security change going from SQL 2000 to SQL 2005.
    In a nutshell, here's my plan:
    1. Take fresh backup of the existing CMS database
    2. Stop Crystal Management Server
    3. Click "Specify CMS Data Source" on the toolbar.
    4. ETC--following the steps in the admin guide
    If anyone has done this and has run into any problems (what I'm expecting) or had it go smoothly (I would be surprised), please let me know what to expect.
    Thanks!

    All you really need to do is stop the crystal services.
    Backup the CMS and Auditing database
    Detach the CMS and Auditing database
    Copy CMS and Auditing databases to new DB server
    Attach the CMS and Auditing databases
    Set the compatibility mode
    On the servers/s that host the CMS service, modify the ODBC connections to point to the new database server
    Start the CMS service, fire up the Crystal services.
    One thing to note, I don't think SQL 2005 is a supported platform for CE10 - this doesn't mean it won't work and since the support lifecycle for the product is long gone it doesn't really make much difference however you may want to run some thorough testing prior to the move.
    Edited by: James Pretorius (CCLTD) on Aug 5, 2009 9:20 PM

  • How do i copy music from one ipod to another with 1 cord?

    how do i copy music from one ipod to another with 1 cord?

    You cannot copy content directly from one iPod to another. If the music was purchased from the iTunes Store, you have the following options:
    - sync the iPod to your computer, transfer the content to iTunes, and then connect the other iPod and sync from iTunes
    - use iCloud (which requires iOS 5).
    - download the music from from the iTunes Store to the second iPod. See:
    http://support.apple.com/kb/ht2519
    Regards.
    Message was edited by: varjak paw

  • I took a video with my iphone5 and I don't see it on my iPad. Can videos go from one device to another with iCloud?

    I took a video with my iphone5 and I don't see it on my iPad. Can videos go from one device to another with iCloud?

    No.  Photo stream only streams photos, not videos.  To transfer videos between your devices you can either import them to iTunes and sync them, or (more conveniently) use an app like PhotoSync or Bump.

  • Is there a way of shifting purchases from one account to another with the same billing information, so that I don't lose purchases made by my iPhone when I sync?

    The AOL address I was using for my iTunes account has been deleted due to me not signing in for awhile and I'm afraid that I will lose all of my purchases made from my iphone when I sync it into iTunes for a much needed update and so that I can (hopefully) transfer its data to my new iPhone 4...
    The only time I have synced my current iPhone was when I activated it but since then I have not been able to sync with my computer and now have a new one.
    Sorry about the garbled way this is written but I desperately need help:
    1, Is there a way of shifting purchases from one account to another with the same billing information?
    Or
    2, is there a way of recovering my old account and changing the details?
    Any other help is greatly appreciated
    Thom

    You don't need to access your e-mail account, just get into your Apple account and change the e-mail address. If you can't access your Apple account, then you have a bigger issue to contend with.

  • Move posts from one tabel to another with checkboxes in HTML DB

    I wish to replace the checked rows from one table to another with a PL/SQL statement.
    When I wish to replace one row, there is no problem. But when I wish to replace two or more I get an error ORA-00001: unique constraint (HTMLDB_ERASMUS.SYS_C0042823) violated.
    The only unique constraint in my table is the primary key ID, witch is generated with a sequence, so normally there is never twice the same value for an ID.
    Can someone help me here, please?
    Here is my code
    DECLARE     
    lv_i NUMBER :=1;
    lv_ID add_post.ID%TYPE;
    lv_auteur add_post.auteur%TYPE;
    lv_titel add_post.titel%TYPE;
    lv_community add_post.community%TYPE;
    lv_rating add_post.rating%TYPE;
    lv_description add_post.description%TYPE;
    CURSOR move_posts iS
    SELECT ID, auteur, titel, community, rating, description
    FROM add_post
    WHERE ID = HTMLDB_APPLICATION.G_F01(lv_i);
    BEGIN
    FOR lv_i IN 1..HTMLDB_APPLICATION.G_F01.count LOOP
    OPEN move_posts;
    FETCH move_posts INTO lv_ID, lv_auteur, lv_community, lv_titel, lv_rating, lv_description;
    INSERT INTO wouter_published_posts VALUES (lv_ID, lv_auteur, lv_community, lv_titel, lv_rating, lv_description);
    DELETE FROM add_post WHERE ID = HTMLDB_APPLICATION.G_F01(lv_i);
    --EXIT WHEN move_posts%NOTFOUND;
    COMMIT;
    CLOSE move_posts;
    END LOOP;
    END;

    That should not be necessary because I get the value of ID out of another table, where I generate ID with a sequence..
    So normally it should just tranfer that row from one table to another. But it doesn't !
    Knowing that I cannot create a row in the table wouter_published_posts(I can just move rows from the add_post table to the wouter_published_posts table), It should be inpossible that twice the ID appears. But yet he keeps trowing errors...
    help me, please

  • I would like to know how to transfer ebooks from one laptop to another with adobe digital editions both authorized with the same adobe ID.

    I would like to know how to transfer ebooks from one laptop to another with adobe digital editions both authorized with the same adobe ID.

    Stop using the account.
    You need do nothing more.
    You will need to authorize your computer for both accounts as you have purchased from both accounts.

  • Copy a folder from one user to another  with the enterprise SDK

    Can anyone tell me how to copy a request in "My favorites" from one User to another with the enterprise SDK ?
    thanks in advance
    a great day to you'all
    Quentin

    Please post this query to the .NET Development - BusinessObjects Enterprise forum:
    .NET SDK Application Development
    That forum is monitored by qualified technicians and you will get a faster response there. Also, all BOE queries remain in one place and thus can be easily searched in one place.
    Thank you for your understanding,
    Ludek

  • File move from one dir to another with SXPG_COMMAND_EXECUTE

    Hi all,
    Need some help in using UNIX COMMAND with SXPG_COMMAND_EXECUTE.
    I need to move files from one directory to another with MV command,so anybody have any idea regarding the same?
    If any sample code then that will be really gr8.
    Its urgent requirement so pls do the needful
    Thanx in advance

    Hi
    You will have to create external operating system command in SM69 to use with SXPG_COMMAND_EXECUTE. Pass the command name that you create in sm69 to this FM .
    You would need authorization objects S_LOG_COM, S_RZL_ADM to be able to successfuly use this FM.
    Regards
    Kalpana

Maybe you are looking for

  • ITunes cannot run because it has detected a problem. . .

    I have used iTunes for years but now when I open it up I get the following error message: "iTunes cannot run because it has detected a problem with you audio configuration" My sound works with every application so I'm a bit confused as to why it won'

  • Table in ECC

    Hi Can somebody tell the System table which Stores all the Class data i.e Methods ,Interfaces etc . Regards

  • Custom JAAS Login Module

    I have a question about sample in "Developing security providers for weblogic server" of WebLogic 7.0 In 3-21 in the document, abort() method may be called n times after abort. Why is it possible that abort() method is called many times? Regards,

  • Where can I get IDES?

    We are just getting started in SAP and I heard that there is a system called IDES that has some fictional company data to develop and test against.  Does anybody know where I can get that system?

  • Manually adding an attachment to FND tables

    I know that there have been a few posts that outline how to handle adding an attachment to FND tables but I have an additional question. I have an trigger on each of the following four tables that captures all data when uploading an attachment when c