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

Similar Messages

  • Deploying crystal reports basic for visual studio 2008 for VB6

    My application has a module in .net and other in vb6.
    I have a problem on deploying crystal reports in client machines, for module in vb6.
    The vb6 application uses crystal viewer control obtained from crystal reports basic for visual studio 2008.
    What type of deployment should I use?
    Currently, I have a setup with prerequisite "crystal reports basic for visual studio 2008".
    But I think it misses the dlls crviewer.dll and craxddrt.dll, so I put them in setup and with the register COM options, and it works, but it's not working very well.
    When I open a form that uses crystal viewer, the setup (I have created) is lunched and says that have to restart machine. Then it opens the report, but the next time I use the application it does the same thing.

    Ok, thank's for the posts, they help so much.
    So I'm going to discard vb6 and move to .NET, but... there is a problem:
    Many reports have parameters that are asked before showing the report.
    The Crystal Viewer that is used in VB6 version isn't the same used in .NET.
    The viewer of VB6 asks the parameters in the way we want, however the .NET crystal viewer ask's the parameters in way that we don't like, because we have to do next -> next -> next...
    The links above show the diferences:
    VB6 ->  http://picasaweb.google.com.br/paulo.gonc/CrystalReports#5249249283702618322
    .NET -> http://picasaweb.google.com.br/paulo.gonc/CrystalReports#5249246459437178242
    There is a way to configure Crystal Viewer, so that parameters asking form will work like the vb6 away?

  • 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]

  • Deploying Crystal Reports Basic for Visual Studio 2008

    I have Windows Forms project using Crystal Reports Basic for Visual Studio 2008
    I can't find the merge module to include in the setup project like I used to do in Visual Studio .NET 2003
    Everyone seems to say that they don't exist for that version of Crystal Reports
    After searching for a long time I found something about a package located at
    C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\CrystalReports10_5\CRRedist2008_x86.msi
    Tried it and it seems to work.
    Do I have to install this to the client computer ? Is that the only way having a "Crystal Reports Basic Runtime for Visual Studio 2008" in the program list of the client computer ?

    Hi Victor,
    We can download all the runtimes from the following link:
    [https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm]
    Try to search Business Objects Note regarding this from  [here|https://www.sdn.sap.com/irj/sdn/businessobjects-notes]
    More info regarding deployment can be found from DevLibrary:
    [https://boc.sdn.sap.com/node/8546]
    Regards,
    Shweta

  • Keycode missing in Crystal Reports Basic for Visual Studio 2008

    I just upgraded from Visual Studio 2005 Professional to Visual Studio 2008 Professional (with SP1 installed also).  Crystal Reports Basic for Visual Studio 2008 is listed as installed under the VS Help dialog, but no key code is shown.  And when I attempt to open a Crystal Report, I get a dialog saying 'Please wait while Windows configures Crystal Reports Basic', which eventually terminates with an 'Invalid Keycode' message.
    I've tried repairing the Visual Studio install, and even uninstalling and reinstalling the whole thing.  To no avail.
    Other facts: My VS 2005 version still works with its version of Crystal Reports.  I am running Vista Professional.  Looking in the registry, under HKEY_LOCAL_MACHINE | SOFTWARE | Crystal Decisions | Crystal Reports | VSNET | Keycodes | CR9 NET, I see a Type REG_SZ with a data value in the form xxxxxx-xxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxx [6 chars-7 chars-26 chars].
    Help! How do I get Crystal Reports Basic for Visual Studio 2008 to work?

    Hi Elaine,
    Thanks for your response.  I do have versions of Visual Studio 2003 and Visual Studio 2005 on my machine, and the earlier versions of Crystal Reports worked with these versions.  In addition to the registry key I cited earlier (which I now understand is a VS 2003 version), there is an entry under HKEY_LOCAL_MACHINE | SOFTWARE | Crystal Decisions | Crystal Reports | 10.2 | Crystal Reports | KeyCodes | CR Ent.  I see that you are correct, and this corresponds to my VS 2005 installation (which still works).  However, there is NO entry under HKEY_LOCAL_MACHINE | SOFTWARE | Crystal Decisions | Crystal Reports | 10.5 (the CR  Basic for Visual Studio 2008 path you indicated).  There is an entry under HKEY_LOCAL_MACHINE | SOFTWARE | Business Objects | 10.5 | Crystal Reports, but it has only keys for ChartSupportPath, CommonFiles, DisablecheckForUpdates, and Path.
    The Windows\assembly folder has 25 files that are CrystalDecisions.xxx, version 10.5.3700.0.  This is consistent with my seeing 'Crystal Reports' listed as installed in VS 2008 Help.  But no KeyCode!
    I tried a complete uninstall and reinstall of VS 2008, without luck.  I can't clean my system of earlier verions of Crystal Reports, because I am still supporting a body of work that I did under VS 2005, and I can't convert all this stuff to 2008 -- at least until I have a fully working VS 2008 suite.  After this experience, I fear that if I were to uninstall an earlier version, i might never get it back!
    I've spend quite a few hours on this with no luck, so any help would be enormously appreciated.

  • Using Crystal Reports XI with Visual studio 2008 C#

    Hi,
    I am trying to add some reports which have been created to a C# web application using the Crystal Reports web viewer in Visual Studio 2008. The reports use SQL authentication instead of integrated authentication.
    Everytime the page with the report viewer is loaded, im prompted for my logon details. I dont want the end users to be doing this. How do i integrate the logon details into my application so that it doesnt keep prompting using C#?? Also i have parameters which produce a drop down box of available values...this does not work within the web application but does in Crystal Reports.
    Any help would be good with examples in C# please. Ideally i would like to hold the connection info in the web.config however i dont know if this is possible.
    Thanks
    Vish

    Hi Vishal,
    Here's a link to the platforms for SP5:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/907e6412-a7ac-2b10-23a8-f837fcc78a37
    If the link doesn't work then go to this one: Articles
    And select the the CR version and look for the specific patch level. If you don't have patches installed I would suggest downloading and installing to get up to SP5.
    It does not indicate .NET 2008 so it's not been tested, it may work but if you run into any issues we don't have an escalation path to get it fixed.
    Thank you
    Don

  • Crystal Reports Bundeled With Visual Studio 2008

    We are currently using the version of Crystal Reports that comes with Visual Studio 2008.  Many reports have 5-10 sub reports.
    We are running a ASP.NET application and this application passes to the reports a XSD File as the data source. It can take up to 5 minutes sometimes for a report to process.
    A couple of questions.
    1. Is there a concurrent user limit (I have read 3 or 5)
    2. Do the reports get queued up if more than 3 users are running a report?
    3. If we have sub reports does each report count as a "user" for example if we have one user on the machine and they run the report that has 10 sub reports, would that be hitting a user limit?
    3. Would upgrading to the 2008 version help us at all?
    Any other recommendations?
    Thank in advance!

    1. Is there a concurrent user limit (I have read 3 or 5)
    concurrent user limit is 3
    2. Do the reports get queued up if more than 3 users are running a report?
    + Yes. If you go to the Event viewer, you should be bale to see messages along the lines of; license not found, waiting x seconds+
    3. If we have sub reports does each report count as a "user" for example if we have one user on the machine and they run the report that has 10 sub reports, would that be hitting a user limit?
    + There are two distinct counts. Users, and print jobs. The print engine, can process 3 concurrent users. A print job, consists not only of the report, but also it's subreports. A page through is a print job. A search through the report is a print job. Print job limit is set in the registry and by default it is set to 70. The upshot of this is; if you have one report and one subreport in the detail section and the detail section has 100 records, you will run 1001 print jobs.
    4. Would upgrading to the 2008 version help us at all?
    Probably not. The same structure exists in CR 2008. Now, you say that you pass an XSD file to the report. Are you actually passing and XSD or a Dataset?_
    Finally, remember that if you have 10 subreport in a report, you are running 11 print jobs right there. If one or more of those subreports are in the detail section, the number of print jobs increases accordingly.
    For more information see the article [Crystal Reports Maximum Report Processing Jobs Limit  v2.doc|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f053713e-3e3d-2c10-2a81-f79259e54023]
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Edited by: Ludek Uher on Dec 16, 2009 10:06 AM

  • Crystal Reports 10 and Visual Studio 2008

    Hi All
    I've got an application that I recieved from my cleint. This is running Visual Studio 2008 and Crystal Reports 10 backend being Oracle 10.2
    However, when I try to run the applincation and open any report it pops up an error "crdb_oracle.dll" not found.
    I have searched this on the internet and found that there were many suggestions there. I've tried all the suggestions like reinstalling the Oracle client, Re Installing Crystal etc.,
    But the error remained as is.
    When i try to do a regsvr32 on this dll it fails. Am really not sure why this is happening
    Any help from any one out there is highly appreciated.
    Pavan
    UPDATE:
    I've verified the versions though. They are workign fine at the customer place.
    Here is what they have done.They have got Oracle, VS 2008 and Crystal Reports 10. They got the reports embedded into .NET environment and are able to view the reports.
    But when we try to execute the same code, it pops up the error, "Crdb_oracle.dll" could not be loaded.
    Wanted some support on this.
    Additionally, could you suggest on what needs to be done? Do we need to upgrade crystsal to crystal 2008? Will this work without any errors on the execution side (I'm sure that the customer of mine will not be happy or willing to upgrade but atleast if I get a confiramtion from you I can atleast quote this to the customer) and without any extra redesiging of the reports or any other work on the reports
    Pavan Kumar
    Edited by: pavan kumar on Jul 30, 2008 4:01 PM

    Hi, Pavan;
    Likely the problem is that the report was created with a different version of Crystal Reports than the one that ships with VS.NET 2008 (Which is Crystal Reports Basic for VS.NET 2008 - version 10.5). If the report was created with a full version of Crystal Reports, then it would have access to our native Oracle driver, the dll that is giving you the issue.
    The full version of Crystal Reports would install that dll, but the .NET version would not. In order to distribute that DLL, yes, the client would need to develop with the full version of Crystal Reports, in this case Crystal Reports 2008.
    Regards,
    Jonathan

  • Crystal Report 10 in Visual Studio 2008

    Hello,
    Is there a formal process to make Visual Studio 2008 work with Crystal Report version 10? Are there specific files that need to be installed? Any problems to watch for. I currently tried to port Visual Studio 2003 solution that had working Crystal Reports 10 code and I have received some errors relating to ReportDocument (but there could be other). Anyway, maybe there are some basics I am missing.
    Thanks.

    When I double click on the report (.rpt) file, I am getting Microsoft Windows dialog with the following message:
          Microsoft Visual Studio 2008 has stopped working.  
          Windows can try to restart the program.
          --> Restart the program
         --> Debug the Program
    When I click Debug the Program, I see following:
       Unhandled exception at 0x18205950 in devenv.exe: 0xC0000005: Access violation.
       Top 3 Call Stack lines at this point are:
       18205950()
       CRDesigner.dll!3e043d7a()
       [Frames below may be incorrect and/or missing, no symbols loaded for CRDesigner.dll]
       When I click Break in debug window I see:
       No symbols are loaded for any call stack frame. The source code cannot be displayed."
       Windows has triggered a breakpoint in devenv.exe.
       This may be due to a corruption of the heap, which indicates a bug in devenv.exe or any of the DLLs it has loaded.
    I do not see Crystal Reports 10.xx under reference list. How do I go back to the version of reports originally created in? If I am not able to work the Crystal Reports 2008, I want to go back to 10.xx and drop the idea of considering upgrade to Crystal Reports 2008.
    Any help is appreciated. Thanks.

  • Print crystal report viewer in visual studio 2005

    please help me.i installed visual studio2005 with web crystal report viewer.i create web site and installed that on windows server 2003 sp1 and iis7. user in etwork connect to server on remote desktop and execute web site. in my project user print resume . for doing that: i used stored procedure for getting information and pass to report document and it shows in crystal report viewer. for doing that i used printtoprinter(1,false,1,1)
    it shows correct but it shows this error :operation completed successfully and can not print. all printers are shared and all of them are hp 1018.
    this program print correct on my standalone system with printer hp deskjet 1220c.
    please help me.i spent a lot of time and i could not solve that.please please please help me.

    Please re-post if this is still an issue to the .NET Development - Crystal Reports Forum or purchase a case and have a dedicated support engineer work with you directly

  • Crystal Reports Basic for Visual Studio 2008 - Export to PDF in arabic font space issue

    When exporting the crystal report having Arabic contents to PDF , space characters are replaced with " . Please find the attachment . Is there any way to sort out this issue??

    Try searching on "RTL"
    Here's a few posts that may help
    http://scn.sap.com/thread/909635
    http://scn.sap.com/thread/3444105
    And this KBA - 1322752 - Does Crystal Reports support Arabic characters?
    And this one is the ultimate answer:
    1926379 - SAP BusinessObjects BI Right-to-Left (RTL) Support
    CR for VS 2008 is CR Basic, it may not be able to. Upgrade to CR for VS 2010+.
    Don

  • How to use Crystal report viewer in a portlet based web application

    I am using JRC to view crystal reports in porlet based web application. Following is the code in JSP
    <%@ page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer,
    com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,
    com.crystaldecisions.sdk.occa.report.application.ReportClientDocument,
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase" %>
    <portlet:defineObjects />
    <%
         // This sample code calls methods from the CRJavaHelper class, which
         // contains examples of how to use the BusinessObjects APIs. You are free to
         // modify and distribute the source code contained in the CRJavaHelper class.
         try {
              String reportName = "ProactiveEventsSummaryData.rpt";
              ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
              if (clientDoc == null) {
                   // Report can be opened from the relative location specified in the CRConfig.xml, or the report location
                   // tag can be removed to open the reports as Java resources or using an absolute path
                   // (absolute path not recommended for Web applications).
                   clientDoc = new ReportClientDocument();
                   //clientDoc.setReportAppServer(ReportClientDocument.inprocConnectionString);
                                  clientDoc.setReportAppServer("inproc:jrc");
                   // Open report
                   clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
                   // Store the report document in session
                   session.setAttribute(reportName, clientDoc);
              // ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET **************** 
                   // Create the CrystalReportViewer object
                   CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
                   String reportSourceSessionKey = reportName+"ReportSource";
                   Object reportSource = session.getAttribute(reportSourceSessionKey);
                   if (reportSource == null)
                        reportSource = clientDoc.getReportSource();
                        session.setAttribute(reportSourceSessionKey, reportSource);
                   //     set the reportsource property of the viewer
                   crystalReportPageViewer.setReportSource(reportSource);
                   // Apply the viewer preference attributes
                   // Process the report
                   crystalReportPageViewer.processHttpRequest(request, response, application, null);
              // ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************          
         } catch (ReportSDKExceptionBase e) {
             out.println(e);
    %>
    With this code , report gets displayed in the portlet but none of the actions on thre report like next page click , search button , opening subreport , clicking on drill-downs are working . The error in the explorer console is as shown below
    Error: CrystalViewerCrystalEvent is not defined
    javascript:CrystalViewerCrystalEvent('CrystalViewer',%20'tb=next')
    PageSource of the web page shows the CrystalViewerCrystalEvent javascript function defined but for somereason its not recognized by the portlet. Has anyone worked on displaying crystalreports in a portlet ?

    Code attached
    <%@ page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer,
    com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,
    com.crystaldecisions.sdk.occa.report.application.ReportClientDocument,
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase" %>
    <portlet:defineObjects />
    <%
         // This sample code calls methods from the CRJavaHelper class, which
         // contains examples of how to use the BusinessObjects APIs. You are free to
         // modify and distribute the source code contained in the CRJavaHelper class.
         try {
              String reportName = "ProactiveEventsSummaryData.rpt";
              ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
              if (clientDoc == null) {
                   // Report can be opened from the relative location specified in the CRConfig.xml, or the report location
                   // tag can be removed to open the reports as Java resources or using an absolute path
                   // (absolute path not recommended for Web applications).
                   clientDoc = new ReportClientDocument();
                   //clientDoc.setReportAppServer(ReportClientDocument.inprocConnectionString);
                                  clientDoc.setReportAppServer("inproc:jrc");
                   // Open report
                   clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
                   // Store the report document in session
                   session.setAttribute(reportName, clientDoc);
              // ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET **************** 
                   // Create the CrystalReportViewer object
                   CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
                   String reportSourceSessionKey = reportName+"ReportSource";
                   Object reportSource = session.getAttribute(reportSourceSessionKey);
                   if (reportSource == null)
                        reportSource = clientDoc.getReportSource();
                        session.setAttribute(reportSourceSessionKey, reportSource);
                   //     set the reportsource property of the viewer
                   crystalReportPageViewer.setReportSource(reportSource);
                   // Apply the viewer preference attributes
                   // Process the report
                   crystalReportPageViewer.processHttpRequest(request, response, application, null);
              // ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************          
         } catch (ReportSDKExceptionBase e) {
             out.println(e);
    %>
    Edited by: teethoma on Nov 30, 2009 10:06 AM

  • 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

Maybe you are looking for