VS 2005 CR integrated report connection with more than one database

Hello,
I am using VS 2005 to make a reporting application. I am using the Crystal Reports Viewer and I need to know how to integrate the report login information for more than one database. Here is the VB code I have for one connection:
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Partial Class _Default
    Inherits System.Web.UI.Page
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
        ConfigureCrystalReports()
    End Sub
    Private Sub ConfigureCrystalReports()
        Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo()
        myConnectionInfo.DatabaseName = ""
        myConnectionInfo.UserID = ""
        myConnectionInfo.Password = ""
        myConnectionInfo.ServerName = ""
        Dim reportPath As String = Server.MapPath("CleaningReport.rpt")
        CrystalReportViewer1.ReportSource = reportPath
        SetDBLogonForReport(myConnectionInfo)
    End Sub
    Private Sub SetDBLogonForReport(ByVal myConnectionInfo As ConnectionInfo)
        Dim myTableLogOnInfos As TableLogOnInfos = CrystalReportViewer1.LogOnInfo
        For Each myTableLogOnInfo As TableLogOnInfo In myTableLogOnInfos
            myTableLogOnInfo.ConnectionInfo = myConnectionInfo
        Next
    End Sub
End Class
I am new to visual basic and really appreciate any help.
Thanks

Hi Steve,
Test by creating  one more function ConfigureCrystalReport1() and pass the details for database 2.
I am not sure there is any sample for this however you can have a look to samples [here|https://www.sdn.sap.com/irj/boc/samples]
Regards,
Shweta

Similar Messages

  • HT5622 Can Face Time be used to connect with more than one person at a time?

    Can I connect with more than one person at a time when using Face Time?

    You mean like a conference call?  No, unfortunately.

  • Can I connect with more than one iTunes acct

    Can I connect with more than one iTunes acct

    Laxman25 wrote:
    If its multiple apple id's on one computer you can't because you have to log out of one and login on another.
    I've only got one ID so I can't test but Winston says you can be signed into iTunes with multiple AppleIDs (i.e authorise iTunes for more than one ID content) at the same time, and that even different account content will stream so long as Home Sharing ID in iTunes matches AppleTV Home Sharing ID.
    AC

  • Connect to more than one database?

    Hi,
    Is there a way to connect to more than one database from Oracle form (one form)? If yes, what's the best practice to do it?
    Saad,

    hi
    u can modify Tnsnames.ora for that
    example:
    test1 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = IP Address)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = test1)
    test2=
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = IP Address)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = test2)
      )

  • While connecting to more than one database

    what shold i do while connecting to more than database...
    shold i implement it using serializable class
    or shold i pass the connection object a session variable
    give me some exaple for connecting to more than one database..
    sreekanth

    Sometimes you can use Connection.setCatalog(...) to switch.

  • Connect to more than one Database from portal

    I need to reach more than one database from my portal. How is this done?

    You have several options depending on what you want to do with the data.
    1) Omniportlet: you can specify on a per portlet instance basis to what DB you want to connect (JDBC).
    2) Programmatic Java portlet: you can create as many JDBC connections as you like.
    3) DB links: you can build data-driven portlets on database objects, accessed via DB links.
    4) Programmatic PL/SQL portlet: you can build programmatic PL/SQL portlets on database objects, accessed via DB links.
    Peter

  • X1 Carbon / ThinkPad USB 3.0 Dock: Issues with connecting with more than one Dock

    Hello fellow users / Lenovo,
    In our office we have several X1 Carbons and several ThinkPad USB 3.0 Docks (0A33970) located all over the office. We typically bring our X1 Carbons around and use each other's Dock during the course of work.
    However, we recently face a problem with the Ethernet interface not working with other Docks, other than the Dock that the driver was installed with.
    Using other Docks, the Ethernet interface comes up as a generic Ethernet device with a yellow warning triangle inside Control Panel.
    Using the Dock that the driver was installed with, the Ethernet device works as normal.
    It should be pretty easy to replicate this behaviour, just get an X1 Carbon (fresh, Windows 8.1) and connect a USB 3.0 Dock to it, and install appropriate drivers.Verify that the Ethernet port works correctly.
    Next, disconnect the Dock and connect another Dock to the X1 Carbon. Observe that the Ethernet interface does not work, and see the yellow warning triangle icon under Control Panel.
    Uninstalling and Reinstalling the drivers with the new Dock doesn't work either. Only the Dock that the driver was originally installed with will work.

    Would love an official response to this.

  • Sample code with more than one ResultSet in JSP

    Hi
    Can anyone give me sample JSP code using crystal reports JRC with more than one ResultSets which works, since mine always seem to be giving error .
    Thank you
    Selvi
    RCAgent5 detected an exception: Cannot modify a read-only collection.
         at com.crystaldecisions.reports.common.e.a.clear(Unknown Source)

    You can access the JRC samples from SDN in the Business Objects Portal.  The link to them can be found [here.|https://smpdl.sap-ag.de/~sapidp/012002523100006008982008E/crxi_r2_jrc_web_smpl.zip]  There is a sample called jrc_resultset_datasource that shows how to pass a result set to a report; you can use this and modify it to allow another result set to be passed in.
    As a note, if you are having issues and believe it is your code, start with the sample and take small steps when adding new functionality so that you can determine where things go wrong.

  • Reports 9i Graphs with more than one query..

    Hello,
    I am converting my 6i reports to 9i reports. On my graph reports with more than one query, when I invoke the graph wizard it changes the value of the src to the wrong query automatically. When I run my report, I am getting the error REP-0069 Internal Error rwlib-1: REP-6219 Column (Column Name) not in given cursor hierarchy. Although it's a pretty easy fix to go into the graph settings in the property palette and change it back, it is extremely frustrating. Has anyone else ran into this problem and did you find a permanent fix?
    Thanks,
    Laura

    Hi Laura
    One workround would be to create a new query in the Data Model that includes desired fields, and then source
    chart to the new group.
    FYi, bug2527100 was filed on this issue and is already fixed. The fix would be available in 9i Reports 9.0.2.2 patch. Reports 9.0.2.2 patch is scheduled to be released on Mar 05 2003 (tentative date).
    Thanks
    The Oracle Reports Team

  • Simultaneous connection of more than one unit of GPIB device

    Dear all out there,
    Would anyone has any idea/ solution in programming of ATE that makes Simultaneous connection of more than one unit?
    What's the better, if not the best, way of initialisation, acquisition and report generation for such system? without significant delay incurred.
    For instants,
    1. Initialise X number of, say, Agilent 34401A multimeter (GPIB)
    2. Acquiring of meter readings from each meter, limit check and write to respective report
    Any idea/ sample code/ solution is very much appreciated.
    Regards
    ian.f k
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com

    albert geven wrote in message news:<[email protected]>...
    > The connection of multiple multimeters to the gpib bus is normal, the
    > only thing you need to do is switch them each to a unique address on
    > this bus.
    > Your program can best initialise all multimeters once in the beginning
    > of your program and read out those meters when appropriate.
    With many instruments there are two types of "initialise."
    One type, which is a reset, choose range, etc., as you suggest can
    be done at the beginning of a program or section of a program.
    However, the other type of initialize is to sent the SCPI INIT command
    to the instrument. This command tells the instrument to take a measurement
    (or scan of measurements).
    When dealing with multiple multimeters, there are at least 2 ways of
    handling measurements. The slow way deals with one instrument at a
    time -- using the SCPI commands INIT, wait FETCH?, or perhaps just READ?
    sent to each instrument. It is slow because each instrument must wait
    for the previous instrument to finish before it can start.
    The better way is to set up each instrument for the desired measurement.
    If simultaneous triggering is needed, either use some type of external
    trigger or BUS trigger if the instrument can use it. After all instruments
    are set up, issue the INIT command to each instrument, then trigger.
    when all measurements are completed, use the FETC? command to get the
    results from each instrument. Note that there may be Plug&Play drivers
    to issue these commands for your instrument.
    [email protected]
    www.CompleteTest.com

  • Generating excel with more than one tab

    Hi,
    I would like to ask if anyone of you know how to generate excel file from Oracle Reports with more than one tab? Is it possible? If yes, can you provide me some references on how to do it. Thanks in advance.

    Hi,
    Do this:
    1. Create an Excel file, put some dummy data in 2 or more worksheets. Save as HTM. This will create one main HTM file, and some sub-files under a folder. One HTM sub-file will be created per worksheet. In addition, one XML sub-file (called filelist.xml) and some other sub-files will be created. (you have already done this)
    2. Open one of the HTM sub-files in reports builder, and follow the steps shown in the Excel Demo on OTN to insert data in this file at appropriate place, and save as JSP.
    http://otn.oracle.com/products/reports/htdocs/getstart/demonstrations/excel/index.html
    3. You can repeat this step for all worksheets. So finally you will get one JSP file per worksheet.
    5. Now open the main file in reports builder, and add the Excel contentType element at the top
         <%@ page contentType="application/vnd.ms-excel; charset=windows-1252" %>
    6. In this file, search for the following tag
         <x:WorksheetSource HRef="./filename_files/sheet001.htm"/>
    Note that instead of filename_files you will have your own file name
    Change this tag as following:
         <x:WorksheetSource HRef="./filename_files/sheet001.jsp?userid=scott/tiger@myDb"/>
    Note that in userid, you must provide your own DB connect string
    7. Additionally, change ALL references to sheet001.htm in this file to sheet001.jsp
    Do steps 6 and 7 for sheet002.htm, sheet003.htm, and so on (if needed).
    8. Open filelist.xml (you will find this file inside the folder that contains sub-files). Here, too, change all references to JSP instead of HTM
    9. Now place the main JSP file as well as the folder containing all sub-files inside your J2EE deployment folder. Run the main JSP file. This will run the associated JSP files (the worksheets).
    This will do the trick.
    If you are worried about placing the USERID information inside your JSP code, then you can use CGICMD.DAT file, and place the userid there.
    Navneet.

  • Can I use a magic trackpad with more than one Mac at a time?

    I am attempting to pair a MTP with a second MacBook Pro.  So far I can't get system preferences to find the MTP.
    I am wondering whether the MTP can be paired with only one Mac at a time, and that this is why my MBP won't find it.
    The reason I am thinking this is because the little booklet that comes with the MTP says 'after you pair your MTP with a Mac, you can pair it again with a different Mac.  To do this, you first remove the existing pairing and then pair the trackpad again'.
    Can anyone advise, please?
    If it can be paired with more than one MBP at a time, any suggestions why my system preferences search for the MTP is not producing any results?
    Thanks

    Yes, your keyboard, mouse or trackpad can be paired with multiple Macs.  You can even have multiple keyboards, mice or trackpads paired with one Mac.  The caveat is that the device can only be connected to one Mac at a time.  The device can't be paired or connected with a Mac while it's currently connected to another.
    Pairing a device with 2 Macs will be troublesome if the Macs are located within 33 ft of each other.  The device will connect with the first available paired Mac and then unavailable to the second.   If the Macs are located outside the 10meter range, it's quite easy to power off the keyboard (forcing a disconnect) then walking the keyboard to Mac 2 and powering the keyboard on.   I do this with a keyboard from my iMac to a Mac Mini in another room.
    Captfred

  • Tables with more than one cell with a high number of rowspan (ej. 619). This cell can not be print in a page and it must be cut. But I don't know how  indesign can do this action.

    Tables with more than one cell with a high number of rowspan (ej. 619). This cell can not be print in a page and it must be cut. But I don’t know how  indesign can do this action.

    set the wake-on lan on the main computer
    The laptop's too far away from the router to be connected by ethernet. It's all wifi.
    No separate server app on the laptop, it's all samba
    The files are on a windows laptop and a hard drive hooked up to the windows laptop. The windows share server is pants, so I'd need some sort of third party server running. Maybe you weren't suggesting to use Samba to connect to the windows share though?
    I'm glad that you've all understood my ramblings and taken and interest, thanks The way I see it, I can't be the only netbook user these days looking for this kind of convenience, and I certainly won't be once chrome and moblin hit the market.
    Last edited by saft (2010-03-18 20:38:08)

  • Can i use my ipod with more than one computer?

    i synched my ipod with one computer, hooked it up to another and it says i can't sync with more than one library? it says i have to restore it but i dont want to delete my music off of my ipod, i just want to add the music from this other library

    I have two different iPods and two computers. I regularly use either iPod on either computer.
    First set the preferences so itunes will not automatically sync when ipod is connected.
    Then connect the ipod and set itunes to manually manage music.
    Drag and drop whatever content you want to the device showing on the left.
    If this was the default setup, there wouldn't be all these posts about people losing all their music when they connect their ipod.

  • Can printer connect to more than one network?

    Hello.
    I just bought the wireless HP deskjet 3050 printer. I've connected it to the internet (network) and it's working perfectly. Is it possible to connect to more than one network? We have more than one internet line in the house so I was wondering if I can set it up for both lines. I understand that I can print with multiple computers on the same network (and I am able to do so), but how about on different networks?
    Thanks.

    No, it only has one network connection device so can only connect to one at time, sorry.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

Maybe you are looking for

  • Special chs in DSO expert routine

    Hello All, Data is being pulled from Transfer order DSO to GR DSO. The transformation uses a expert routine which pulls a field 'Requisitiner' from another DSO i.e. Purchase DSO. This expert routine brings invalid characters i.e. the field value whic

  • Repeated game crash; EXC_BAD_ACCESS

    After a few minutes of running, Team Fortress 2 (and this game only) will crash and close. I've read similar questions in other threads, but I lack the expertise to be able to parse my error report and find the problem. Can anyone help me zero in on

  • Why won't my Set Dynaminc Data Attributes timestamp my data

    Using LabView 2011. Built a program that uses a DAQ Assistant to read some sensors. Output is a Dynamic Data Array. Using the Write to Measurement File Express vi to log the data. Set the X Value (time) Columns to One Column only. Result: I get the d

  • Park post option required in FBS1

    Hi My client is using FBS1 for accrual & defferals. In FBS1, i want that entry should be entered & parked by one user and the same must be approved by his senior. After i entered all the details in both the line items, i went to document tab. There i

  • I'm getting this: Error: 4hdd/11/40000000 SATA (0,0)

    I ran the Apple Start Up "D" test and it said Alert! Then is: 4hdd/11/40000000 SATA (0,0). Is there sometinhg really wrong????