How to show view tab Main Report and all of Sub Report in one action through Visual FoxPro

How to show all view tab (Main Report and all of Sub Report) in one action.
I already know how to show Main Report with this code sample:
oRptRun=createobject("CrystalRuntime.Application")
oRptView=this.Parent.oleRptViewer
oRptOpen=oRptRun.OpenReport('MyReport.rpt')
oRptView.ReportSource=oRptOpen
oRptView.ViewReport
Inside the 'MyReport.rpt' it has 2 subreports:
1. MySubReport_1
2. MySubReport_2
I try to show MySubReport_1 and MySubReport_2 together with their own Main Report with this code sample:
oRptRun=createobject("CrystalRuntime.Application")
oRptView=this.Parent.oleRptViewer
oRptOpen=oRptRun.OpenReport('MyReport.rpt')
oRptSub1=oRptOpen.OpenSubreport('MySubReport_1')
oRptSub2=oRptOpen.OpenSubreport('MySubReport_2')
oRptView.ReportSource=oRptOpen
oRptView.ViewReport
Did I miss something because there was only view tab 'Preview' (Main Report) shown without view tab MySubReport_1 and MySubReport_2.
Thank you.

Your right, there is only one tab to view the report.
To open the subreports you will need to click on them in the main report. I don't know of a way to open them programmatically like you are doing here
http://diamond.businessobjects.com/robhorne</a>

