Crystal report prompting for login to Dataset [Problem]

Hello,
I'm developing a C# windows application with an Access db
I'm getting the data from the database and load it to a dataset then pass the dataset to the report
every thing is working fine on my local machine but..
When I run it on any other machine it prompts me to enter the login information while there are no login informations to enter because I'm connecting to a data set
here is my simple code to load the report
VisitReasibReoirt VisitReasonRPT = new VisitReasibReoirt();
                        VisitReasonRPT.DataSourceConnections[0].IntegratedSecurity = true;
                        VisitReasonRPT.SetDataSource(ds);
                        crystalReportViewer1.ReportSource = VisitReasonRPT;
                        crystalReportViewer1.RefreshReport();
Also there is an other problem in the design
I cannot change the language of the datetime fields like what I did with text fields.. How can I solve this ?
please tell me what to do...this is very important I searched a lot but I found nothing usefull
Edited by: Mando! on Aug 26, 2010 2:04 AM

Hello,
Information needed..
Version of Crystal Reports?
Version of Visual Studio?
Type of data connectivity used? (i.e. OLEDB, ODBC)
Did you diploy the application? How? (MSM's or MSI's)
If the new machine is also a developement environment, does the report work from designer?
Version of windows on prev and new machine?
Make sure that..
If the application is deployed, the proper runtimes are installed.
The database provider is installed.
The target database is located where it should be.
The target database is unchanged.
One question per thread please.
see [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/Rules%20of%20Engagement].
Thanks,
Bhushan.

