Why the Parameter Dialog not invoked with OpenReport RDC SDK?

Hai,
  I am working in Crystal Reports XI Release 2 with Visual studio .Net 2003 (VC++).I am using RDC SDK
OpenReport  function to create report.The report is generating without any fail.But the parameter dialog not invoked though the report is designed with parameter .
Here is the code snippet i used to generate
OnInitDialog()
    CoInitialize(NULL);
    IApplicationPtr  m_Application;
    IReportPtr   m_Report;
    HRESULT hr = m_Application.CreateInstance("CrystalRuntime.Application");
    m_Report = m_Application->OpenReport("Sample.rpt");
    m_Viewer.SetReportSource(m_Report);
    m_Viewer.ViewReport();
It creates report in ActiveX viewer but the parameter dialog not invoked before showing in viewer.
But in my another project i have used Crystal report 8 and CRPE32 dll(8 version) API PEStartPrintJob
It invokes parameter dialog automatically before showing report in Viewer.
Thankyou,
SatheeshKumar
Edited by: SatheeshDharmaraj on Mar 18, 2009 12:29 PM

Please note:
The RDC is specifically designed around the COM technologies and is intended for use Visual Basic 6 developers; therefore, it is not recommended, nor tested, for use in a .NET application. This limits the support offering for the RDC in a .NET application; however, because COM is a supported technology in .NET the RDC is known to function as expected in a .NET application.
To support any issue encountered with the RDC in a .NET application, these issues need to be reproducible in a supported COM-based development tool (such as VB6).
Also, the RDC is a retired technology, no longer shipping in the current version of CR - CR 12.x:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80bd35e5-c71d-2b10-4593-d09907d95289
this may have implications to your applications lifecycle as CR XI r2 will be out of support June 10 of this year. See the following for more details:
Business Objects Product Lifecycles [original link is broken]
I'd recommend you forget about RDC in .NET and use the CR Assemblies for .NET.
Nevertheless, if you absolutely must stay with the RDC in .NET, the error suggests that you are either not using any database logon code, or the code is incorrect. To connect the report to a database, you must use the connection properties bag. More information on the connection properties bag is [here|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00635998-751e-2b10-9cba-f50ee1e4ef81]
C++ code could look something like this:
bstrt bstrReportPath("C:
Documents and Settings
Mujeeb
Desktop
VC++
RDC_VCPP_CR10
Report1.rpt";);
m_Application.CreateInstance("CrystalRuntime.Application.10";);
m_Report = m_Application-->OpenReport(bstrReportPath, vtTempCopy);
m_Report-->DiscardSavedData();
m_Report>Database>Tables>GetItem(1)>ConnectionProperties-->DeleteAll();
m_Report>Database>Tables>GetItem(1)>ConnectionProperties-->Add("Provider","SQLOLEDB.1";);
m_Report>Database>Tables>GetItem(1)>ConnectionProperties-->Add("Data Source","10.10.17.30";);
m_Report>Database>Tables>GetItem(1)>ConnectionProperties-->Add("User ID","sa");
m_Report>Database>Tables>GetItem(1)>ConnectionProperties-->Add("Password","excellence");
m_Report>Database>Tables>GetItem(1)>ConnectionProperties-->Add("Database","Northwind");
m_Report>Database>Verify();
m_Viewer.SetReportSource(m_Report);
m_Viewer.ViewReport();
Now, you do not have to use the deleteAll property and simply log on to the database. Unfortunately only code I have handy for that is as described in the above doc. The code woudl be something like this in VB:
(ODBC)
report.database.tables(1).connectionProperties("DSN") = "the DSN"
report.database.tables(1).connectionProperties("user ID") = "the user ID"
report.database.tables(1).connectionProperties("database" = "the database name"
report.database.tables(1).connectionProperties("password") = "the password"
(if using OLE DB)
report.database.tables(1).connectionProperties("data source") = "the server name"
report.database.tables(1).connectionProperties("user ID") = "the user ID"
report.database.tables(1).connectionProperties("initial catalog") = "the database name"
report.database.tables(1).connectionProperties("password") = "the password"
(if using native connection)
report.database.tables(1).connectionProperties("server:) = "the server name"
report.database.tables(1).connectionProperties("user ID") = "the user ID"
report.database.tables(1).connectionProperties("password") = "the password"
I also recommend searching our notes database for more resources:
https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_ossnotes&query=&adv=true
The downloads section may also contain C++ sample code, but I am not sure if there will be anything that uses the connection properties bag. E.g.; do not use deprecated methods such as
.LogOnserver, .SetNthTableLogOnInfo, etc.
Ludek

Similar Messages

  • Why the call is not working with android?

    dear community,
    I have been trying to make a phone call with someone who lives overseas but it keep saying call faild ! and we even tried to send text it doesnt deliver it at all.
    but when i called my friend who is in same city it worked well
    so what is the problem?
    why its not working when we want to make a call with someone abroad?
    I need a solution as soon as possible please
    we both tried to update,delete, re-install the app its just never work T^T
    Solved!
    Go to Solution.

    When trying to call somebody abroad make sure you have chosen the correct country or reigien code upon opening the dial pad within skype we have the same phone's appart from mine is a s3 so this process will be exactly how I say as I was saying when. The skype dial pad is open just where the numbers display at the top of the screen right below you will see white writing chat the area code to the country you are trying to call.
    I hope this help any more problems or if this persists cone back and I'll see if I can help some more if not then perhaps try customer services on the live chat link via the website
    Adam.k

  • Why does Apogee Jam not work with the Ipod Touch 4G

    Hi,
    I have a Apogge Jam an it works fine with my Mac Book, but it does not seem to be compatible with my Ipod Touch 4g.
    Only the Gibbson L&M app recognize the Apogee Jam, but no other App (Ampkit, ....) :-((
    With the IPhone 4 it shall work, can tell me anybody why Apogee Jam is not compatible with the Ipod Touch 4g (
    although the Gibson-App works)?
    Is there perhaps still other Apps which work with the Ipod Touch and Apogge Jam?
    Thanks
    Michael

    I cannot answer the specifics, but I would guess it is a software issue because Griffin iTalk app will cooperate with the Apogee JAM on an iPod Touch 4g running iOS5.  If this app can do it, then one would presume the other apps could be updated to do it also.
    From last week up until yesterday, Apogee actually listed the 4G Touch as a compatible device with the JAM.
    Apparently there was some confusion about Garageband now supporting iPod Touch and its functionality with JAM.

  • Problem in SQL with CURSOR( ) ,Why the CURSOR did not work?

    hi All:
    I have a problem in SQL with CURSOR.
    The data is as the attachments.
    Here is the SQL statement as follow:
    SELECT A.WADCTO,A.WADOCO,B.IGCOST,CURSOR (SELECT X.IGLITM
    FROM F3102 X
    WHERE X.IGDOCO=A.WADOCO
    AND X.IGCOST IN ('B1','D1','C3')) AS DETAIL
    FROM F4801 A INNER JOIN F3102 B ON A.WADOCO=B.IGDOCO AND A.WADCTO=B.IGDCTO AND B.IGCOST>' '
    WHERE A.WADOCO='10004'
    The statement above returns records as follow:
    WADC WADOCO IGCOST DETAIL
    WO 10004 A1 CURSOR STATEMENT : 4
    CURSOR STATEMENT : 4
    IGLITM
    1KV90CPG2
    1KV90CPG2
    1KV90CPG2
    But, after I add one statement in the subquery, there is no record returned from CURSOR.
    Here is the SQL statement:
    SELECT A.WADCTO,A.WADOCO,B.IGCOST,CURSOR (SELECT X.IGLITM
    FROM F3102 X
    WHERE X.IGDOCO=A.WADOCO
    AND X.IGCOST=B.IGCOST
    AND X.IGCOST IN ('B1','D1','C3')) AS DETAIL
    FROM F4801 A INNER JOIN F3102 B ON A.WADOCO=B.IGDOCO AND A.WADCTO=B.IGDCTO AND B.IGCOST>' '
    WHERE A.WADOCO='10004'
    The statement above returns records as follow:
    WADC WADOCO IGCOST DETAIL
    WO 10004 A1 CURSOR STATEMENT : 4
    CURSOR STATEMENT : 4
    no rows selected
    Why the CURSOR did not work?
    The database version is Oracle Database 10g Release 10.2.0.4.0 - 64bit Production.
    F3102 DATA:
    IGDOCO     IGDCTO     IGLITM     IGCOST
    10004     WO     1KV90CPG2      A1
    10004     WO     1KV90CPG2      B1
    10004     WO     1KV90CPG2      C3
    10004     WO     1KV90CPG2      D1
    F4801 DATA:
    WADCTO     WADOCO
    WO     10004
    Edited by: user2319139 on 2010/3/2 上午 1:17
    Edited by: user2319139 on 2010/3/2 上午 1:20

    Why this structure and not a join?
    The cursor() function returns a cursor handle that needs to be processed - in other words, the client needs to fetch data from it. The Oracle® Database SQL Reference+ (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/expressions005.htm#i1035107) describes it as being equivalent to a ref cursor handle.
    Thus why are you creating ref cursor handles as a column in a SQL projection - where each row will have a "+nested+" ref cursor handle to process. What problem are you attempting to hack solve this way?

  • Why are my fields not moving with my Dynamic stamp ? Only the artwork appears

    Why are my fields not moving with my Dynamic stamp ? Only the artwork appears

    Sounds like you're a candidate for Lightroom...based on the time you don't
    want to spend in Photoshop.
    Photoshop install media is likely created in large batches, perhaps in a
    foreign country, so it's understandable that you get Photoshop 11.0.0 is on
    the media.
    I don't know as I would use ProPhotoRGB as my working space in Photoshop.  I
    was merely suggesting that you look at your color settings to make sure
    things were the same on both machines.
    How do you know your actions are the same?  Did you copy the action
    recording from one computer to the other, or did you merely record the same
    steps on each one?  Have you compared the details of each action step in the
    Actions Palette to make sure they are the same?  The symptoms still sound
    like something different than sRGB being the output color-space, or the fact
    it isn't embedded on one or the other of the computers.
    How are you viewing the JPG when it looks the same or different than the
    RAW?  Are you looking at the side-by-side in Photoshop, or side-by-side in
    Bridge, or are you using a mixture of viewers, one Adobe, and one not?  And
    are you using the Canon Codec on Vista or not?  The Canon Codec would be
    showing the camera-preview in the RAW not the RAW adjustments that Adobe has
    done.
    While the OS shouldn't be causing a difference in how the action is run, a
    difference between OSes may make a difference in the processing to show up.
    The camera profile associated with a RAW file is visible in the
    third-from-right tab in ACR over at the right.  The one with the little
    DSLR-camera icon on the tab.
    Can you attach the two JPGs on a reply, here, or if not, upload a ZIP of the
    two JPGs and the RAW to a file-sharing site like http://www.rapidshare.com/
    and post the download link(s)?

  • Why Toshiba notebooks are not delivered with the common Vista install CD

    Our household now has two x Toshiba laptops, both of which were supplied with MS Vista Home Premium pre-installed.
    The nature of the Recovery Media provided with these machines is such that (a) we do not have sufficient flexibility over volume/partition sizes, program locations etc., and, more specifically.
    It makes it necessary for the majority of the bundled software (Norton Security etc.,) to be installed by default in the event of a system failure. (And immediately uninstalled following recovery! An unnecessary waste of time.)
    Bearing in mind that a proportion of the price paid for each laptop must have included a cost for the Vista Operating System, does anyone know if it is possible to obtain a Master Recovery disk which ONLY consists of the operating system, and which allows us the flexibility of configuration which used to be available when the OS was purchased as a separate product.
    Additionally, please let me know if it is possible to purchase Toshiba laptops as a RAW machine, i.e no OS supplied, and I will then buy my own and cut out the rubbish which is supplied on the pre-installed media.

    >Why Toshiba notebooks are not delivered with the common Vista install CD?
    The answer is very simple: software is bundled to hardware and when you buy notebook you buy license for preinstalled Vista version and you can install recovery media so often you want and it belongs JUST to your notebook model. It cannot be used with other notebook or PCs.
    If you get usual Vista installations DVD it can be installed on each computer system. For such purposes you must buy Microsoft installations DVD.
    As you already wrote Toshiba recovery image contains much software that can be not useful for you. You can remove it from the system and nobody force you to use them. I do the same.
    After clean OS installation the first thing I do is to remove or software I don't need or I don't like.
    I optimise preinstalled OS on my own.

  • Why will my ipad not sync with the calendars on my computer, why will my ipad not sync with the calendars on my computer

    Why will my ipad not sync with calendars on my imac?

    I did find the info tab while trying to sync my calendars, but my iPhone5, iPhone 4S and iPad still won't sync to my MacBook Pro.
    Are you using Mac OS 10.9  Mavericks?
    There is no Info tab and you need to sync contacts & calendars via iCloud.

  • HT2204 Why is the app store not synced with icloud? Have so many logins and cannot login to one or the other sometimes. Wanted the latest updates to an app my friends already got and could not get the update all day long.

    Why is the app store not synced with icloud? Have so many logins and cannot login to one or the other sometimes. Wanted the latest updates to an app my friends already got and could not get the update all day long.

    In after 10 hours. Magic...

  • Why when I move a midi event in the piano roll the film does not move with this event?

    LOGIC X 10.0.3. Why when I move a midi event in the piano roll the film does not move with this event?

    Film? Have you dropped a movie file into your Logic project as well? You need to be a little clearer.

  • Why when I play a video on my HP G2-34OUs Notebook the sound does not go with the video?

    When I play a video from a CD, the sound does not go with the pictures/film.  Sometimes the video just stops and will not move forward.  This happens on a number of players that I have enstalled.

    Hi henryjd,
    Sorry to hear about the videos issues, I know that can be frustrating. I will be happy to help. It sounds like you are having an issue with either your video and/or audio drivers. What version of operating system are you running?
    http://windows.microsoft.com/en-CA/windows/which-operating-system
    Thank you,
    Please click “Accept as Solution ” if you feel my post solved your issue.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Thank you,
    BHK6
    I work on behalf of HP

  • Why Dynamic Parameter is not working, when i create report using stored procedure ?

    Post Author: Shashi Kant
    CA Forum: General
    Hi all
    Why Dynamic Parameter is not working, when i create report XI using stored procedure ?
    Only i shaw those parameters which i used in my stored procedure, the parameter which i create dynamic using stored procedure
    is not shown to me when i referesh the report for viewing the results.
    I have used the same procedure which i mention below but can not seen the last screen which is shown in this .
    ============================================================================================
    1. Select View > Field Explorer2. Right-click on Parameter Fields and select New from the right-click menu.3. Enter u201CCustomer Nameu201D as the name for your parameter4. Under u201CList of Valuesu201D select u201CDynamicu201D5. Under the Value column, click where is says u201Cclick here to add itemu201D and select Customer Name from the drop-down list. The dialog shown now look like the one shown below in Figure 1. Click OK to return to your report design.
    Dynamic Parameter Setup6. Next, select Report > Select Expert, select the Customer Name field and click OK.7. Using the drop-down list beside select u201CIs Equal Tou201D and using the drop-down list, select your parameter field (it should be the first field). 8. Click OK to return to your report design and see the parameter dialog.The parameter dialog will appear and show you a dynamic list of values that is updated each time your run your report. It couldnu2019t be easier! In our next tutorial, we will be looking at how to use this feature to create cascading parameter fields, where the values are filtered by the preceding selection.
    Dynamic Parameters in Action
    My question is that whether dynamic parameter is working with storedprocedure or not.
    When i added one table and try to fetch records using dyanmic prameters. after that i am not be able to find the dynamic parameter option when i referesh my report.
    One more thing when i try the static parameter for my report, the option i see when i referesh the screen.
    Please reply soon , it's urgent
    Regards
    shashi kant

    Hi Kishore,
    I have tested the issue step by step by following you description, while the first issue works well in my local environment. Based on my research, this can be caused by the lookup expression or it indeed return Male value based on the logic. If you use the
    expression below, it will indeed only return the Male record. So please try to double-check the record in the two datasets and the expression in your environment:
    =lookup(first(Fields!ProgramID.Value,"DataSet1"),Fields!ProgramID.Value,Fields!Gender.Value,"DataSet2")
    As to the second issue, please try to use the following expression:
    =Count(Lookup(fields!ProgramID.value,fields!ProgramID.value,fields!Gender.value,"DataSet2"))
    Besides, if this issue still exist, in order to trouble shoot this issue more efficiently, could you please post both the .rdl  file with all the size properties to us by the following E-mail address?  It is benefit for us to do further analysis.
    E-mail: [email protected]
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • I bought a new imac running Loin and Office 2011. The server we use to access emails runs exchange 2003 and my IT person says the imac is not compatible with the server. The server does not want to let me access using any email software.

    I bought a new imac running Loin with Office 2011. I am the only mac in the office and the Server we use to access emails runs exchange 2003 and my IT person says the imac is not compatible with the server. The server does not want to let me access using any email software other than webmail access through our website. It looks as though 2011 is not compatible with 2003 per some searches online, but what are some options I have to gain full access again? I purchased parallels in hopes that this my help and I am able to use remote desktop connection to log on to server but can not drag and drop files I need. There is a shared drive on that Server we all use to exchange files.
    The two main issues are gaining access to my email again and ability to drag and drop files from mac to pc. I hope this is enough info to get some solutions.
    PS - IT person says my iMac's IP is what his server does not understand so that is why I can not login.

    Office 2011 is not compatbile with Exchange 2003.
    I suggest you post further Office related questions on Microsoft's own forums for their Mac software:
    http://answers.microsoft.com/en-us/mac

  • 'The provider is not compatible with the version of Oracle client' exceptio

    Hi
    I installed ODAC-11.1.0.7.10 Beta on my development system and developed a .net application which uses Oracle.DataAccess.dll to connect to Oracle10g database.
    the application is working fine, means opening connection successfully when I run it from my development system. but the same application is throwing
    'The provider is not compatible with the version of Oracle client' exception when I run it on my 10g database server system.
    what I need to do to run the application successfully on the machine where 10g server exists?
    any help is appreciated.
    thanks,
    harry

    Hi Harry,
    I am not sure why you installed 11.1.0.7.10 Beta as 11.1.0.7.20 has been released and you should not be using the beta at this time. That error message is because the dependencies being loaded by the process are the wrong version. When you deploy an ODP .NET application using 11.1.7.x, you need to make sure you deploy it to a machine where the 11.1.0.7.x dependencies are installed. My guess is if I read your poat correctly is that Oracle.DataAccess.dll version 11.1 is loaded but its finding 10.2 dependencies on the target deployment box.
    HTH
    Jenny

  • Goodnight. as you know apple has evolved considerably until today but there are people who do not have ability to buy new products. in my case I would like to know why the apple do not let the iphone 3g update to iOS 4.3 as are several applications that c

    goodnight. as you know apple has evolved considerably until today but there are people who do not have ability to buy new products. in my case I would like to know why the apple do not let the iphone 3g update to iOS 4.3 as are several applications that can not put on my iphone 3g due to this reason. Why does not Apple make a repository with applications for ios 4.2.1? or else do not work in an update to ios 4.3 on iphone 3g?

    This has nothing to do with Apple, as Apple does not make the apps.
    This is the decision of the app maker.
    Contact those app makers and ask them why they do this.

  • How do I resolve: "Could not complete the Crop command because the file is not compatible with this version of Photoshop" error message?

    Photoshop document created in current version of PSCC2014, now will not crop, resize, etc without throwing compatibility error.
    "Could not complete the Crop command because the file is not compatible with this version of Photoshop."
    How do I resolve without recreating the file?

    Ooops.  Hit save reply prematurely. 
    You may be able to open the flattened composite or the embedded JPEG preview of your file in Adobe Illustrator, GraphicConverter (Mac only) or some such application, but your layers will be gone.
    The problem of working across a network is that it's not supported by Adobe:
    This is the boilerplate text often used in connection to saving to a network (please NOTE the part where it explains that normally, it does work, but that it is impossible to troubleshoot someone else's network remotely, and that's why it's not supported by Adobe):
    If you are opening files over a network or saving them to a network server, please cease and desist immediately in the event you are currently experiencing problems with one or more files. Working across a network is not supported.
    See: 
    http://kb2.adobe.com/cps/406/kb406793.html
      Copy the CLOSED file from your server to your local hard disk, work on it, save it again to your local hard disk, close it, and copy the closed file back to the server.
         Of course, the fact that Adobe does not support working across a network does not necessarily mean it won't work.   It should.
        Adobe's position is that there are too many variables in a network environment for them to guarantee that everything will work correctly in every network, especially given the fact that if something does not work properly, it's probably the network's fault, and Adobe has no way of troubleshooting your network.
      If you can't work locally, you are on your own, and if something happens, you're on your own. If you must work from a server, make sure your network administrator is a competent professional.
    When problems arise, a lot of valuable work can be lost.

Maybe you are looking for

  • How to invoke a webservice in the middle of a BPM process

    I use BPM studio to create processes. In the middle part of the BPM process, it need to invoke a web service (an ADF project deployed to weblogic as a web service). Then, it will wait. After the process is finished, it will invoke another web service

  • Console window is not showing

    Hi fellows, Today I found a problem with my built in console in Mac OS X Mavericks. The problem happens randomly. I'll explain it in steps. 1. Click on the console icon - the console opens. 2. From the menu - Console/Quit Console - the console closes

  • Disappointed with the server based backup ...

    I have had a palm pilot from the beginning (some time around 1995) and have been quite happy with the improvements over the years. I was very happy when sprint introduced the palm centrino, as I could now incorporate my palm data with my cell phone,

  • Zpca_c03, delta reset problem

    Hi All, I have a problem with the delta loads to ZPCA_C03. We have done full loads till March, monthly wise and set the delta init flag during a system down time. Again we happened to do December data re-load to the cube. As the cube is duplicated wi

  • Clearing the View Object row changes

    Hi I have a table ,when I click on the table row the popup editPage for that row will appear. I made some changes and closing the page with out actually saving the data to the database. When closed the popup and I click the row next time I am getting