Crystal Report Viewer Control on SAP Form?

We are using Crystal Report XI to create custom SAP reports.  We have integrated this into our Add-On by adding the Report Viewer Control to a Windows form and setting it's report source at runtime.  This works ok but is a bit cludgy looking and causes some focus and redraw problems with SAP.  I have tried for weeks to figure out how to get the ActiveX control onto an SAP form but with no luck.
Here is my code sample:
SAPbouiCOM.Item oItemX;
SAPbouiCOM.ActiveX oActX;
CrystalDecisions.Windows.Forms.CrystalReportViewer oCRX;
oItemX = this.sboForm.Items.Add("U_CRCtl", SAPbouiCOM.BoFormItemTypes.it_ACTIVE_X);
oItemX.Left = 0;
oItemX.Top = 0;
oItemX.Height = this.sboForm.Height;
oItemX.Width = this.sboForm.Width;
oActX = (SAPbouiCOM.ActiveX) oItemX.Specific;
oActX.ClassID = "{5E093535-5A5D-4E72-ACCD-F10B6D065BC9}";
oCRX = (CrystalDecisions.Windows.Forms.CrystalReportViewer) oActX.Object;
oCRX.ReportSource = @"c:\Test\Test.rpt";
I am not sure why this will not work.  I always get either 'Specified cast is not valid' or 'Invalid Class ID'.  If anyone has done this successfully or has any suggestions that would be great!  Thanks for your help!
David

Hi Ibai,
   Thank you for your interest in CrystalWave. I tried sending this info to the email address you gave but got an undeliverable message.
The links are as follows:
(please use Internet Explorer while accessing the download link)
1. CrystalWave info: http://www.twbs.com/CrystalWave.html
2. CrystalWave download: http://www.twbs.com/cwrfiv2004.asp (You need to fill in your info and the download will start.)
Please do let me know if you are not able to access these links and I can setup a temporary link for you to download the program.
Thanks,
Gopal Viswanathan