Similar Messages

  • Crystal Reports, version for Visual Studio 2010 Problem

    Dear all,
    I encounter a problem after installed the crystal report version for Visual Studio 2010. Once I call                              
                           ReportDocument.PrintToPrinter(1,False, 0, 0)
    The error message prompt:
    Report is unavailable(Index was out of range. Must be non-negative and less than the size of the collection. Parameter name:index)
    If I try
                             ReportDocument.PrintToPrinter(1,False, 1, 1)
    It can print the 1st page of the report.
    I also try to create a simple report. It works.
    After installed this version, my reports also encounter the same problem in Visual Studio 2008.
    My report has sub-reports. My PC is Windows XP.
    Anybody has idea on this issue!?

    Now you can set the various printer options using the PrintOutputController. I'm using a UI box to select the printer but your developer should be able to figure this out. If not you can include him in the e-mail, it would be fine to go direct. Of course you will stay in the thread:
         private void btnSetPrinter_Click(object sender, System.EventArgs e)
              System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument();
                CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions rasPROpts = new CrystalDecisions.ReportAppServer.Controllers.PrintReportOptionsClass();
              // Use the next line if you need to, you'll ahve to test. Depends on how the reports were saved.
                //CrystalDecisions.CrystalReports.Engine.PrintOptions.DissociatePageSizeAndPrinterPaperSize = true;
                //CrystalDecisions.ReportAppServer.ReportDefModel.ISCRPrintOptions.DissociatePageSizeAndPrinterPaperSize = true;
                //pDoc.DefaultPageSettings = pgSettings;
                PrintDialog dlg = new PrintDialog();
                dlg.Document = pDoc;
                if (dlg.ShowDialog() == DialogResult.Cancel)
                    MessageBox.Show("Cancel Button clicked", "RAS", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                else
                    CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions MYPRTOpts = new PrintOptionsClass();
                    if (rdoCurrent.Checked)
                        pDoc.PrinterSettings.PrinterName = cboCurrentPrinters.Text;
                   // the next 3 lines may not be necessary.
                        MYPRTOpts.PrinterName = cboCurrentPrinters.Text;
                        MYPRTOpts.PaperSize = (CrPaperSizeEnum)
                            pDoc.PrinterSettings.PaperSizes[cboCurrentPaperSizes.SelectedIndex].Kind;
                        MYPRTOpts.PaperSource = (CrPaperSourceEnum)
                            pDoc.PrinterSettings.PaperSources[cboCurrentPaperTrays.SelectedIndex].Kind;
                        MYPRTOpts.PaperOrientation = CrPaperOrientationEnum.crPaperOrientationLandscape;
                        //MYPRTOpts.PageMargins.Bottom = .1;
                        //MYPRTOpts.PageMargins.Top = .1;
                        //MYPRTOpts.PageMargins.Left = .1;
                        //MYPRTOpts.PageMargins.Right = .1;
                    else
                        pDoc.PrinterSettings.PrinterName = cboDefaultPrinters.Text;
                        MYPRTOpts.PrinterName = cboDefaultPrinters.Text;
                        MYPRTOpts.PaperSize = (CrPaperSizeEnum)
                            pDoc.PrinterSettings.PaperSizes[cboDefaultPaperSizes.SelectedIndex].Kind;
                        MYPRTOpts.PaperSource = (CrPaperSourceEnum)
                            pDoc.PrinterSettings.PaperSources[cboDefaultPaperTrays.SelectedIndex].Kind;
                    rptClientDoc.PrintOutputController.ModifyPrintOptions(MYPRTOpts);
                    //MessageBox.Show("Printer set.", "RAS", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    rptClientDoc.PrintOutputController.PrintReport(rasPROpts);
                    //MessageBox.Show("Printing report.", "RAS", MessageBoxButtons.OK, MessageBoxIcon.Information);
    Thank you
    Don

  • Preview a Crystal report prompted for the sa password

    Dear All,
    When our customer preview a Crystal report, we got a window prompted for the sa password. Even we type in a correct password, it still says wrong password.
    Only two user computer have this problem.
    How do I solve it?
    Regards,
    Karen

    I install Crystal Reports Designing Software on those computers which canu2019t preview reports.
    Then start the Crystal Reports design software to open the problem report.
    It usually asks to enter the column on the interface u201COLE DB (ADO) u2013 Connect Informationu201D.
    But it gets into the interface u201COLE DB (ADO) u2013 OLE DB Supplieru201D.
    I correct the setup and save the report.
    The problem is solved.
    I try many methods, but only this one can solve my problem.
    If you have another solution, please tell me, thanks!
    Regards,
    Karen

  • Crystal reports asking for login information at runtime

    BH
    Hi,
    I've installed the Crystal Reports for VS2010 (filename: CRforVS_13_0_9).  I've created a new "Crytal Reports Application" Project and I've added dataset which is connected to Access 2010 database. When I create a new report I use the "Project Data > Ado.Net Datasets > CrystalReportsApplication8 > Ledger" as my connection. I connect the report to the CrystalReportViewer in Form1.
    However, when I run the application, I get prompted for a Username and Password. Even though I type in the correct user name and password, it does not let me login and view the report.  I've been struggling for a few days with this.  What am I doing wrong?  I do not want the application to prompt for a username and password, because I've already entered the credentials in the application.  I've searched on the web for a solution, but with no success.  Please help.  I'm using C#.
    Thanks
    Aron

    See if this document will help:
    Crystal Reports Guide To ADO.NET
    Go to page 6 and follow the instructions there. Also, see KBA 1525432 (search box is ion top right corner)
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter
    https://twitter.com/SAPCRNetSup

  • Crystal Report prompts for username / pwd when deployed to Bus Obj Server

    Hi All,
    I'm relatively new to Crystal Reports development.  My day job is test analyst.  I'm reasonably technically proficient.
    PROBLEM
    I have created a number of Crytsal Reports which have now been deployed to an Enterprise Business Objects Report Server.  The Server is Business Objects Server XI release 2.
    When I run the report in Crystal Reports Desiger 2008 it does not prompt me to enter the database credentials except if I have modified the SQL command or some other report detail.  Most times I run the report, no database username / pwd is required because I already set this up in the datasource config.
    I' connecting to an Oracle database using ODBC (RDO) connection type.  I cannot get the ODBC (RDO) connection type working from my PC using Crystal Reports Designer 2008, because I don't have ODBC configured for my datasource.  Instead, Im using the native Oracle Server driver to connect to my datasource.
    An existing user in the client organisation configured my report to use the ODBC (RDO) conneciton type for me because the Business Objects Server in the client organisation does not (currently) support the native Oracle driver.  Other reports this user has created and deployed using the ODBC conenction type run successfully without prompting user to enter the database connection credentials.
    NOTE:
    This report users an SQL Command (new to Crystal 2008 I beleive?).  The command is reqiured for this report due to the complexity of the underlying SQL query.
    Does anybody know why the report keeps prompting me to enter the database credentials at runtime?  Obviously for security reasons I don't want report users to have to enter the database schema name and password in order to run the report.

    Hi,
    You need to uncheck "Propmt the user for database logon when viewing". You will find this when you deploy the report on the BOE XI R2.
    The deployment step main heading is
    Specify Databse Crendentials.
    Hope this helps,
    Thanks
    -Azhar

  • Crystal Reports prompting for creds when viewed from BO 4

    The environment:
    Business Objects Enterprise 4, sp2 patch 8
    SAP ECC 6.0, kernel 701, sup. pkg. lvl 137
    This is a new BOE 4 installation on a test system.  The BOE installation has been configured to use Windows AD authentication with SSO.  When I run a Crystal Report that is based on SAP ECC data, I am prompted for credentials.  So I used the following document to configure BOE for SSO to DB:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/HowtosetupSSOagainstSAPBWinSBOBI4.0forLDAPusers
    This didn't fix the problem.  SAP ECC reports in BOE still prompt for creds when viewed.  SAP Authentication is verifiably working, but I'm not sure if SSO to DB is working.  One thing I've noticed is that when I log in to BOE using SAP authentication and view the report, I'm not prompted for creds.  In BOE I added my Windows AD acct as an alias in my SAP acct, but I may have either done this incorrectly, or there may be something I need to do in addition.
    question 1:  Is there an easy way to verify if SSO to DB is working correctly?
    question 2:  In CMC --> Authentication --> SAP --> Entitlement Systems --> User Name, I'm assuming that this is an SAP user name.  What roles/profiles does this account need?  Should it be a dialog acct?
    question 3:  Our ECC system is configured to use SNC.  Do I need to configure SNC in BOE for SSO to DB to work?
    question 4:  I added my Windows AD user as an alias on my SAP user record.  I'm not sure this is correct...  can someone verify?
    Any help or suggestions are much appreciated.

    Thanks, Ingo.  Once I got snc configured, everything began working wonderfully.
    I used this document as a guide:
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3134343630363726

  • Preview and print a Crystal report prompted for the sa password

    Dear All,
    Our customer has Crystal report add-on to be installed. When we Preview and print a Crystal report, we got a window prompted for the sa password. Even we type in a correct password, it still says wrong password...
    Every time when I open my report in Crystal Basic 2008 on the server, then go database expert >> My connections >> click + in front of the connection name, it asks my sa password. I type in my password then save and close. Next time when I open the report and go my connections, I have to type in my password again. This only happens on one customer.
    Any idea? Thanks a lot.
    Regards,
    Yuka

    Hi Yuka,
    1) All their SAP client workstation, they have to have use SQL2008 CD and install SQL Client on it
    Correct, MS does NOT support MDAC or WDAC when connecting to SQL 2008.
    2) Then go ODBC >> SQL Native Client 10.0 >> Create a new connection to SAP server. Should we use sa user or another use that has the same authorization as sa?
    Correct again if they are also using ODBC to connect, as for using the sa account or creating a new one is up to you. I suggest creating a Crystal account with what ever rights your app needs, this way if tracing it turned on etc. you can confirm who is actually running the report.
    3) Then from MY Crystal report, I have to use ODBC connection as well?
    Just to clarify, if you created your reprots using OLE DB then they can do so also. But you need to update your connection properties. Open each report click on Database, Set Location, scroll down to OLE DB and expand and then choose MS SQL Server Native 10 as your OLE DB provider, fill in all the logon info and then verify the database. Do the same for each subreport also.
    Save your report and either send them the new one or if you are doing this remotely then replace the original report.
    VERIFY your reports to confirm they still return correct data and do work as expected.
    Or if you are using ODBC then yes you do select the MS 10 driver with a new DSN. Then do the above to update the reports to all use ODBC as their data sources.
    Hope this is all clear now....
    Thanks again
    Don

  • Crystal Report Prompt For Enter Parameter Values

    Hi,
    I did a report with 2 subreports embeded in VS2005 using VB and it worked fine but when I ported the whole application to VS2008 the above problem occurs. Here are some codes:
        Private Sub btnPreview_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPreview.Click
            Dim viewer As New frmReportPreview
            Dim rpt As New ReportDocument
            Try
                rpt.Load("C:\Report\crptMain.rpt")
                rpt.SetParameterValue("Code", Me.cbxCode.Text)
                rpt.SetParameterValue("Code", Me.cbxCode.Text, "crptSubReport1.rpt")
                rpt.SetParameterValue("Code", Me.cbxCode.Text, "crptSubReport2.rpt")
                viewer.report = rpt
                viewer.WindowState = FormWindowState.Maximized
                viewer.ShowDialog()
            Catch crptEx As CrystalDecisions.CrystalReports.Engine.EngineException
                MessageBox.Show(crptEx.Message, "Crystal Report Errors...")
            Catch ex As Exception
                MessageBox.Show(ex.Message, "Crystal Report Errors...")
            End Try
        End Sub
    Private Sub frmReportPreview_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Dim rpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument
            Try
                Me.CrystalReportViewer.ReportSource = m_report
                Me.CrystalReportViewer.RefreshReport()
            Catch ex As Exception
                MessageBox.Show(ex.Message, "Error...")
            End Try
        End Sub

    Subreport Parameters are contained within the Main Report's ParameterFieldDefinitions collection. Passing Subreport Parameter values directly to the Subreport will result in the values not being applied and the user being prompted at runtime to provide new values.
    Ludek

  • Report server running in integrated mode , but cannot deploy reports again and again prompts for login

    Report server running in integrated mode , but cannot deploy reports again and again prompts for login
    Nur Mondal

    Hello,
    How are you deploying the reports? Via Visual Studio, Report builder or manually uploading RDL files?
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • Crystal Reports 10 for JBuilder problem!

    Hi all,
    I am new to use the Crystal Reports 10 for JBuilder. And hopefully, I can get some advice from all of you,
    When I create a crystal report, why do I need to add the files to JBuilder every time?
    And I can not see it in the JBuilder, I just can see the properties, like the time when to create it and its size.
    How can I do that?
    thank you
    happybaobao

    Hi,
    In the JBuilder, I added all of the jar file that i get when I installed the crystal repots for borland JBuilder. Those jar file is in the directory:
    \Program Files\Common Files\Crystal Decision\2.5\lib
    I have created a crystal reports name Report2.rpt by the Crystal Reports for Borlan JBuilder.
    and then how can i do in the JBuilder?
    I clicked the project in the JBuilder, then click " Add files/ Packages..." , add the file: report2.rpt.
    I open the file , it just display the properties of the file, i mean the time and file name.
    Is it that right?
    thanks
    happybaobao

  • Stop Crystal from Prompting for Parameters

    Hi there,
    I am trying to stop Crystal from prompting for a parameter that has the Optional Prompt flag set to True as I want to use the HasNoValue attribute to retrieve all records when there is not a specific value sent to the parameter.
    When the parameter is created from a store procedure, I can simply set the value to nothing and handle the resulting NULL in the procedure.
    I was expecting that I could do the same for the regular parameters but this returns a "parameter field and parameter field current values are not compatible" error.
    I have tried setting the HasCurrentValue to True but this is a read only attribute.
    I have also tried setting the Viewer.ReuseParameterValuesOnRefresh to False (and True) but the report still prompts for the parameter.
    I have searched the web for the last two days and have had no joy on this so any help or pointers would be appreciated.
    Thanking you in advance

    Hi Don,
    I am using Crystal 2008 for both the report and the assemblies.
    Using the word All is not really an option as I need to process all types of parameters i.e. Boolean, integers and dates as well as strings.
    I could create some complex formulas to handle this but I need the report creation to be simple as possible as possible so that the customer can create reports at will.
    Using the Optional Prompt feature now available in 2008 I can create a simple record selection formula that looks like something like this :-
    (not HasValue({?MyParameter}) OR {Table1.Field1} = {?MyParameter})
    My problem is getting the parameter to register through my code that it has been set to HasValue = False so that the user is not prompted by the viewer to enter the parameter again.

  • An error in Crystal Reports Basic for Visual Studio 2008

    Greetings from Peru,
    We have a problem with one of the Crystal Reports products weu2019d like you to help us with. We work with Crystal Reports Basic for Visual Studio 2008.
    The error weu2019ve detected is in one of our systemu2019s reports; this report shows data inside frames. When the content to show is larger (in height) than the space left in the page, the container object of the report makes a line break keeping the title and the frame empty at the end of that page, but  the information is shown in the next page. What we need is that not empty frame is displayed.
    Weu2019ve tried to solve this problem by adjusting the report in different ways (by programming coding), but unfortunately this problem is related to how much data is displayed, because if this data fit in the space left in the page, the line break would not occurs and the data is shown at the end of the same page.
    We hope you can help us with this issue.  I look forward to your comments.

    All I can think of is trying CR 2008 (v.12.x). You can obtain an eval copy from here:
    http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Dynamic command execution fails in Crystal report viewer for parameters

    We are using the Crystal Report Viewer for the .Net Application on the client side.The reports are designed using Crystal Report XI R2.
    The issues that we are currently encountering is that, we are unable to load the combo-boxes in the pop-up for the parameters.
    All the reports have multiple commands and the variables are of 'dynamic' type.
    When the dialog box for requesting the pop-up comes up, It comes up empty even though they are linked to the respective commands.
    Also,For reports having multiple parameters we are unable to give a single dialog box to get in all the parameters.It appears as a series of prompts.
    Both,these issues are not encountered when the reports are launched via the Crystal reports developer tool.

    Hello Varun,
    I recommend to post this questionin the [dedicated NET forum|SAP Crystal Reports, version for Visual Studio;.
    This forum is monitored by qualified technicians and you will get a faster response there.
    Thank you for your understanding,
    Falk

  • Trying to subscribe to a secure podcast, but I am never prompted for login information, instead I just get the gray "i". Is there something in iTunes 10.4 i can change to fix this?

    Trying to subscribe to a secure podcast, but I am never prompted for login information, instead I just get the gray "i". Is there something in iTunes 10.4 i can change to fix this?
    Notes: The RSS feed of the podcast works just fine. When I enter the podcast URL into the firefox bar, I am prompted and am able to access the page. The problem is with iTunes not giving me the prompt.

    Mountain Lion Supported Machines
    Supported
    Models
    iMac (Mid 2007 or newer)
    MacBook (Late 2008 Aluminum, or Early 2009 or newer)
    MacBook Pro (Mid/Late 2007 or newer)
    Xserve (Early 2009)
    MacBook Air (Late 2008 or newer)
    Mac mini (Early 2009 or newer)
    Mac Pro (Early 2008 or newer)
    Requirements
    General Requirements
    OS X v10.6.8 or later
    2GB of memory
    8GB of available space
    Some features require an Apple ID; terms apply.
    Some features require a compatible Internet service provider; fees may apply.

  • Installing Crystal Report AddOn for 8.8

    Dear All,
    Please let me know how to install Crystal Report AddOn  for 8.8 B one ? After installing the Addon When I am starting the Add On I am getting as error as External Connection to the database failed. SAP Crystal AddOn may not function properly. Please rerun the account setup with superuser login.
    And when I click on Administration>>Crystal Reports Administration>> Account Setup screen to setup the account,  I am getting error as Item-  Could not commit action because the item is currently in focus [66000-23].
    Regards,
    Noor

    Dear Noor,
    You may check this thread:
    Crystal reports for Business One 8.8
    Thanks,
    Gordon

Maybe you are looking for