Reply to RBFINK about Selecting a Report at Runtime in VB6

Post Author: David B
CA Forum: General
I got the following private message, and the reply link refuses to lead back to a valid post:You have received a new Private Message from RBFINKSubject: ActiveX Control PostWas wondering if you ever found a solution for creating a crystal report object from a file path in VB 6. I am having the exact same problem as what you have posted and have not found a solution, yet.  Thanks.Click on the link below to reply to the private message.http://technicalsupport.businessobjects.com/cs/forums/thread/1546.aspx---I have your answer, but just as of today, so your timing is great.  The following code does what both of us want to have happen.  You'll need the following 4 references set for your version of CR (xx.x = 9, 10, 11, 11.5)Crystal ActiveX Report Viewer Library xx.xCrystal Reports ActiveX Designer Design and RunTime Library xx.xCrystal Reports ActiveX Designer Run Time Library xx.xCrystal ActiveX Report Viewer Library xx.x ---Also you'll need your ReportViewer component set so that you can place the viewer control onto the form.When you have all that, then the following lines of VB6 code will do what you want:    Dim crApplication As New CRAXDRT.Application    Dim crReport As CRAXDRT.Report    Set crReport = crApplication.OpenReport("report file path")    With crvReport        .ReportSource = crReport        .ViewReport    End With

Post Author: RBFINK
CA Forum: General
  Dim MyCrystal As CRAXDRT.Application  Dim MyReport As CRAXDRT.report  Set MyCrystal = New CRAXDRT.Application  Set MyReport = MyCrystal.OpenReport(strMyReportPath)
  Dim crxTable As CRAXDRT.DatabaseTable  For Each crxTable In MyReport.Database.Tables    With crxTable.ConnectionProperties 'OLEDB Connection info...      .Item("user ID") = strMyUserName      .Item("Password") = strMyPassword      .Item("Data Source") = strMyServer      .Item("Initial Catalog") = strMyDatabase    End With  Next crxTable      With MyCrystalViewer    .ReportSource = MyReport    .ViewReport  End With