Similar Messages

  • Crystal Report Viewer Control error

    Please Help, I have a web application developed in .net 2005 which is using crystal reports developer product version 10.0.0.533.
    This web application with crystal is working fine on my local machine with OS windows xp, but on the windows server 2003 the application web form is running into "couldnot load file or assembly 'CrystalDecision.VSDesigner, Version=10.0.0.3300' or one of its dependencies"
    I have compared the assembly information of my local machine with that of the server and could not see the crystaldecision.vsdesigner version 10.0.0.3300 on the server 2003. I have uninstalled microsoft .net 2005 and crystal reports and installed crystal first and visual studio .net 2005 next and vice versa but still could not see that particular assembly available in the windows 2003 server.
    Please suggest as what to do for the assembly to be available on the server so crystal report viewer control can be created with out error. Thanks for any help.

    Hello Sunitha,
    Visual Studios 2005 ships with a bundled edition of Crystal Reports.  This bundled edition is based on the v10 code stream, but it is not CR10.  It's CR.NET for Visual Studios and it's v10.2. Crystal Reports 10.0 and the bundled CR.NET 10.2 for VS2005 are not interchangeable.
    The stand alone version of Crystal Reports 10 is not expected to integrate correctly into VS2005.  If you have CR10 Developer installed on your VS2005 machine you can force VS2005 to use the CR10.0 assemblies, but it is not supported.
    You need to clean up your application so that it's referencing the 10.2 version assemblies and then deploy the 10.2 runtime files.  You can visit the [Crystal Reports for Visual Studio .NET Runtime Distribution - Versions 9.1 to 12.0|https://www.sdn.sap.com/irj/scn/wiki?path=/display/bobj/crystalReportsruntimeforVisualStudio.NET] Wiki for a nice overview of the various versions of Crystal Reports, as well as a listing of the runtime files to match the version of Crystal Reports that is being used.  For VS2005 and bundled CR.NET look at the "CR 10.2 (VS .NET 2005)" section of the Wiki.
    Sincerely,
    Dan Kelleher

  • I couldn't use Crystal Report Viewer Control in my ASPX page.

    Please I'm having a problem with crystal report viewer control which I couldn't resolve. I'm using VS 2008 and Framework 3.5.
    I building an ASP web application and when I add a CrystalReportViewer to my ASPX page I'm getting the following
    error.
    "Error     20     Type 'CrystalDecisions.Web.CrystalReportViewer' is not defined."
    I think maybe because I'm not having the right reference file. I'm using Crystal Reports 2008 and also I installed the following
    Service Packs:
    cr121_redist_install
    CR2008-SP1
    CR2008SP1-Fixes 1 and 2
    cr121_clickonce
    I check all the reference files in my project and they are as follow:
    CrystalDecisions.CrystalReports.Engine  (12.0.2000.0)
    C:\Program Files\Business Objects\Common\4.0\managed\dotnet2\CrystalDecisions.CrystalReports.Engine.dll
    CrystalDecisions.Enterprise.Framework  (12.0.1100.0)
    C:\Program Files\Business Objects\Common\4.0\managed\CrystalDecisions.Enterprise.Framework.dll
    C:\Program Files\Business Objects\Common\4.0\managed\CrystalDecisions.Enterprise.InfoStore.dll  (12.0.1100.0)
    C:\Program Files\Business Objects\Common\4.0\managed\dotnet2\CrystalDecisions.ReportSource.dll  (12.0.2000.0)
    C:\Program Files\Business Objects\Common\4.0\managed\dotnet2\CrystalDecisions.Shared.dll  (12.0.2000.0)
    Please Why I'm getting this problem? How I can resolve it?
    Thanks.

    If you have a viewer on one of your forms, delete it off the form and re-add it, ensuring that the crystalreports.web assembly referenced in your project is version 12.
    Ludek

  • Problem in crystal report viewer control's toolbar "export"button using SSL

    Hi,
    I would like to ask. My project is using BO XI Release 2 and VS-Studio 2005. Initially my project doesn't use SSL... At that time when i view the report with crystal report viewer control and can export (using built-in toolbar "export button"). Now project is using SSL and canu2019t export the error is
    u201CInternet Explorer cannot download file from server.
    Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.u201D
    Actually this error can solve "Cache-control" change to "no-cache". But I donu2019t know in crystal reportu2026
    Anyone can help ???
    Thanks

    In Internet Explorer, go to Tools -> Internet Options -> Advanced and ensure "Do not save encrypted pages to disk" is unchecked.
    Default is to have that option checked. 
    It was considered a IE security issue that IE saves all content to temp disk location unencrypted, even those pages served by HTTPS (for example, let's say you use HTTPS to download your bank info, and it's stored to temp disk for someone else to retrieve later).  So more recent versions of IE implemented that option setting.
    How that option setting works is strange - it downloads the file, saves to disk, then deletes the copy from the disk immediately, before passing it to the application responsible for the MIME type.  So the application tries to open a directory path to a non-existing file.
    Issue is specific to IE, and it's not something you can control via the SDK.
    Sincerely,
    Ted Ueda

  • Fonts are not diplayed correctly in the Crystal Report Viewer control

    Post Author: Farid
    CA Forum: General
    Hello,
    I have designed a report in the Crystal Reports XI Designer (version 11.5.3.417) using the default printer. When I view it through the preview mode of the Designer, fonts are displayed like expected using the default printer driver.
    Now, I view this same report at run time in the Crystal Report Viewer control on the same computer with the same default printer. Fonts appear then differently they were in the preview mode : sizes are differents and some texts are truncated. It seems that the default printer driver are not used.
    Can anybody tell me if this behaviour is normal ? If it is the case how should I do to display a report in the Report Viewer using the default printer driver like I have specified it in the Designer.

    Post Author: V361
    CA Forum: General
    You may want to select the "no Printer" option instead, this will force CR to use a higher resolution.  Look in page setup, printer options.

  • Crystal Reports Viewer Control  - Visual Studio 2008 WEB Application

    My question is this:  Has ANYONE on this planet been able to get the ASP .NET CR Viewer control to actually work?
    Why does this editor NOT recognize End-of-line or CR characters or any whitespace??
    I have developed a Crystal Reports "Viewer" web application in VS2008 using C#.
    It's a simple app, in that it's a single page with a treeview control (containing the grouped names of the reports to which the user has access) and the CR Viewer control.
    The report files live on a network share, and permissions to them is controlled via a SQL Server database, which, for each report, stores the UserID and Logion for the oracle database, as well as any required parameter values.
    The reports themselves are all hititng an Oracle 10g database.
    I managed to do this in a Windows desktop applcation using Visual Studio 2005 and VB .net, but now, upon trying to make this a web application in VS2008, I have completely failed. The application works when run locally, but when deployed to the web server, I experience database login prompts when I should not, (the dreaded "Report requires further information" message) even thought the setdatabaselogin has already been set. I have tried saving the reportdocument in viewstate and re-assigning the viewer Datasource property to it, that also fails. However, it only does it on some reports, and not others. (admittedly, the reports may have been created using different CR versions)
    The viewer also displays data it should not be displaying when I attempt to scroll, when I do manage to get a report to run.
    I am setting parameters dynamically at run time, whose values are stored in the SQL database.
    Code Sample:
    protected void ShowReport(int ReportID)
            SQLDataPortal2005.Common sql = new SQLDataPortal2005.Common();
            Hashtable outParms = new Hashtable();
            string sAccess;
            IDataReader dr;
            CrystalDecisions.CrystalReports.Engine.ReportDocument rptDocument = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
            System.Security.Principal.WindowsPrincipal p = System.Threading.Thread.CurrentPrincipal as System.Security.Principal.WindowsPrincipal;
            sAccess = p.Identity.Name;
            int j = 0;
            int i = -1;
            if (!IsAdmin())
                sql.ExecNonQuery("CrystalReports", outParms, "proc_CRM_Check_Permissions", sAccess, Convert.ToInt32(TreeView1.SelectedNode.Value));
                if (outParms["@Allow"].ToString() != "True")
                   Response.Redirect("ErrorPage.aspx");  // redirect to  error page
            string sPath = System.Configuration.ConfigurationManager.AppSettings["WareHouse"].ToString();
            sPath = sPath + TreeView1.SelectedNode.Text.Trim() + ".rpt";      
            rptDocument.Load(sPath);
            dr = sql.GetDataReader("CrystalReports", "proc_CRM_Get_Report", Convert.ToInt32(TreeView1.SelectedNode.Value));
            while (dr.Read() == true)
                j += 1;
                if (j < 2)
                    rptDocument.SetDatabaseLogon(dr["DB_Login"].ToString(), dr["DB_Pwd"].ToString(), "PLAW", "LAWDB", true);
                    pList = dr["ParmList"].ToString().Split(',');
            dr.Close();
            dr.Dispose();
            if (pList.Length > 0 && pList[0].ToString().Trim() != "")
                foreach (CrystalDecisions.Shared.ParameterField x in rptDocument.ParameterFields)
                    i++;
                    switch (x.ParameterValueType)
                        case CrystalDecisions.Shared.ParameterValueKind.BooleanParameter:
                            rptDocument.SetParameterValue(x.Name, Convert.ToBoolean(pList<i>));
                            break;
                        case CrystalDecisions.Shared.ParameterValueKind.CurrencyParameter:
                            rptDocument.SetParameterValue(x.Name, Convert.ToDouble(pList<i>));
                            break;
                        case CrystalDecisions.Shared.ParameterValueKind.DateParameter:
                            rptDocument.SetParameterValue(x.Name, Convert.ToDateTime(pList<i>));
                            break;
                        case CrystalDecisions.Shared.ParameterValueKind.DateTimeParameter:
                            rptDocument.SetParameterValue(x.Name, Convert.ToDateTime(pList<i>));
                            break;
                        case CrystalDecisions.Shared.ParameterValueKind.NumberParameter:
                            rptDocument.SetParameterValue(x.Name, Convert.ToInt32(pList<i>));
                            break;
                        case CrystalDecisions.Shared.ParameterValueKind.StringParameter:
                            rptDocument.SetParameterValue(x.Name, Convert.ToString(pList<i>));
                            break;
                        case CrystalDecisions.Shared.ParameterValueKind.TimeParameter:
                            rptDocument.SetParameterValue(x.Name, Convert.ToDateTime(pList<i>));
                            break;
            Session["CReport"] = rptDocument;
            CRV1.ReportSource = rptDocument;
            CRV1.DisplayGroupTree = false;
            CRV1.HasRefreshButton = true;
            CRV1.ShowFirstPage();
    Is there a better/different way of accomplishing this very simply process? All I need this application to do is to view a report, while setting it's parmeters (if required) dynamically at run time. I don't EVER want the user to be prompted for DB LOGIN INFO.
    Edited by: RichardK on May 10, 2010 4:14 PM
    Edited by: RichardK on May 10, 2010 4:14 PM
    Edited by: RichardK on May 10, 2010 4:16 PM
    Edited by: RichardK on May 10, 2010 4:18 PM
    Edited by: RichardK on May 10, 2010 4:22 PM
    Edited by: RichardK on May 10, 2010 4:23 PM

    To answer you question; Yes, I suspect that most of the users in this community have managed to successfully create web apps. And this is the tiniest of sampling of the developers out there...
    A few suggestions;
    1) Keep the posts to under 1200 characters. Otherwise, the formatting is lost which makes it difficult to read.
    2) Try out a few sample apps from here:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    Suggest; csharp_web_simplelogonengine.zip, csharp_web_simplelogonviewer.zip and csharp_web_subreport_logon.zip.
    3) Start simple; one table, one field, no subreports. Hard code the database logon parameters. Convince your self that this does work. Increase the complexity - add fields, tables, subreports. Do not mix connection methods (e.g.; if ODBC for main, than ODBC for sub is a good idea, though not a requirement).
    4) See the article [Troubleshooting Guide to Database Connectivity Issues with Crystal Reports in Visual Studio .NET Applications|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b0225775-88c4-2c10-bd80-8298769293de].
    5) See  [this|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/d05b3bb7-0f28-2c10-4ea3-84dbdc4e414e?quicklink=index&overridelayout=true] article.
    6) Consider creating a phone case here:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300
    Ludek
    Follow us on Twitter
    http://twitter.com/SAPCRNetSup

  • Crystal Report Viewer Control 11.5

    I have Crystal 2008 but I need to be able to use the Crystal Report Viewer when viewing reports through a website.
    I have the activex in my AddOn Manager but when I view the files in my Downloaded files folder the viewer control is not there.
    How do I download the CR reports viewer?
    thanks

    I am giving myself points for stumbling onto the solution to this.
    I had basically given up that I would not be able to view my reports on this computer.  I tried everything I could think of to either fix or remove the ActiveX control.
    I had to do some stuff on Access today and in the Tools menu there is an item called Active X controls.
    I clicked on the Crystal Report Active X Controll 11.5 and then clicked on the Unregister button.
    I opened the IE add-on manager and the control was nowhere to be seen.
    I logged on the site where I need to view the reports and what do you know it asked me to install the
    Active X control.
    Two IE restarts later I am now able to see my reports.
    So if you need to remove an Acitve X control from IE and it won't let you delete try unregistering it in Access.

  • Crystal Report Viewing Problem in SAP b1 2007

    Hi ,
    I have Installed Crystal Report Add On for 2007 SAP B1 but while display report i have getting following error,
    Any one can tell me what i have to do,please resolved my issue
    could not load file or assembly 'CrystalDecisions.Windows.Forms,Version=12.0.20000.0,Culture=neutral,PublickeyToken=692fbea5521e1304' or one of its dependencies,the system cannot find the file specified
    Thanks
    Chaitesh

    Julie.
    This change has already occurred?
    Thanks.

  • Crystal Report Viewer ActivX Control into an SAP Form

    Hi
    I need to show an Crystal Report Viewer in a SAP form This code show an blanck from.
    I know that only ATL activX are supported by SB1, but I don’t have more information about the Crystal ActivX.
    Dim oFormTST As SAPbouiCOM.Form
    Dim oCreatP As SAPbouiCOM.FormCreationParams
    oCreatP = oApp.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
    oCreatP.UniqueID = "TEST"
    oCreatP.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Sizable
    oCreatP.FormType = "TESTFtype"
    oFormTST = oApp.Forms.AddEx(oCreatP)
    Dim oItemX As SAPbouiCOM.Item
    Dim oActivX As SAPbouiCOM.ActiveX
    oFormTST.Height = 400
    oFormTST.Width = 400
    oItemX = oFormTST.Items.Add("TEST01", SAPbouiCOM.BoFormItemTypes.it_ACTIVE_X)
    oActivX = oItemX.Specific
    oActivX.ClassID = "CrystalReports11.CrystalReportViewer.1"
    Dim oRep As CrystalDecisions.Windows.Forms.CrystalReportViewer
    oRep = oActivX.Object
    oRep.ReportSource = "E:\DevLoc\App\bin\FICHETECH.rpt"
    oItemX.Height = oFormTST.Height
    oItemX.Width = oFormTST.Width
    oFormTST.Visible = True
    Some one as an idea ?
    Thks

    Vishal,
    I would like to let you know of an SBO addon that we have created called CrystalWave. This addon integrates Crystal reports with B1. This might save you a some time trying to recreate the wheel. Please take a look at the following link:
    http://www.twbs.com/CrystalWave.html
    YOu can download a fully functional copy at http://www.twbs.com/selectcwversion.html
    This will work only on the SBODEMO_US company.
    Let me know if you have any questions.
    Gopal Viswanathan

  • Crystal Report Viewer Not viwed - Through APP Server Re-Direction

    Hello Team
    I have a critical problem in my organizaion for viewing the reports.
    Configuration that we are using:
    1. Windows Server 2008 R2
    2. Crystal 13 - Server Trial Version - Expiring on Aug-25th, 2014
    3. Used Visual Studio 2010 - .NET
    4. IIS 7.0 - configured a  Virtual Directory for ASP.NET application
    Out Application is using an Oracle APP Server to view the HTML. A button is provided in the HTML to redirect to view the Crystal Report.
    when I click on the Hyperlink and the url is directly accessed, then the Report is being shown without any issue.
    But ours is a corporate application and we have given a provision of accessign this application when users are outside of network. Hence the Crystal Server is under fire-wall. So, I cannot access it directly with a URL. Hence the app server is configured in such a way that if it find a name like "Reports" in the URL, then it redirects to the actual Web Server and gets back the data to the browser.
    for URL redirection, the app server is configured as below
        ProxyPass /crystalreportviewers/ http://<<ServerIP>>/crystalreportviewers/
        ProxyPassReverse /crystalreportviewers/ http://<<ServerIP>>/crystalreportviewers
        ProxyPass /reports10/ http://<<ServerIP>>/reports10/
        ProxyPassReverse /reports10/ http://<<ServerIP>>/reports10
    When the user redirects from the APP server using those redirection rules, the pages are being executed but the final crystal report viewer control is not being shown on the browser. I am not sure if we need to perform any other steps to get these thigns done.
    Our server is behind fire-wall and whenever I am in network, I used to get the output but when the redirection happens not able to load the Crystal Report Viewer. Not sure, if there are any other security rules that I need to consider to get back the CrystalReportViewer.
    Also, there is something called CrystalReportInteractiveViewer prior to Crystal13. Do we have anything as such in Crystal 13 also? Please help me in getting this worked.
    Please let me know if I am not clear in my explanation and I can certainly provide you a better information based on your queries.
    Thanks
    -Srinivasa Nadella

    Hi Srinivasa,
    Please move this thread to SAP Crystal Reports, version for Visual Studio
    Helpful threads: Having issues with Crystal reports report viewer
    c# - Application level assembly redirection not working - Stack Overflow
    asp.net mvc - Why is my Crystal Report and Viewer invisible on a Web Form in an MVC application? - Stack Overflow
    Regards,
    DJ

  • Multiple instances of Crystal Reports Viewer possible in WPF?

    Hi, I've dragged and dropped three Crystal Reports Viewer controls on my WPF application. The goal is to be able to select up to 3 reports from a listbox and click run to generate the reports simultaneously. When I select just one report, it works fine. However when I select multiple reports it throws errors (object not found, etc). It seems there is a problem with multiple threads. Is it possible to have multiple instances of the Crystal Report Viewer display reports simultaneously? I am using version 13.0.9.1312 from the link below along with VS2013 C# WPF.
    SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
    Thanks,
    Syed

    I was able to quickly cobble together a two viewer app that looks like this:
    The code is like this:
    Public Sub New()
            ' This call is required by the designer.
            InitializeComponent()
            ' Add any initialization after the InitializeComponent() call.
            Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument
            crReportDocument.Load("C:\tests\formulas.rpt")
            CrystalReportsViewer1.ViewerCore.ReportSource = crReportDocument
            Dim crReportDocument2 As New CrystalDecisions.CrystalReports.Engine.ReportDocument
            crReportDocument2.Load("C:\tests\report1.rpt")
            CrystalReportsViewer2.ViewerCore.ReportSource = crReportDocument2
        End Sub
    For more details see the document WPF Project Using the Crystal Reports WPF Viewer in 8 Easy Steps
    Now a couple of things to keep in mind;
    1) The report engine is based on 3 Concurrent Processor License (CPL) model. Meaning you can process at most three reports at the same time. In my test, doing the above code for four reports worked, but the reports are very, very simple - and with saved data. What a "real" world reports will do, I am not sure. I do know that in a web app, the reports are queued up until one report is done and thus a CPL is freed up. You will also need to keep in mind any database connection limits, etc.
    2) There is also a Print Job limit. This by default is set to 75. In a nutshell, almost anything done with a report is a Print Job. E.g.; paging, zooming, drilling, searching, etc., etc. In addition subreports are considered to be Print Jobs. Thus a report with one subreport in a detail section that returns a thousand rows of data and therefore running 1000 subreports will error out.
    You can read more about Print Job limits here:
    Crystal Reports Maximum Report Processing Jobs ... | SCN
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Crystal Report Viewer Collapse Unneeded Lines

    I have a CR open sales order report grouped by sales order number. Crystal report viewer outlines Sales Order #, customer name and doc total in the master line. Underneath that, it shows multi line items contain in that SO.
    I am wondering, is there a way I can collapse the multi line items and only shows the master line item? We need this sometimes to present to management just to show the big picture.
    Is it we can add a drill-down event to the crystal report viewer control? Not sure how to accomplish that. Any help will be appreciated.
    Thanks.

    Hi, 
    If the detail information is in the Detail section, you can set the Detail Section to Hide.  This will only show the Sales Order information and have the ability to drill down to the Details when you need them. 
    Good luck,
    Brian

  • Problem on using Crystal Report Viewer on windows application ("specified type is not valid ")

    Hi
    I am having problem on using Crystal Report Viewer on one of my windows application.
    I am not sure how to put the Crystal Report Viewer 11 Control onto the tool box.
    I could found a Crystal Report Viewer control on my computer, but it is version 8.5.
    I have also found another one which is Called Crytal ActiveX Report Viewer, i don't think it is the one I can use. As when I try to load a dummy report on to the Crytal ActiveX Report Viewer, It return an error. "specified type is not valid"
    Please see the Code sample below.
    private sub loadReport()
         Dim r as New ReportDocument
         'v is the name of the Crystal ActiveX Report Viewer Control
         r.Load("C:\Report1.rtp")
         v.ReportSource(r) <---It throw error on this line.
    End Sub
    Could you give me some advice about what have I done wrong, How to check if I have set up the Crystal Report Component correctly in my Visual Studio 2005 Standard edition.
    Thanks in advances.
    Many thanks
    Chi

    VS 2005 Standard and Express editions do not come with Crystal Reports; only the Professional and higher editions will have CR bundled. However, I believe you can purchase CR XI R2 Developer and it will give you the components you need to create a VS .NET 2005 application using the Standard edition.
    -MJ

  • Open programatically Crystal Report Viewer XI to display rpt file

    Thank you in Advance!!!
       I got the following VBA code.
    1) What library do I need to include to access Crystal Report Viewer XI?
    2) How do I declare CRViewer11 to open Crystal Report Viewer XI and a created report?
        Please look at ***???
        Dim crrpt As New CRAXDRT.Report
        Dim crapp As New CRAXDRT.Application
    ***???Problem here:    Dim CRViewer11 As New CrystalActiveXReportViewer
        Dim myParamField As CRAXDRT.ParameterFieldDefinition
        Dim intCounterPartyId, intNoCreditLimit, intAllAccounts, intOpenTrades, intOpenFail, intOpenOver As Integer
        Dim dtFirstDayOfYear As Date
        Dim dblCreditUsed, dblYTDAmount As Double
        Dim db As Database, rs As Recordset, strSql, strFileName, strMsg As String
        Dim strAttachDir, strAttachment, strReportDir, strCrReport As String
        'Set db = CurrentDb
        strAttachDir = "T:\Work\"
        'open crystal report(rpt)
        strReportDir = "T:\Work\"
        strCrReport = "TimeDetailwithData.rpt"
        Set crrpt = crapp.OpenReport(strReportDir & strCrReport)
        strFileName = Format(Now(), "YYYY-MM-DD-HHMM") & "-TimeDetail.rpt"
        strAttachment = strAttachDir & strFileName
        crrpt.DiscardSavedData
        'SET PARAMETER FIELDS
        Set myParamFields = crrpt.ParameterFields
        For Each myParamField In myParamFields
            With myParamField
                Select Case .ParameterFieldName
                        Case "StartPeriod"
                            .SetCurrentValue CDate("2008-7-16")
                        Case "EndPeriod"
                            .SetCurrentValue CDate("2008-7-17")
                        Case "Org - Comp"
                            .SetCurrentValue "2WV"
                        Case "Org - Dpt"
                            .SetCurrentValue "300"
                        Case "Org - Fac"
                            .SetCurrentValue "01302"
                End Select
            End With
        Next
        crrpt.EnableParameterPrompting = False
        crrpt.ExportOptions.FormatType = crEFTCrystalReport70
        crrpt.ExportOptions.DestinationType = crEDTDiskFile
        crrpt.ExportOptions.DiskFileName = strAttachment
        crrpt.Export False
        Set CRViewer11 = crapp.OpenReport(strAttachment)
    ***???Problem here: CRViewer11.ReportSource = strAttachment
    ***???Problem here: CRViewer11.ViewReport

    Hi, Rocio;
    In the future, please submit programming type questions to our SDK Forums.
    The component you are looking for is the Crystal Report Viewer Control x, where x is your version of Crystal Reports.
    You can also browse to the file, it is crviewer.dll.
    Regards,
    Jonathan

  • Crystal Report Viewer 2008 paging error.  Unable to process your request

    Hi everyone,
    I encountered this error today when clicking on the next page button on the Crystal Report Viewer.  I am running Crystal 2008 SP0.  When i click on show detail i get this:
    Programming Error520|/wEWPQL/uNqsCgKLovFcAtm0IoIAoScvAHAoqK76EFApyD1ugPApqWlPcMAsX1vAHAsX1198BAsCEq8AHAtuulPcMAoaMm/kHAoaMg/YCAoSGgI0OAs/lg/YCAsWelPcMArPesvYEAreG34oIAqKak5INAtzilMNAtD9h8wDApmmIoPAti0IoIApuWgI0OAubdht0DAsSe5NMPAqOak5INAqOa9/ICAr39wAOAp79l8IOApnFpvwJAo2nlP4BAsWFxAGAsHe54QMAs/Ok/EBAp7Eo3kCgvyr9gEC9POo2gkC2qGU/gEClfLUnAMCvuWnwQgCmuLjgg4Cnv3bgg8ChuPz6gMCpeOPzAMCl6zX3wECpuuLzAMC3eqToA4CvuWXgg4Czs7nhAwCveXvww0C3OrjoQ0C3eqn4wkCvuW7wQgCnv3Hgg8Cvf3b4A4Cnv2fwg4C0e7nhAwCxei3zAMCw97nhAwC6OONrwUYE9w8XzGf1oPuoIcvJLRvyIbTWg==
    I have a simple .Net page that has a dropdown control that a user can select to pass the parameter for the report.  I have a server side button that gets the report on the onclick event. The code behind is as follows:
    protected void btnReport_Click(object sender, EventArgs e)
            CrystalDecisions.CrystalReports.Engine.ReportDocument Myreport = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
            Myreport.Load(Server.MapPath("Reports/rpt_equipment_summary.rpt"));
            ConnectionInfo crLoginInfo = new ConnectionInfo();
            Database crDatabase;
            Tables crTables;
            CrystalDecisions.CrystalReports.Engine.Table crTable;
            TableLogOnInfo crTableLogOnInfo;
            crLoginInfo.ServerName = "----";
            crLoginInfo.DatabaseName = "------";
            crLoginInfo.UserID = "-----";
            crLoginInfo.Password = "------";
            //Get Table or SP information from report
            crDatabase = Myreport.Database;
            crTables = crDatabase.Tables;
            //Loop through all tables in the report and apply the
            //connection information for each table.
            for (int i = 0; i < crTables.Count; i++)
                crTable = crTables<i>;
                crTableLogOnInfo = crTable.LogOnInfo;
                crTableLogOnInfo.ConnectionInfo =
                crLoginInfo;
                crTable.ApplyLogOnInfo(crTableLogOnInfo);
            //Add Parameter
            ParameterField paramField = new ParameterField();
            ParameterDiscreteValue spValue = new ParameterDiscreteValue();
            ParameterFields ParamFields = new ParameterFields();
            paramField.Name = "@txComments";
            spValue.Value = ddlPastInvoices.SelectedValue.ToString();
            paramField.CurrentValues.Add(spValue);
            ParamFields.Add(paramField);
            CrystalReportViewer1.ParameterFieldInfo = ParamFields;
            CrystalReportViewer1.ReportSource = Myreport;
    Is there something i am missing for paging to work?
    Thanks in advance

    Sorry i forgot to include more information.
    .Net 3.5 and I can view this report fine in Crystal report designer.  I get no error message when I switch pages.  The issue happens when i view the report inside a Crystal report viewer control that i have on the page. 
    <%@ Register assembly="CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>
    I haven't tried your sample reports.  Where can i find those?  i have other reports with multiple pages so I can also try using those reports as well. 
    Thanks again,
    Pablo

Maybe you are looking for

  • Verizon Wireless keeps dropping the ball.

    Back in March 2012 I was tired of the billing issues T-Mobile had with Suncom UnPlan users and decided to start shopping for another account. My employer had a discount at all of the major Wireless Providers. I called Sprint then AT&T saving Verizon

  • How to cast a String input into Date variable?

    I am using JOptionPane.showInputDialog to ask user for a date input. This will be read in as a String. I need to pass it to a variable call date. And when I print date using JOptionPane, it should be shown as whatever the user keyed in in this format

  • How can put Arabic Language in my website?

    Hi, I am created a website in english language, i wanted to convert that website to arabic language. how can embeded arabic font in my website with CSS. because after uploading web page come some sybol instead of my text please help me

  • Billing document doesnt exsist

    When i created billing document And when I wanted to see it in display mode it is saying "Billing document doesnt exsist"please help me.

  • BBL service not shutting down from psadmin on windows

    Hi, I am trying shutdown appserver with PSADMIN utility, BBL service is not shutting down. Please find the status of Appserver as below. Prog Name Queue Name Grp Name ID RqDone Load Done Current Service--------- ---------- -------- -- ------ --------