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>

Similar Messages

  • 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>

  • Crystal 6.0 : How to hide the Page footer and Page Header of the Main Report on the Sub report.

    Post Author: pranay
    CA Forum: Crystal Reports
    Hi ,
    I have a Main report and a Sub report .  When a subreport spans across multiple pages , the page header and page footer of the main report gets displayed along with it . I want to hide the Page Footer and Page Header of the main report when a sub report is displayed . Is there any way it could be acheived in Crystal Report 6.0.

    I am assuming you are talking about the JSControl dropdown menu navigation. The easiest way to hide Community pages is to disable the Below Banner View for that navigation scheme, although it also disables the Subcommunties, Related Communities and Go up to Parent Community links. If you still want these in below the banner menu you could not display Community Pages in the "In this Community" tab and only leave the "Community Members and Knowledge Directly" link in there.
    You would think that it would be better to remove the "In this Community" tab althogether but it is tricky to remove it due to the fact that there needs to be a default horizontal menu displayed all the time. Not all Communities will have a Subcommunities or Related Communities tab so these communities would not display any below banner menus at all if there is no "In this Community" tab, which could be confusing.

  • 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 can i transfer a field value in the main report to its sub-report?

    <p><font face="Arial" size="2">How can i transfer a field value in the main report to its sub-report?</font></p><p><font face="Arial" size="2">Please eloberate with example if possible!</font></p><p><font face="Arial" size="2">Thanks...</font></p><p> </p>

    <p>You can do a couple of things - one would be to pass the information using the data linking expert.  Right click on the subreport, choose &#39;Change Subreport Links&#39; and select the field(s) you are wanting to pass to the subreport.  CRW will build parameters and a record selection formula for you in the subreport, and if that&#39;s what you want, then great.  But you can also remove the selection formula from the subreport and work with the parameter fields in the subreport however you would like.</p><p>Alternatively, you can look to passing Shared variables back and forth from the main and subreport.  this link talks about the method to do this: http://diamond.businessobjects.com/node/251</p><p> </p>

  • How can set a customized search results template and all users see it

    Hi all ,,,,
    I Added new costume template search result
    And when I added this template it’s added only for the user how created this template ,And I need all users see and use this template can anyone tell how I can add template for search result and all users see it or if I can do synchronies for this template.

    I wasn't able to understand what was meant by this post. Therefore, I modified the standard template HeadLine View.
    Columns for this template are defined in the include slim_search_result_table_header_setup (in std_page.htm).
    Here is the modification of the code:
    <$if customTemplateId and not (baseTemplateId like customTemplateId)$>
              <$columnsString = utGetValue("customlisttemplates/" & strLower(customTemplateId), "columns")$>          
              <!-- Modify START by Oracle-->
         <$else$>
    <!-- here add default fields -->
              <$columnsString="dDocName,dDocTitle,dInDate,dDocAuthor"$>
    <!-- here add your custom fields -->
              <$columnsString=columnsString&",xComment"$>
              <!-- Modify END by Oracle-->
         <$endif$>

  • How do I recover a deleted mail account and all associated contacts?

    How do I recover a deleted mail account and all associated contacts?

    Set it up again. If you didn't delete anything from the mail server, everything should sync right back up.

  • My Ipad 'Systems' shows my WiFi connection is working and all my Apps connect and interact ok but Safari says 'No Response from the Server' the same on my Mail. The WiFi works perfectly on everything else in the house. Any ideas ?

    My Ipad 'Systems' shows my WiFi connection is working and all my Apps connect and interact ok but Safari says 'No Response from the Server' the same on my Mail. The WiFi works perfectly on everything else in the house. Any ideas ?

    it was not just email it was all internet via safari but all apps including the bank account app. the laptop and pc access the same email servers which work perfectly so it is difficult to blame the servers.
    by the way it has now started to work properly at lasst after a whole day of trying to resolve this year.

  • Crystal Report Hyperlink to Sub-report or other report

    Hi,
    I would like to create a report on which the first part will show project summary page. The second part will have all project detail pages and third part with all project financial informations.
    The report should work in such a way whenever user clicks on any project at first summary page this has to jump to corresponding detail page of projects.
    I have the following question regarding design of this report.
    1. Do I need to create a saparate report as a sub report and then merge with main report in a footer section? Or is it ok to create sub-report within main report through sub-report wizard option?
    2. How can I establish hyperlink between the pages i.e. summary to detail pages?
    3. back hyperlink to first pages.
    I am expecting more information about hyperlink options within Crystal report.
    Thanks
    -Sunil Prasad

    Hi Sunil
    - For your first question: . Do I need to create a saparate report as a sub report and then merge with main report in a footer section? Or is it ok to create sub-report within main report through sub-report wizard option?
    You can create a separate report and then insert it as a subreport in the main report or create it with sub report wizard.
    Once you click on Insert -> Subreport, you can see there are two options, one is to point to an existing report and another is to create it through wizard.
    - 2. How can I establish hyperlink between the pages i.e. summary to detail pages?
    You can use the hyperlink between report objects.  Also you can apply a customized formula for this.
    Check the below SAP Notes:
    [1. 1207011 - How to create an OpenDocument link in Crystal Reports XI/XIR2 |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes]
    [2. 1212849 - How to pass a parameter value through a hyperlink from one report to another |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
    For detailed information on Hyperlink Click on Crystal Reports Help Help -> Search for the keyword Hyperlink.
    You can also refer to the Crystal Reports User guide for the respective version that you are using.
    Hope this helps!!
    Regards
    Sourashree

  • Report containing 15 sub reports crashing - Crystal Reports 2008

    I am using Crystal report 2008 with all latest service packs applied. I have more then 20 different reports wich work absolutely fine and never crash. One of my report contains 15 sub reports since its bringing data from 15 different queries. This consistently keeps crashing everytime I try to run it. Not sure what could be the root cause.
    We are using Postgres database and connected to it with  ODBC connection using Microsoft DSN.
    - All Subreport data is being displayed on Report Footer
    - All subreports are included in the Main report  page header section. (I have also tried doing it on report footer section but it still crashes)
    I have tried searching through the forum and did not find similar issue resolutions. Did someone face similar problems before?
    The crash message is:
    "crw32.exe has encountered a problem and needs to close. We are sorry of the inconvenience."
    Error report contains this data:
    AppName: crw32.exe      AppVer: 12.2.0.290      ModName: psqlodbc35w.dll
    ModVer: 9.0.2.0      Offset: 0004c538
    I am using Windows XP
    Crystal Report Version Details:
    CR Developer Version 12.2.0.290
    Product Type: Full
    Let me know how can I debug this issue? Any help is appreciated.

    @Don - We performed extensive testing for this crash issue and found that now this crash is not happening only in one scenario. So we have partially fixed this.
    Now the report crashes if I get disconnected from database and reconnect. This is what happens
    1. open the report in crystal report 2008
    2. try to run the report when db is connected- it works fine.
    3. Now disconnect the database (we are using ssh tunnel to connect to db so we just close the tunnel)
    4. now try to refresh the report - it fails to retrieve data.
    5. Now close the report without saving it.
    6. Now Close Crystal Report.
    7. Now Connect the DB using ssh tunnel so crystal report can connect.
    8. Now open Crystal Report
    9. Launch the target report.
    10 Preview the report - it works for first time.
    11. Now do a refresh keeping same parameters - Report crashes here.
    - I tried these steps with some of my other reports and they do not crash.
    - Now I have only one report which contains a Postgres Query with date range,order by and a union join.
    - No subreports now - I am trying to run this one subreport as a standalone report which I created from scratch(using blank report wizard) and just copied the query.
    Any more pointers would help.

  • Displaying report that contain sub report

    iam using main report that has sub report but when displaying the main report in crystal report viewer the section of the sub report is shiffted to the right.
    what can i do?
    Best Regards,
    Rabab

    David,
    The easiest way to do this would be to build a query in Access that provides this for you. You can do it easily using a two query approach.
    QueryNo1:
    SELECT
    TransactionTable.TransactionID
    FROM TransactionTable
    WHERE TransactionTable.Price < 0 OR TransactionTable.Quantity < 0
    QueryNo2:
    SELECT *
    FROM TransactionTable
    WHERE TransactionTable.TransactionID IN [QueryNo1.TransactionID]
    This will give you all of the TransactionID's that have a negative transaction associated with it.
    Once you have the query completed to your satisfaction and saved, you can use it as your data source in CR. CR will see it as a View. If you make it a parameter query, CR will see it as a Stored Procedure.
    Hope this helps,
    Jason

  • What i sthe diff b/w   Interactive Report  and ALV Interactive report

    Hi All,
    I want to know the basic diff b/w Interactive  report and ALV interactive report.
    Can any one tell me the exact diif.
    Thanks in Advance,
    Jd

    hi jagadish,
    both are used for same purpose
    interactive report means an output list which displays basic details & allows user to interact, so that a new list is populated based on user-selection. With interactive list, the user can actively control data retrieval and display during the session. a total no of 21 lists including main list are genearetd in interactive lists.
    I suggest to use ALV.by using ALV we can display in Grid as well as list format.
    Output format will be good . Sorting,Filtering facilities are provided by itself.We can have column headings also. using oops we can also do alv reporting.
    if helpful reward some points.
    with regards,
    suresh babu aluri.

  • Crystal Report and Dash Board Report templates

    Hi All,
    I was wondering can you help to find out few Crystal report and Dash Board report Templates for SAP Business One.
    This in order to give demo to customers.
    Link pointing to same is good enough. I have authorization to SAP portal and I have searched through it found only two template of Crystal report no Dash report templates.
    Regards,
    Aditya

    Hi Adit,
    For CR demo, you can use this youtube CR demo:
    http://www.youtube.com/watch?v=bKLtTDNpQMM
    For the CR sample templates donwload, you can check this link:
    http://scn.sap.com/thread/1239521
    If  you want to create the template by your self, you can check this link:
    http://scn.sap.com/thread/1627677
    For dashboard sample, you can download from this link:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/e0bd3605-e1ad-2d10-488d-f2e4fede1d46
    JimM

  • Trend Report and Consolidation Trend Report

    Hi HFR Gurus,
    I have a requirement to develop Trend Reports. Could you please explain about Trend Reports? How to Develop a Trend report and what are the requirements should meet? What are the columns and rows should consider to develop? What is difference between Trend Report and Consolidation Trend Report?
    Thanks
    Challenger

    This is a common discussin here. Have a read of this: Re: Very Urgent FR Report
    But also I would ask the business/client for a template. Each business could have a different understanding of a Trend Report. There are no set rules for having certain dimensions on rows/columns/pages.
    Cheers,
    Mehmet

  • Converting a Crystal Report with Many Sub-Reports into CF Report Builder

    I am trying to rewrite a Crystal Reports report which has 11
    subreports in CF Report Builder. In the CR report, each subreport
    has it's own report footer seciton. I have not been able to find
    anything in CF Report Builder that allows me to do the same. Is CF
    Report Builder capable of producing a report with multiple
    subreports?

    Having successfully created a report with 5 or 6 subreports
    (with each sub-report containing a multiple sub-sub reports) I can
    say with confidence, "Yes you can." However the real question you
    should ask is, "
    Should I create a report with multiple sub-reports in CF
    ReportBuilder?" And the answer to that is.... NO, WHAT ARE YOU
    CRAZY!
    If you have something that works in Crystal Reports I would
    suggest you stick with that. Otherwise you're setting yourself up
    for a lot of headaches. Now maybe it was because I started using
    the report builder that came with MX7, but it seems there are still
    quite of few bugs that will leave you shaking your fist at your
    computer. If however you do continue and do the CF Report Builder
    route, be prepared for your application to crash unexpectedly, and
    for many things to not work they way you expect them to. And if you
    ever need help good luck. Take the fact that you had difficulty
    finding good documentation as a sign of how little Adobe supports
    this product.
    CF Report Builder is fine for very simple reports, but don't
    get fancy with it, you'll only regret your decision in the
    end.

Maybe you are looking for