Similar Messages

  • Want to complete information about Generic WHT report-S_P00_07000134

    Hi Experts,
    I want to know complete information about Generic WHT report-S_P00_07000134
    My following questions
    1) Once executed report,why it is asking addition selection like address and more informaiton and where it will help.
    2)Why is asking for variant,if click on yes,what will happen
    3) Selected "always allow in the context"option and seen the file in c:\drive.Butnot able to understand the format.What is this and for change allow option in future,what can i do?
    Please help.
    Regards,
    Kishore.J

    Hi,
    Check whether you have maintained Tax ID in T.Code J1ID Vendor Excise details.
    Regards,

  • Question about Missing Timecard Report

    Hi,
    I have a question about Missing Timecard Report. As I aware when we run it it will only pull employee who has Timecard required = 'Yes' in the GRE of assignment.
    I just run it and it pull all employee regardless they have Timecard required = 'Yes' set or not.

    Rao , Thanks for your reply.
    After I Changed locale to chinese in Linux, I can not seen chinese in Oracle Enterprise manager. So, I think my lunux box can not support Chinese .
    When I run my report on windows2000 (Chinese version) application server, I can not see chinese character. But after I edit the uifont.ali and copy ARIALUNI.TTF to $reports_path, I can see chinese character.
    Do you get my means?
    Any question, Contact me.
    Thank you very much !

  • Relative Selections in reports

    Hi everybody,
    we want to use relative selections in reports e.g. to select the current quarter and the next three.
    The standard relative selection doesn't contain this option, but it is possible to define own relative selections. But these are only "quite relative", that means there is no logic to calculate the current quarter and the following from today's date. I can only enter fixed values e.g. Q3/2014 for the current quarter and have to change it when the next quarter starts. This is also described in the documentation. That's not really what we are looking for.
    Is there any PDI-way to create own relative selections with really calculations? I didn't find anything.
    kind regards,
    Frank

    Frank,
    I don't believe so as of 1405 - I've asked support about this and they recommend that i post an idea to the ideas forum.
    We'll have to see what the 1408 SDK information contains, but from what i see, there's nothing in the 1408 ByDesign "What's New" documentation related to this.

  • Automated Reply and Delete of Selected Messages in Mail

    First the situation, I do support work and have been receiving direct e-mails for support requests for the last 14 years. With additional people in the group, I want to force people to send e-mail to our helpdesk e-mail address to get support so other group members can provide assistance. Of course, these are old habits to break. I've been sending a canned message stored in Stickies saying something like "Your e-mail has been deleted, go to the helpdesk for support", but would like to automate that process.
    I found that in Entourage, you can create a rule, not have it active, and then manually run that rule by selecting "Message -> Apply Rule -> <Rule-Name>". Unfortunately, I don't normally have Entourage open.
    How would one use Rules in Mail.app, Automator, and/or AppleScript to accomplish this? I looked around at the default actions in Automator for Mail, but didn't really find what I thought would work. I also searched around for new actions to Mail, but still didn't find a way to reply-to and delete selected messages.
    Any suggestions or pointers on where to look?
    Steve

    When I try to reply in Mail, I hear the sound of a new window opening
    What do you mean? There is no such sound in Mail...
    Verify/repair the startup disk (not just permissions), as described here:
    The Repair functions of Disk Utility: what's it all about?
    The problem you have in Mail is usually caused by some Launch Services cache or preferences corruption. The following article describes how to manually reset Launch Services -- the notes at the bottom of the article also provide information about the side effects of deleting each of the files involved:
    Resetting Launch Services
    If you prefer using a cache cleaning utility instead of following the manual procedure described in the previous article, this other article provides links to some utilities that can be used for troubleshooting and cache cleaning:
    Resolving Disk, Permission, and Cache Corruption
    It seems that the most appropriate utility for solving this particular problem is Tiger Cache Cleaner, but you may also want to consider other utilities, such as OnyX, or Cache Out X, which are free. Whatever utility you choose, be sure to read this first:
    Side effects of System cache cleaning
    As an example, this is how you should proceed with OnyX:
    1. Quit all applications.
    2. Launch OnyX and enter your administrator password.
    3. Click Maintenance. In the Reset section, check LaunchServices database.
    4. You may uncheck any other pre-checked options if you wish.
    5. Click the Execute button.
    6. Restart the computer.

  • SSRS 2012 (SP Integrated) report on SP 2013 PerformancePoint Dashboard: when too many filter items selected together report does not update anymore!

    I am having a situation with SSRS 2012 (SP-integrated) report rendered on SP 2013 PerformancePoint Dashboard using linked PerformancePoint (PP) filters.
    The report works fine as long as too many PP filter items are not selected at the same time. When gradually selecting more items from the filter, the report updates itself until more than a sepecific numer of filter items are selected - the report simply
    does not update itself anymore. This "specific number of filter items", when hit, generates the following error in ULS:
    An exception  occurred while rendering a Web control. The following diagnostic information might help to determine the cause of this problem:  System.UriFormatException: Invalid URI: The hostname could not be parsed.    
     at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)    
     at System.UriBuilder..ctor(String uri)    
     at Microsoft.PerformancePoint.Scorecards.ServerRendering.ReportViewControl.ReportUrl(SqlReportViewData sqlReportViewData)    
     at Microsoft.PerformancePoint.Scorecards.ServerRendering.ReportViewControl.RenderSqlReport(TextWriter writer, ReportView sqlReportView)    
     at Microsoft.PerformancePoint.Scorecards.ServerRendering.ReportViewControl.RenderReportViewControl(HtmlTextWriter writer, ReportView rv)  PerformancePoint Services error code 20700.
    I already know that the cause of the issue is in the length of the query (perhapse RDL or MDX) that the browser is supposed to pass on to the instance of SSAS.
    Some people had suggested a workaround that was suitable for older versions or non-integrated SSRS (see here: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/cb6ede72-6ed1-4379-9d3c-847c11b75b32/report-manager-operation-cannot-run-due-to-current-state-of-the-object).
    Knowing this, have already done the changes suggested (adding the lines suggested to SP's web.config for Reporting and the web.config of the site on which report is rendred) at no avail, just to make sure.
    I have rednered the same report on the same dashboard using SSRS filters and there is no problem; it just works fine. This has to be a bug in PP that is causing this.
    Has anyone had the same problem with SSRS 2012 (SP-integrated) report rendered on SP 2013 PP dashboard using PP filter? Any fixes or workarounds?
    thnx!

    Hello everybody.
    I confirm the issue in Service Pack 1 Release 2.
    Poor workaround is to remove the repeated infromation from the member keys (in SSAS they can be really long).
    The issue seems to be specific to SSRS: Excel Services works well with the same filter.
    Sergey Vdovin

  • BDC on Selection Screen report

    Hi Experts,
    Is there any norm of NOT using BDC for selection screen reports? Please share your experience if someone had used it and faced issues later.
    Thanks,
    Chirantan

    Hi Chirantan ,
    I would advice you to use submit report option instead of BDC.
    First capture your selection screen parameters into a selection_table and fill it with suitable data .
    Use submit report and there you go......... report is executed.
    ALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
                EXPORTING
                  CURR_REPORT               = 'ZREPORT'
    *         IMPORTING
    *           SP                        =
                TABLES
                  SELECTION_TABLE           = LT_SELSCREEN
    *           SELECTION_TABLE_255       =
    *         EXCEPTIONS
    *           NOT_FOUND                 = 1
    *           NO_REPORT                 = 2
    *           OTHERS                    = 3
              IF SY-SUBRC <> 0.
    * Implement suitable error handling here
              ENDIF.
    * Fill LT_SELSCREEN
              LOOP AT LT_SELSCREEN INTO LW_SELSCREEN.
                CASE LW_SELSCREEN-SELNAME.
    *           WHEN OTHERS.
                ENDCASE.
              ENDLOOP.
                SUBMIT ZREPORT
                      USING SELECTION-SCREEN 1000
                WITH SELECTION-TABLE LT_SELSCREEN
                AND RETURN .
    Regards ,
    Yogendra Bhaskar

  • Selecting Customer Report

    Hi,
    We are using customized customer transaction report developed in ABAP. When preview, the selected customeru2019s transaction report list comes out in one page, scroll down to see the next customer. On the list of customers the user wants to further filter by select only few customers and the selected customeru2019s report attach in PDF and sent to customer through email.
    My question is what are the options include to select few customers when it was in preview mode?
    Please suggest.

    For example in the initial screen we need to give customer range let say 1 to 20, then execute the range 1 to 20 customers transaction report list was previewed, scroll down to see the next customer. In this stage i.e. preview stage the user wants to select only few customers let say 5, 7, 11, 16 and 19. Then only these selected customer report attach in PDF and send to customer through email.
    How they can select when preview mode? And what are the options to select few customers?

  • About planner profile report

    hi all
    do any one about (planner profile report) and  (price activity variance report) 
    can any one explain me about these two reports.
    Thanks and regards,
    kiran.

    Hi Venkat,
    Check this Thread
    Re: Creating Aging Report and Counting report
    Please search the Forum, you will get lot of more information.
    Thanks
    CK

  • RESCIS - Unable to select custom report from Selection Screen

    Hi all,
    we have developed a custom report for transaction "RESCIS-Evaluation of service charge settlement" but we have found that althought the report appears in selection screen field called "REPORT" it throws message RESCIS003 but the report is not shown.
    If we doesn't fulfill report field in selection screen, the program shows a second screen where a couple of ALVGrids are shown allowing the user to select the report that will be displayed. Here we are able to select our custom report and the data in it is displayed.
    We have analyzed the standard program that is executed via transaction RESCIS and we've found that the selection screen executes standard function RESC_GUI_ANYREPORTS_APPL that doesn't executes reports dinamically but statically. That means that SAP doesn't allows to execute custom reports directly from selection screen.
    I think this is a SAP error but afert opening an OSS message SAP sais that is not an error but a bad configuration or lack of knowledge for customizing it.
    Has anyone developed a custom report for RESCIS transaction?

    Hm what exactly did you want to change? Normally it is in REFX cases you should not copy standard REPORTS. In your case with transaction RESCIS, I myself do not see any need to add any functionality in this report because it is only a sum of all lists from your service charge settlement. What else do you want to see there?
    For displaying new fields in the separate lists maybe there is some BADI for it.
    Regards
    Michael

  • ABAP Code for Key Figure selection in Report

    Hello Experts,
    I am working on one of the development request that requires following logic to be implemented at query execution. There will one KF column and based on valid combination of characteristics value from the cube, Key Figure value from the same cube will be selected and reported.
    If ((Plant = A1) and (Division = B1))
      OR ((Plant =A2 ) and (Division = B1))
      OR ((Plant = A3) and (Division = B2))
      OR ((Plant = A6) and (Division = B2)).
      Price = Moving Avg.
    Else
      Price = Standard.
    Can somebody please suggest, how to do this? Thanks in advance.
    Regards,
    Nimesh

    Nimesh,
    Step 1.Create a formula (say F1)variable with customer exit. In the customer exit code read the values of Plant and Division. If the Plant and Division combination is the one that you specified below return a 1 (for Moving Avg.) or return a 0 (for Standard).
    Step 2. Create a column with a formula having the following definition
             (F1=1)'Moving Avg.' + (F1=0)'Standard'
    So, if the combination satisfies Moving Avg will be shown else Standard will be shown.
    You can avoid customer exit coding by using  replacement variables and using them in a formula, this would make your calculation clumsy and confusing. Let me know if you cannot get the customer exit solution work.
    Hope it helps...

  • 'Plant Location' field in dynamic selection of report

    Hi Experts,
    I have entered some value in plant location in WBS org. data tab and want to filter the report by giving this field in dynamic selection of reports. But this field is not availble in dynamic selection. how we can add the same, even this is standard field in PRPS table (PRPS-STORT). Pls help.
    Regards
    Dinesh Chauhan

    In standard SAP this field is not set for dynamic selection
    you can create your customer view with STORT activated or you can change the STD view
    SE36
    enter PSJ as logical database
    go to menu path (in that same screen)
    Extras -> selection views
    this will default to CUS (short for CUS view)
    change this to SAP and change button
    In the table node section scroll down till you come to table PRPS_R then double click on that
    in the table field section below enter B2 next to the stort field (you may to scroll) - this means that this will now be visible in the org unit section for WBS in dyn selection
    save etc and then re try

  • Call a Screen from A selection screen report

    Hi Friends,
       I developed a report (1. Excecutable) and i am calling a screen say 9000 which is having several subscreens. While i am clicking the BACK button it should come to the same selection screen report. How to do this? We can't use LEAVE SCREEN or LEAVE TO SCREEN 0. Because 9000 screen having the subscreen. If i use LEAVE PROGRAM it won't come to selection screen. Instead it will come out of program.
    Please help me.
    Thanks and regards
    Srikanth. S

    hi srikanth,
                    We can come from screen to selection screen of the report by using -- "LEAVE TO LIST PROCESSING".
    If u need some more info plz check below.
    https://www.sdn.sap.com/irj/sdn/forums
    https://www.sdn.sap.com/irj/sdn/forums
    https://www.sdn.sap.com/irj/sdn/forums
    Reward if it is usful,
    Thanks,
    Srikanth.A

  • Error when selecting the Report Center tab of the Issues web DB

    I started a DB from the Issues web DB template. Everything worked fine when I shutdown last night, but this morning I started receiving the following error when selecting the Report Center tab.
    You must specify an object for the BrowseTo to open. I have noticed that the ReportCenterDefault form no longer displays. How do I correct this?

    Hi Ben
    Wyer,
    Have you resolved
    your problem yet, and does the suggestion help you? If you still have any concern on the thread, feel free to follow up.
    Best Regards,
    Bruce Song [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Problem about selecting waveform in waveform graph

    Hi all:
    I am developing a project by Labview. Now I meet a problem about selecting the waveform in the waveform graph.
    I am not sure whether it is possible about my idea.
    for example:
    In the waveform graph,  the different waveforms from a couple of channels are displayed. and then I want to select one waveform of them, and corresponding data about this waveform are shown. 
    Thanks so lot
    regards

    hanwei wrote:
    1.  can I zoom in and out in that "waveform graph"??
    You can do this using the graph palette. Just make it visible. The middle control allows you to zoom.
    2.  can I display the plot array or plot index that I select in the waveform graph?
    You can connect the same wire that goes to the ActivePlot property node to an indicator.
    3.  I build a sample codes for my project, in which , I used a random number generater to simulate a DAQmx data collection, and generate a overlapping waveform in the waveform graph.
         but it seems the program is not stable, when i first run the codes, it is ok, and I can select the plot what I want. but after I stop and restart the program, there is error message about "Property Node".
         it seems something wrong about the "waveform graph properties"
    I attached my codes here, anybody know what wrong about it?
    For some strange reason the property node is "messed up". I've seen this happen sometimes with graphs. I don't know what causes it, and the only way I've found to fix the problem is to delete the graph, put a new one on the front panel, and recreate the property nodes. I've typically seen this happen when copying code from another VI that has a graph with property nodes, as I suspect you did. If you delete the graph, put a new one on there, and recreate the property node you should be OK.
    That said, a few comments regarding the code:
    The architecture seems to be a mish-mash of operations, and I'm thinking that you probably want to look at using a producer-consumer architecture. Your producer loop responds to events, and the consumer loop does your DAQ collection.
    You have a race condition with your use of the "size(s) 2" local variable.
    Avoid right-to-left wires.
    The method of creating your arrays seems convoluted. However, since you said you will actually be getting the data from a DAQ system, the actual project code will likely be considerably different.

Maybe you are looking for

  • I can't find the plist for my Dashboard stickies in the normal place - is there anywhere else they might be?

    I go to Mackintosh HD/Users but then can't find any folder that contains the widget-com.apple.widget.stickies.plist - my username doesn't seem to have a folder associated with it. I go to t slats (my home folder) and there's no Library in there. I go

  • How to automate the updating of a dimension - both members and properties

    I need to automate the updqating of one of my dimensions in BPC 5.1 using SSIS.  I've tried the "Admin_Makedim.dtsx" that comes with the system.  It completes succesfully, but nothing is actually changed or updated in the dimension.  Has anyone suces

  • New to imac's... ichat wont open..

    hey... im having a problem with ichat. when i click on the ichat icon from my dashboard it bounces but doesnt open. what seems to be the problem? is it actually running somewhere and i cant find it? it has the black up arrow underneath the icon.

  • Locking files

    i have a few word documents on my computer that i don't need seen by friends and family that occasionally use it. is there a way i can lock the files, so that a password is required to open any of them? thanks.

  • Http request for php page

    I have this code to call a php page from Indesign: reply = ""; conn = new Socket; if (conn.open ("www.terazo.be:80")) {      conn.write ("GET /ipadres.php HTTP/1.0\n\n");      // and read the server's reply      reply = conn.read(999999);      conn.c