Similar Messages

  • How to show Html5 created in eclipse and link to any cloud application like c4C through HCP

    Hi Experts,
    How to show Html5 created in eclipse and link to any cloud application like C4C through HCP 
    Regards,
    Vijay.

    Your question is very unclear, please elaborate what you are trying to achieve.
    Also, did you click on the Alert Moderator link? This is for reporting abusive content, spam, points cheating, etc. It should not be used w/o a reason (one of the above) as what it does is putting the content in the Moderators' queue and hiding it from public view.

  • How to show statistics of main item and related items with less filter?

    Hi experts,
    Have any of you come thro' similar requirements before?
    To show the statistics of a main item in different aspect in a document and show the comparison of this item in a particular aspect with other related items as inputted at prompt.
    You can image that, for the comparison, if I build another query for the related items, there will be duplicated dimensions, which we aim to avoid as duplicated dimension confuse end users.
    However, if i build the main items and related items in same query, for those reports of main item only, I need to add a report filter one by one!
    Any one of you have better idea?
    Thanks and Regards,
    Cherry

    You Should use Formatted Search in this case.
    You must create and associate a query for your field.
    click on the field you want items to be listed and press Shift + F2
    catch the keydown event of this field  and check pval.charpressed = 9 (tab key press)
    then execute
    SBO_Application.SendKeys("+")

  • How to show all view tab (Main Report and all Sub Report) in Visual FoxPro 9

    I use ActiveX from Crystal Report Developer XI for viewer in Visual FoxPro 9 and I already know how to show Main Report by using command:
    oRptRun=createobject("CrystalRuntime.Application")
    oRptView=thisform.oleRptViewer
    oRptOpen=oRptRun.OpenReport('MyReport.rpt')
    oRptView.ReportSource=oRptOpen
    oRptView.ViewReport
    Inside the MyReport.rpt there is two subreport name :
    1. MySubReport1
    2. MySubReport2
    My Question is :
    How to show all view tab (Main Report and all Sub Report) at the 1st time we call ViewReport?
    I try to using command :
    oRptRun=createobject("CrystalRuntime.Application")
    oRptView=thisform.oleRptViewer
    oRptOpen=oRptRun.OpenReport('MyReport.rpt')
    oRptSub=oRptOpen.OpenSubreport("MySubReport1")
    oRptSub=oRptOpen.OpenSubreport("MySubReport2")
    oRptView.ReportSource=oRptOpen
    oRptView.ViewReport
    but only show Main Report (view tab name : Preview)?
    Did I miss any command before I call oRptView.ViewReport?

    Your right, there is only one tab to view the report.
    To open the subreports you will need to click on them in the main report. I don't know of a way to open them programmatically like you are doing here
    http://diamond.businessobjects.com/robhorne</a>

  • How to hide/show main report footer for a sub report ?

    Need to hide main report footer for a sub report(having more than one page and need to hide footer for all those pages).And again make it visible for another sub report which also have more than one page (and do the same to all of its pages)
    I have tried with formula
    WhilePrintingRecords;
    Shared BooleanVar SuppressFooter := True;
    WhilePrintingRecords;
    Shared BooleanVar SuppressFooter := False;
    with this formula main report footer is shown only on last page of sub report where i need it in all pages.
    Any solution??

    Hi Jinu,
    1) Do some or all of those subreports span multiple pages?
    2) Do each of the Subreports start on a new page?
    If yes, for both, then here's what you need to do:
    1) Create a formula (@True) with this code:
    shared booleanvar SetStatus:= True
    2) Create another formula (@False) with this code:
    shared booleanvar SetStatus:= False
    Drag and drop the @True formula on the details sections for which you want the Page Footer to be suppressed.
    Similarly, drop the @False formula on the details sections for which you want the Page Footer to show up.
    Then, go to the Section Expert > Select Page Footer c > Click the formula button beside Suppress and use this code:
    shared booleanvar SetStatus;
    -Abhilash

  • How can I have Main report with a sub-report with in a sub-report??

    I have a main report that has about 5 subreports, almost like a dashboard.  I need to make one of those subreports contain another subreport.
    I don't have the option to add a sub-report with in my sub-report, so what I thought would work is remove my sub-report from my main report, then add my new sub-report, then add that report back to my main report.
    Everytime I add the sub-report that has a sub-report to my main report I lose the second sub.
    From what I've read on the internet is you can't have a sub-report contain another sub-report.  What some say is you can hyperlink that second sub report.
    When I setup my hyper link to open the second sub-report I'm prompted to re-enter my report parameters.
    Can some help me link a sub-report to a sub-report or show me how to pass a date range parameter in my hyper link so the reports just opens up?
    I'm using CR IX R2
    Thanks

    Nate,
    You are dealing with a product limitation.  Crystal cannot have nested subreports within a sub report. 
    You can generally use shared variables between sub reports to achieve your desired result

  • How to Create a Page LOV Template and a Region LOV Report Template in APEX

    Hi All,
    Thanks in advance ..
    I am new to APEX , Currently working in APEX 3.2
    Can any one please guide me How to Create a Page LOV Template and a Region LOV Report Template in APEX
    So that I can create dynamic Multi column LOV in APEX
    Cheers
    Sachin

    Sachin,
    I think you are en-quiring about 'Custom pop-up page'. See this link. You will get all required info there.
    Regards,
    Hari

  • TS4036 how can I view backed up files and delete things I don't need

    how do I view backed up files and delete thing I don't need

    You can't view individual files contained in the backup.  You can control which apps are backed up, and whether or not the camera roll is included in the backup, by going to Settings>iCloud>Storage & Backup>Manage Storage, tapping the name of your device under Backups, then looking under Backup Options.

  • There is a show on the US itunes and it isnt on the canadian one and i want it so how can i get it because i have canadian itunes

    There is a show on the US itunes and it isnt on the canadian one and i want it so how can i get it because i have canadian itunes?

    You cannot use other countries itunes stores.
    Sorry

  • I just downloaded iTunes on my new PC and all the music that I have purchased through ITunes that was backed up on the cloud won't play. It is telling I must authorize this computer before it play pre purchased music. how do I authorize my computer.

    I just downloaded iTunes on my new PC and all the music that I have purchased through ITunes that was backed up on the cloud won't play. It is telling me I must authorize this computer before it can play pre purchased music. how do I authorize my computer to play this music?
    Thank you for any assistance.

    Tigon's already got you covered here. But I'll chime in with some English localisation advice.
    There's a couple of ways to get through to the authorisation controls in the 11.0.x versions.
    The control is still in the Store menu, but first (if you're using iTunes versions 11.0.x) you might need to bring up the menu bar to see the Store menu.
    If you're using 11.0.x, click on the wee boxy icon up in the top-left corner of your iTunes to see the "Show Menu Bar" control, as per the following screenshot:
    Then you'll find the control in the Store menu:
    Alternatively, if you don't want to bring up the menu bar, it's still possible to get into the authorise controls via nested menus accessible from the wee boxy icon. Here's a screenshot of where to find them:

  • GL trial balance and All inventory value reports

    Hi,
    in oracle applications 11i the inventory super user claims that the results of the following two reports:
    GL trial balance
    and
    All inventory value report
    for the period MAY-09 DO NOT match.
    How can i investigate this issue?

    I haven't worked on PPAC but I assume its only a cost method to build the cost. Once costs are build GL entry happens in the same way.
    You said that you first freeze the cost and then run subledger update report.
    Once you freeze the cost, what cost do you see for product x?
    Once you produce 20 TONS output; subledger update should generate entry as follows:
    Cr WIP: cost*20
    Dr INV: cost*20
    Now you mentioned about title ALC (GL Allocation). I haven't seen that title.
    Also at the period end we need to run revaluation of inventory for STND method, I am not sure if the same is required for PPAC. Try performing that in test instance to see accounting entries generated.
    I am sorry if I confused you or didn't understand your question. I have used mostly worked with STND method and just trying to extend my experience with PPAC.

  • I have changed my Apple ID from an old email to a new one.  But It keeps coming up with my old email and asking for my old password. How do i stop this from happening and get it onto my new one?

    I have changed my Apple ID from an old email to a new one.  But It keeps coming up with my old email and asking for my old password. How do i stop this from happening and get it onto my new one?  Its on my Ipad and iphone 5, please help as its doing my head it

    How do you update it? Basically what has happened my password was disabled for "security reasons" on sunday (21/10/12), so i tried to reset it, but for some reason i couldnt get into my old email (probably because i havent used it for 2 years), so i read on here i could swap it to a new email that i currently use (which is what i have done) ive swapped everythin over to it (facetime, iCloud etc) but keeps coming up with old email and asking for password

  • How can I view the complete score with all tracks? I seem to only be able to view one track at a time. Thanks

    How can I view the complete score with all tracks? I seem to only be able to view one track at a time. Thanks

    JoBrooke wrote:
    I seem to only be able to view one track at a time.
    unfortunately, that is how GB works, it only offers a score for a single track at a time

  • RE: COPA report and customer line item report not matching

    Hi All,
    COPA report and customer line item reports (fd10n) are not matching please let me know the reason.

    ok

  • TS2972 Bug:How can Home sharing be turned off and all items in my library cleared without my intervention? This is the SECOND time this happens since end of March 2013. A permanent solution will be appreciated

    Bug:How can Home sharing be turned off and all items in my library cleared without my intervention? This is the SECOND time this happens since end of March 2013. A permanent solution will be appreciated

    See this post.
    Assuming AVG is involved there is a new patch which may resolve the issue. Update AVg before attempting to recover the library.
    tt2

Maybe you are looking for

  • Small office mono laser budget printer suggestion

    For entry level lasers I've pretty much standardized on the Brother.  I just installed an HL5470DW and it works like a charm.

  • Animating a photographic 'object' in a clip

    Here's the scene: a simple shot of a starfish on a beach shot from above. Question: is it possible, using Motion 4, to animate the starfish so that it uses it's legs to walk?, say make an exit stage left? I have a shot of the starfish on the beach, a

  • Can I plug a mini displayport cable into thunderbolt port?

    I have new iMac with thunderbolt.  I have a MDP to HDMI cable, can I use it?  Or must i purchase a new "thunderbolt to HDMI" cable?

  • Sort speed up in CPU intensive simulation

    I am running a simulation in which I do sorts embedded in sorts in each trial. This simulation runs 5 times faster in FORTRAN on an Ultra 5 than in Java (I use Sun's FORTRAN compiler with the -fast compiler option and I use whatever SDK is distribute

  • Profit Center Error at the time of BOE - F-36

    Hi I am posting F-36 for bills of exchange. My invoices are getting cleared and bills of exchange (customer) is getting debited. Entry is: Customer (Bills of Exchange - Spl GL W)    To Customer A/c (Invoice is getting cleared). When there are multipl