Crystal reports on a server without C drive

Hey all
I want to know whether I can run an application built in .Net ; having crystal reports as reporting tool, on a server which does not have C: drive only E: Drive. I ran into the issue of
specified path cannot found
when try to run on server. I have installed all the required support file and it works well on a server with C: drive. The operating system used is Windows 2003 server-32bit.
Please let me know how to resolve this.
Thanks
Sysadmin

There is also a number of other registry entries you will have to look at. As you do not specify version of CR used, I assume this is CR 12.x. If not, you will have to adjust to your version of CR:
HKLM\software\Business Objects\Suite 12.0\Crystal Reports
ChartSupportPath
CommonFiles
path
You may also need to look at:
HKLM\software\Business Objects\Suite 12.0\
BIDIR
CEShared
CommonFiles
SuiteInstallDir
A utility such as process Monitor will be good to use to find out where things are failing. Process Monitor can be downloaded from here:
http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx
(Filter for your process as ProcMon tends to make very large log files)
Ludek

Similar Messages

  • Distribute Crystal Report from BOE Server

    Hi,
    =========
    Installation on Client machine:
    Crystal Report 2008 V1 SP1 and SP2
    SAP Integration Kits XI 3.1 SP2
    Installation on BOE Server:
    BOE XI 3.1 SP2
    SAP Integration Kits XI 3.1 SP2
    Installation on BW:
    SAP BW 7
    ========
    Created crystal report on top of SAP BW Query, and save/publish the Crystal Report into BOE Server directly via Crystal Report ->File ->Save as (I understand that we can also save the Crystal Report into BW role, then publish the Crystal Report into BOE Server via the BW Publish, but we're not using the BW Publish option here).
    Now user can logon to BOE InfoView and execute/display the Crystal Report, no problem.
    My question is in BOE Server, is there any functionality that allow us to execute the Crystal Report and send it to the user automatically via email? Just like the BEx Broadcaster functionality in SAP BW 7.
    If yes, how can I do it?
    Any help is appreciated.
    L

    Seb,
    I have a look at the document: http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_bip_admin_en.pdf
    I can see where to schedule the Crystal Reprot to run in the background and send out via email option.
    However, I dont see how the report can be sent out from BOE server. Is there any setting need to be done so that BOE Server can send out the crystal report?
    Please help, thank you.

  • Dynamic Crystal Report with Windows Server 2008

    I am creating a report through code with Crystal report on Windows Server 2008 R2. When I am executing the following command:
    CRAXDRT.Report.Database.AddADOCommand
    This is generating an error which is given below:
    Error description: Logon failed
    Details: [Database Vendor Code: -205]
    But its working fine with Windows Server 2003.
    Private Sub AddRptDatabase(a_CRReport As CRAXDRT.Report, a_sStartDT As String, _
                               a_sEndDT As String, a_sDept As String, a_sStatus As String)
        Dim cnnRpt As ADODB.Connection
        Dim cmRpt As ADODB.Command
        Dim sSQL As String
        Dim sWhere As String
        Dim sTemp As String
        Dim sTemp1 As String
    sSQL = sSQL & sWhere & " Order by AdminData.RONumber"
      Set cnnRpt = New ADODB.Connection
        cnnRpt.open g_objBA.LocalConnectionString
    Set cmRpt = New ADODB.Command
        cmRpt.ActiveConnection = cnnRpt
        cmRpt.CommandType = adCmdText
        cmRpt.CommandText = sSQL
        'Create data set
        a_CRReport.Database.AddADOCommand cnnRpt, cmRpt
      Exit Sub
    Please suggest some solution.

    Moved to Legacy SDK forum.
    CR XI R2 Service Pack 6 and Fix Pack 6.4 should work on Windows 2008. CR 2008 SP 2 and above also. Older version, no support for it.
    CR is 32 bit, make sure the 32 bit client is installed and being used.
    Thank you
    Don

  • SAP Crystal Report using SQL Server Authentication and Windows Authenticati

    I'm a SAP Crystal Report, version for Visual Studio 2010 Beginner
    my ingredients are
    1.windows 7 ultimate service pack1
    2.sql server 2008 standard edition
    3.visual studio 2010 pro
    4.SAP Crystal Report, version for visual studio.net
    I was created a report named customersByCity.rpt using OLE DB (ADO) -> Microsoft OLE DB Provider for SQL Server -> I'm supply Server, User ID, Password and Database. I assume me using SQL Server Authentication for my report
    Then, my ASP.NET files as following
    //ASP.NET
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="viewCustomersByCity.aspx.cs" Inherits="viewCustomersByCity" %>
    <%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
        Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div><asp:Label ID="lblMsg" runat="server" BackColor="Yellow" ForeColor="Black"></asp:Label>
     <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true"></CR:CrystalReportViewer>
        </div>
        </form>
    </body>
    </html>
    //code-behind
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Collections;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    public partial class viewCustomersByCity : System.Web.UI.Page
        private const string PARAMETER_FIELD_NAME = "city";   
        private ReportDocument customersByCityReport;
        private void ConfigureCrystalReports()
            ConnectionInfo connectionInfo = new ConnectionInfo();
            connectionInfo.ServerName = @"WKM1925-PCWKM1925";
            connectionInfo.DatabaseName = "Northwind";
            connectionInfo.UserID = "sa";
            connectionInfo.Password = "sysadmin25";
            SetDBLogonForReport(connectionInfo);
        private void SetDBLogonForReport(ConnectionInfo connectionInfo)
            TableLogOnInfos tableLogOnInfos = CrystalReportViewer1.LogOnInfo;
            foreach (TableLogOnInfo tableLogOnInfo in tableLogOnInfos)
                tableLogOnInfo.ConnectionInfo = connectionInfo;
        private void SetCurrentValuesForParameterField(ReportDocument reportDocument, ArrayList arrayList)
            ParameterValues currentParameterValues = new ParameterValues();
            foreach (object submittedValue in arrayList)
                ParameterDiscreteValue parameterDiscreteValue = new ParameterDiscreteValue();
                parameterDiscreteValue.Value = submittedValue.ToString();
                currentParameterValues.Add(parameterDiscreteValue);
            ParameterFieldDefinitions parameterFieldDefinitions = reportDocument.DataDefinition.ParameterFields;
            ParameterFieldDefinition parameterFieldDefinition = parameterFieldDefinitions[PARAMETER_FIELD_NAME];
            parameterFieldDefinition.ApplyCurrentValues(currentParameterValues);
        protected void Page_Load(object sender, EventArgs e)
            customersByCityReport = new ReportDocument();
            string reportPath = Server.MapPath("customersByCity.rpt");
            customersByCityReport.Load(reportPath);
            ConfigureCrystalReports();
            ArrayList arrayList = new ArrayList();
            arrayList.Add("paris");
            arrayList.Add("Madrid");
            arrayList.Add("Marseille");
            arrayList.Add("Buenos Aires");
            arrayList.Add("Sao Paulo");
            ParameterFields parameterFields = CrystalReportViewer1.ParameterFieldInfo;
            SetCurrentValuesForParameterField(customersByCityReport, arrayList);
            CrystalReportViewer1.ReportSource = customersByCityReport;
    1st scenario
    When in a runtime, it's keep appear a dialog box. This dialog box ask me to suppy Server, User ID, Password and Database. Once all information is supplied, my report display the data as expected
    2nd scenario
    I change my report using OLE DB (ADO) -> Microsoft OLE DB Provider for SQL Server -> checked on Integrated Security. I just choose Server, and Database. I assume me using Windows Authentication
    When in a runtime, there's no dialog box as above. My report display the data as expected. really cool
    Look's like, when report using SQL Server Authentication there's some problem. but, when report using Windows Authentication, it's fine.
    I'm looking for comment. Please help me

    Hello,
    MS SQL Server 2008 requires you to install the MS Client Tools for 2008.
    Once install then update all of your reports to use the SQL Native 10 as the OLE DB driver.
    The try again, if it still fails search, lots of sample log on code in this forum.
    Don

  • Error With Crystal Reports On Windows Server 2012

    Hello,
    I have a VB.NET exe application created in Visual Studio 2010 that prints a crystal report directly to the printer.  On Windows Server 2008 it worked fine but it does not work on Windows Server 2012.  The report was originally created in Crystal Reports 2011.  I have read elsewhere that in order to run a Crystal Report on WS 2012 that it needs to be created using Crystal Reports for Visual Studio.  So I installed the developer version of Crystal Reports for Visual Studio (v. 13.0.8.1216).  I opened the report in Visual Studio and saved it.  I then installed the CRRuntime_64bit_13_0_8.msi on the WS 2012.  My vb.net exe has the CrystalDecisions assemblies shown below.  When I try to run the exe I get the error below.  Does anyone have any idea as to what I am doing wrong?  Thank you for your input.
    Unhandled Exception: System.TypeInitializationException: The type initializer for 'PrintWorkOrderAndDrawing.PrintWorkOrderAndDrawing' threw an exception. ---> System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.En
    gine.ReportDocument' threw an exception. ---> CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: An error has occurred while attempting to load the Crystal Reports runtime. Either the Crystal Reports registry key permissions are insufficient,
    or the Crystal Reports runtime is not installed correctly. Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required.  Please go to http://
    www.businessobjects.com/support for more information.
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.CheckForCrystalReportsRuntime()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()
       --- End of inner exception stack trace ---
       at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()

    Hi Thomas
    First the info re.;
    I have read elsewhere that in order to run a Crystal Report on WS 2012 that it needs to be created using Crystal Reports for Visual Studio.
    is incorrect. CRVS will run all reports down to CR 9 without issues. And even reports created in older versions will, for the most part, work just fine.
    The error is rather strange as it normally indicates that an incorrect runtime has been installed. However in your case as you are using CR 13.0.8.1216 and  the 64bit_13_0_8.msi that does not look to be the case. I would like you to double check the CR references in the project. Say, crystaldecisions.crystalreports.engine. It should be version 13.0.2000.0.
    If that is confirmed, then we may be at the permissions mentioned in the error. And I'd use Process Monitor for that. Filter ProcMon for the app exe and run the app. Look at the logs for "Access denied" messages. In the log, look for CrystalDecisions.CrystalReports.Engine, see what the exe is doing with it. Where is it trying to load it from? Etc., etc.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Creating OLAP report with Crystal Reports and SQL Server Analysis Services 2005

    Post Author: orahc_mao
    CA Forum: Data Connectivity and SQL
    Hi!
    I am currently using the trial version of the Crystal Reports XI and I wanted to do an OLAP report. The problem is I cannot select a cube using "OLAP Connection Browser" (the popup window). I already selected Microsoft OLE DB Provider and entered the server name but still can't connect.
    I don't think the problem is with SQL Server Analysis Services (2005) since Microsoft Excel - Import Data can detect the server as well as the cube I have created.
    I also tried the "Database Expert" of Crystal Reports, created an OLE DB (ADO) connection with "OLE DB Provider for OLAP Services 8.0" driver, entered the server name, checked the integrated security and then I can readily select the database created at SQL Server Analysis Services. However, I still need the OLAP grid create the report but it goes back to my original problem... selecting a cube.
    I hope somebody would help me with this issue.
    Thanks a lot!
    orahc_mao

    Hello,
    I don't recognize those variables as CR ones so it's likely something the original developer is setting in code.
    You'll have to discuss with that person.
    If your have SDK issues then post your question to one of the .NET or Java SDK forums.
    Thank you
    Don

  • Can you use Crystal Reports on a webpage without having to use session?

    In all of the examples I have seen it shows using the session to store the reportdocument object between postbacks.  That means that clicking the page buttons fires a postback.  Other reporting tools such as PDF, ActiveReports, and others do not have to do this.  Is this a limitation of Crystal and a COM backend or is it just a common sample and not the only option? 
    How do you get paging to work without having to use session and do postbacks?  AJAX, Javascript, converting to a PDF, etc. would all be possible ways to not require a postback.
    My problem is that I am using SQL Server to store the session and the reportdocument object is not serializeable.  I have been told I can buy Crystal Report Server for $5000 and this will work.  But in reality I can buy other reporting tool for $500 or convert them to SQL Reporting and it will work as well.  So I am trying to be reasonable and figure out what I need to do.  That seems like a bit much to need a whole server application to serve the reports just to turn on paging for a couple of simple reports.  I'm hoping there is a way to not use session to get paging to work. 
    I have consider pushing the report into viewstate and not session.  But I would rather not push it into either.  Is this a valid option? 
    What is the typical way to handle this sort of thing?  Do you really have to push it into session to get the CrystalReportViewer control to page on an ASPX page.  What other options are there?   
    Any suggestions, thoughts, or ideas would be very much appreciated.  This is causing enough of a problem where the company is asking me to look at alternatives if we cannot solve this. 
    Best regards,
    Jon

    Acrobat doesnu2019t cause postbacks when paging because the acrobat reader installed locally, so its viewing is in a client-side control.  I imagine the same thing is the case for ActiveReports (some sort of client-side activex control installed). 
    If the winform viewer was used on in your web page, then you wouldnu2019t get postbacks either, but then you'd need Crystal Reports runtime on the client to view in that control. And placing a winviewer in a web page give me shivers...
    So, to avoid  using session, recreate the reportdocument and re-load the report on postbacks.
    As Surabh mentioned, you can serialize the report but you will have to use teh InProc RAS. There is an issue thought; you start to get load errors and otehr errors after viewing 3 reports. I belive this has been reported to R&D for a fix  comment, but I do not have and ETA at this time. The code for the InProc RAS SDK would be as follows:
               If Not IsPostBack Then
                Dim rpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument
                Dim boReportClientDocument As CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument
                '           rpt.ReportAppServer = "Inproc:multithreaded"
                rpt.Load("c:inetpubwwwroot     estSerializeInprocRASEmployee Profile.rpt",
               OpenReportMethod.OpenReportByTempCopy)
                boReportClientDocument = rpt.ReportClientDocument
                Dim x As String = boReportClientDocument.DataDefController.Database.Tables(0).Name
                '     boReportClientDocument.DatabaseController.logon("sa", "admin")
                Dim convertUtil As New CrystalDecisions.ReportAppServer.Utilities.Conversion()
                Dim serializedDoc As String
                serializedDoc = convertUtil.ToString(rpt.ReportClientDocument)
                Session.Add("SerializedDoc", serializedDoc)
                'ViewState.Add("SerializedDoc", serializedDoc)
                Response.Write("The document has been serialized.")
                CrystalReportViewer1.ReportSource = boReportClientDocument.ReportSource
            Else
                Label1.Visible = False
                Button1.Visible = False
                Dim x As String
                x = ViewState("SerializedDoc").ToString()
                Dim deSerializedDoc As ISCDReportClientDocument
                Dim convertUtil As New Conversion
                deSerializedDoc = convertUtil.ToReportClientDocument(Session("SerializedDoc").ToString())
                'deSerializedDoc = convertUtil.ToReportClientDocument(ViewState("SerializedDoc").ToString())
                CrystalReportViewer1.ReportSource = deSerializedDoc
                Response.Write("You are viewing a de-Serialized report" & "<BR>")
                Response.Write(ViewState("SerializedDoc").ToString())
            End If
    [1542991 - How to serialize the ReportClientDocument using the RAS .NET SDK?|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533343332333933393331%7D.do]
    - Ludek
    Edited by: Ludek Uher on Dec 9, 2011 11:16 AM

  • Deploying Crystal Reports to web server.

    I currently have developing an webapplication solution with Crystal Reports 2008 and VS2005.
    I installed the Runtime libraries on the production server from the following url:
    http://support.businessobjects.com/downloads/runtime.asp
    I noticed that the installer does not work, it assumes your default website folder is hardcoded to c:\inetpub\wwwrooot
    My installation it is on the d: drive with the same path.
    I copied the c:\inetpub\wwwroot\aspnet_client\system_web\2_0_50727\crystalreportviewers12 to c:\inetpub\wwwroot\aspnet_client\system_web\2_0_50727\crystalreportviewers12.
    The reports seemed to run.
    However, more often than nought, when exporting or printing I receive the following error message:
    Failed to export using the options you specified. Please check your options and try again.

    The load may be light, but the number of report the app potentially runs is not. Are you destroying the report objects once you get done with them? A code something like htis should be implemented:
    Dim report as New ReportDocument
    Protected Sub Page_load()
    End Sub
    Private Page_Unload()
    report.close()
    report.dispose()
    GC.Collect
    End Sub
    //C# (on form open):
    private void WebForm1_Init(object sender, System.EventArgs e)
        if (boReportDocument != null)
            boReportDocument.Close();
            boReportDocument.Dispose();
            GC.Collect();
    // C# on form close
    private void Page_Unload(object sender, EventArgs e)
            if (boReportDocument != null)
            { boReportDocument.Close();
                boReportDocument.Dispose();
                GC.Collect();
    Ludek

  • Using Crystal Reports on a webserver without installation

    Hello,
    I'm sure this has been asked before, but I cannot seem to find it.
    Is it possible in any way to use Crystal Reports.NET (VS2008) on a production server without installing the merge modules, runtimes, etc for an ASP.NET 2.0 web app?
    I'm moving hosts, and my new host uses a shared server architecture, and I cannot install any third party apps on it. I'd like to be able to continue to use the current functionality in my web app, but it requires CR.

    Hello,
    There is no supported method of using Crystal Reports without deploying the appropriate runtime files. Since Crystal Reports is not fully managed by the .NET framework this additional step is required.
    Sincerely,
    Dan Kelleher

  • Crystal Reports and SQL Server 2000

    Hi all,
    I read the document "Troubleshooting Database Connectivity for Crystal Reports" and tried all SQL Server jdbc drivers (1.2, 2.0,2.0.1, 3) and I could not find  a working driver with crystal reports at all.
    http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/d05b3bb7-0f28-2c10-4ea3-84dbdc4e414e?quicklink=index&overridelayout=true
    I'm also not sure if there is a working one?
    Are there anybody who suggest me a jdbc driver for SQL server which also supports Crystal Reports?
    The connection is ok, but the problem is I don't see tables and other staff under the connection...According to the document above, this means the driver does not support crystal reports...
    Product versions which involve this issue as follows:
    SQL Server 2000
    JRE 5.0
    Crystal Reports 11.8 (Comes with IBM RAD 7.5 IDE)
    Platform : IBM Portal 6.1.0.2 ( IBM Websphere App. Server 6.1)
    Any help would deeply be appreciated.
    I'm totaly exhausted. I hope someone help me...
    Best regards,
    E.

    I gave up this issue since I learnt that Crystal Java Reporting Component does not support portlet.  I also tried with SQL 2008 and I also updated my IDE for updating Crystal plug-in in it.  It was finally working at portal but the pager buttons and other staff in the viewer were not working since it  still does not support portlet.
    Thanks a lot.
    E.

  • Can I create a dynamic report in the server without using a report template

    Hi,
    My company just bought a Crystal Report Server XI and it didn't have a report designer.
    I can't start creating report without the designer.
    The question is can  I generate a dynamic report at runtime (on the crystal report server ) without using report template?
    My project requirement is to use a crystal report server to manage the reports.
    Some client web application will just access this report server.
    I  hope the experts can provide me some guidance.
    regards,
    Rulix
    Edited by: Rulix Batistil on Nov 3, 2008 8:08 AM

    Hi Rulix,
    The latest version of CR Server is 2008. Therefore I'm assuming you are using CR Server 2008.
    New in CR 2008 is the .NET report modification software development kit (SDK). The report application server (RAS) SDK is now available for users of Crystal Reports .NET API without the use of a RAS server. Report modification such as changing, adding, or removing database providers, or adding, removing, or creating report objects, parameters, formulas, and sections can be achieved by accessing the RAS SDK through the Crystal Reports .NET SDK.
    Java developers however receive the JRC and Java SDK documentation through the free Crystal Reports for Eclipse download. This product will be updated on a separate schedule from Crystal Reports.
    Further Information and samples are available in our [Developer Library|https://www.sdn.sap.com/irj/sdn/businessobjects?rid=/webcontent/uuid/5001d5de-f867-2b10-00bf-8d27683c85a0]
    Kind regards,
    Tim

  • Crystal Reports XI R2 Server problem when trying to load groups from LDAP

    Hi,
    I'm using Crystal Reports XI R2 SP4 on RedHat Linux. My users are being authorized through LDAP (OID). My problem is that after removing all groups (right now no groups/users are visible in CMC) in CMC Authentication tool and then trying to add them again I'm receiving following error:
    "LDAP: Failed to commit objects to server : Duplicate object name in the same folder."
    I've checked connectivity to LDAP server and it's ok. Could it be connected to CMS problems/corruption? Any help/suggestions would be appreciated.
    Regards,
    Marcin

    The only personal folders visible from under Admin panel are for users Administrator and Guest. I've tried to query CMS tables but these store entries not in plain text so I cannot identify entries connected to personal folders. I have also tried to do this via Query Repository tool but all returned entries were ok.
    I have also noticed that when trying to load group from LDAP after it returns error "LDAP: Failed to commit objects to server : Duplicate object name in the same folder." entry for this group is created in CMS table. Also this group is then visible in admin Groups panel. No users are created with the group and when I'm trying to list users belonging to added group it returns "internal secLDAP security plug-in error" but without any other suggestion what went wrong.

  • How do i signon into crystal report XI with server signon Account

    I have a signon account to connect to SQL Server 2005, but i cannot use the same signon account to signon into crystal report XI. Is there any special permissions that i need to set? But if i use the sa account for sql sever am able to signon without any error. What could be the problem.

    Thank you for your fast response, i really appreciate that.
    Am able to signon into the server in SQL 2005 with my signon credentials but cannot signon into the same server when am using crystal report. And for the connectivity, we are using OLE DB and not ODBC. Also, we've been using the sa account for a while now, it just last week that management decided we signon into crystal with our own signon credentials, which isn't working.
    Regards
    Henry Obeng

  • Print Crystal Report directly from C# without using Report Viewer

    Hello All,
    I need to print a crystal report directly to the printer without using ReportViewer in C#. I've a CrystalReport2(belowCode) which requires a query (Select * from JobHeader where JobNumber='J012345') to display all the data. I'm stuck with database connection
    and putting all the data to DataAdapter in C# (Below Code). I also have 8 subreports in my CrystalReport2. Can somebody please give me hand on this? I'm struggling with it. Thanks.
    Regards
    using CrystalDecisions.CrystalReports.Engine;
    using System;
    using System.Drawing;
    using System.Collections;
    using System.ComponentModel;
    using System.Windows.Forms;
    using System.Data;
    using System.Data.SqlClient;
    namespace csharp_win_printtoprinter
    /// <summary>
    /// Summary description for Form1
    /// </summary>
    public class Form1 : System.Windows.Forms.Form
    //CR Variables
    ReportDocument crReportDocument;
    private System.Windows.Forms.Button button1;
    private System.Windows.Forms.PrintDialog printDialog1;
    private System.Windows.Forms.Button button2;
    private System.Drawing.Printing.PrintDocument printDocument1;
    private CrystalDecisions.Windows.Forms.CrystalReportViewer crystalReportViewer1;
    private CrystalReport1 CrystalReport11;
    private Chart Chart1;
    /// <summary>
    /// Required designer variable
    /// </summary>
    private System.ComponentModel.Container components = null;
    public Form1()
    // Required for Windows Form Designer support
    InitializeComponent();
    // TODO: Add any constructor code after InitializeComponent call
    /// <summary>
    /// Clean up any resources being used
    /// </summary>
    protected override void Dispose( bool disposing )
    if( disposing )
    if (components != null)
    components.Dispose();
    base.Dispose( disposing );
    #region Windows Form Designer generated code
    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor
    /// </summary>
    private void InitializeComponent()
    this.button1 = new System.Windows.Forms.Button();
    this.printDialog1 = new System.Windows.Forms.PrintDialog();
    this.button2 = new System.Windows.Forms.Button();
    this.printDocument1 = new System.Drawing.Printing.PrintDocument();
    this.crystalReportViewer1 = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
    this.Chart1 = new csharp_win_printtoprinter.Chart();
    this.CrystalReport11 = new csharp_win_printtoprinter.CrystalReport1();
    this.SuspendLayout();
    // button1
    this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
    this.button1.Location = new System.Drawing.Point(32, 56);
    this.button1.Name = "button1";
    this.button1.Size = new System.Drawing.Size(160, 104);
    this.button1.TabIndex = 0;
    this.button1.Text = "Print Report No Choose Printer";
    this.button1.Click += new System.EventHandler(this.button1_Click);
    // button2
    this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
    this.button2.Location = new System.Drawing.Point(272, 56);
    this.button2.Name = "button2";
    this.button2.Size = new System.Drawing.Size(160, 104);
    this.button2.TabIndex = 1;
    this.button2.Text = "Choose Printer";
    this.button2.Click += new System.EventHandler(this.button2_Click);
    // crystalReportViewer1
    this.crystalReportViewer1.ActiveViewIndex = 0;
    this.crystalReportViewer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
    this.crystalReportViewer1.Cursor = System.Windows.Forms.Cursors.Default;
    this.crystalReportViewer1.Location = new System.Drawing.Point(47, 188);
    this.crystalReportViewer1.Name = "crystalReportViewer1";
    this.crystalReportViewer1.ReportSource = this.CrystalReport11;
    this.crystalReportViewer1.Size = new System.Drawing.Size(903, 296);
    this.crystalReportViewer1.TabIndex = 2;
    // Form1
    this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
    this.ClientSize = new System.Drawing.Size(1164, 505);
    this.Controls.Add(this.crystalReportViewer1);
    this.Controls.Add(this.button2);
    this.Controls.Add(this.button1);
    this.Name = "Form1";
    this.Text = "Form1";
    this.Load += new System.EventHandler(this.Form1_Load);
    this.ResumeLayout(false);
    #endregion
    /// <summary>
    /// The main entry point for the application
    /// </summary>
    [STAThread]
    static void Main()
    Application.Run(new Form1());
    private void button1_Click(object sender, System.EventArgs e)
    crReportDocument = new ReportDocument();
    //Create an instance of a report
    crReportDocument = new CrystalReport2();
    //Use error handling in case an error occurs
    try
    //Set the printer name to print the report to. By default the sample
    //report does not have a defult printer specified. This will tell the
    //engine to use the specified printer to print the report. Print out
    //a test page (from Printer properties) to get the correct value.
    System.Drawing.Printing.PrintDocument printDocument = new System.Drawing.Printing.PrintDocument();
    crReportDocument.PrintOptions.PrinterName = printDocument.PrinterSettings.PrinterName;
    //Start the printing process. Provide details of the print job
    //using the arguments.
    crReportDocument.PrintToPrinter(0 ,true , 1, 1);
    //Let the user know that the print job is completed
    MessageBox.Show("Report finished printing!");
    catch(Exception err)
    MessageBox.Show(err.ToString(), "Unexpected exception");
    private void Form1_Load(object sender, System.EventArgs e)
    private void button2_Click(object sender, System.EventArgs e)
    //Open the PrintDialog
    this.printDialog1.Document = this.printDocument1;
    DialogResult dr = this.printDialog1.ShowDialog();
    if(dr == DialogResult.OK)
    //Get the Copy times
    int nCopy = this.printDocument1.PrinterSettings.Copies;
    //Get the number of Start Page
    int sPage = this.printDocument1.PrinterSettings.FromPage;
    //Get the number of End Page
    int ePage = this.printDocument1.PrinterSettings.ToPage;
    string PrinterName = this.printDocument1.PrinterSettings.PrinterName;
    crReportDocument = new ReportDocument();
    //Create an instance of a report
    crReportDocument = new Chart();
    try
    //Set the printer name to print the report to. By default the sample
    //report does not have a defult printer specified. This will tell the
    //engine to use the specified printer to print the report. Print out
    //a test page (from Printer properties) to get the correct value.
    crReportDocument.PrintOptions.PrinterName = PrinterName;
    //Start the printing process. Provide details of the print job
    //using the arguments.
    crReportDocument.PrintToPrinter(nCopy, false, sPage, ePage);
    //Let the user know that the print job is completed
    MessageBox.Show("Report finished printing!");
    catch(Exception err)
    MessageBox.Show(err.ToString());

    1. This is a VB.Net forum not a Visual C# forum. For Visual C# questions try this forum.
    Visual C#
    2. Crystal Reports are not supported by Microsoft. Therefore, unless somebody responding in the Visual C# forum has experience with whichever version of Crystal Reports you are using, you will probably not receive an answer in the Visual C# forum. SAP has
    their own assistance for Crystal Reports using Visual Studio. You can try to find an appropriate forum to ask questions in at SAP in the below link.
    SAP Community Network
    La vida loca

  • SAP Crystal report on Windows Server 2012

    Hi,
    Let me explain my situation first.
    I have Windows7 dev box with VS 2010, 2012 and 2013. My application backend is Oracle 10g.
    I have an old application build in VS 2005 which I migrated to Framework 4.0 from 2.0.
    I downloaded CR executable from "http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_9.exe" and it worked fine locally.
    But when I deployed the same code on Windows Server 2012.. reports didn't appear.
    Please assist.

    Well, let's get the easy one out of the way 1st
    Licensing of the runtime. The runtime is free for win apps. For web apps it is also free - as long as the app is used within your organization. If the web app is used external to your org, you do need to obtain additional licensing. And for that you will have to contact sales: 866-681-3435
    Now, the actual issue:
    Normally, the runtime is deployed using the MSI, MSM or CLickOnce, Nothing wrong with you installing VS on the server and then CR, but I suspect you're using up a VS license for that (expensive(?)), but that is a decision for you to make. E.g.; uninstalling VS and running the CR SP 9 MSI should suffice. To actually get the viewer working, I'd like you configure the viewer as per the direction in this blog:
    Visual Studio 2012 Crystal Report not working on Windows Server 2012/ 0x800a1391 &amp;#8211; JavaScript runtime error: &…
    - Ludek

Maybe you are looking for

  • Thunderbolt to HDMI - TV out

    I have an adaptor for this, but when connecting my MBA to a new TV via HDMI, the TV screen shows my 'Mission Control' with relevant windows open, but not the content of those windows, such as a video playing in Safari. When I select the Safari window

  • Not able to post Realized Gain/Loss GL acct during foreign vendor payment

    Dear Experts. 1.  When I make a vendor payment by using F-53 for USD payment for foreign vendor.  I am supposed to get Realised Gain /Loss account for the variation on payment date. 2.  My local currency is INR and foreign Currency is USD. 3.  DIrect

  • Oracle RAC DBA Training at DBA School In Hyderabad

    DBA School Offering the best training for all Oracle, PeopleSoft and SQL DBA courses. Here Mr. Satya seelam has 8 years experience in United States, DBA School providing real time and practical knowledge and you will learn more than what you are expe

  • How the Landscape of BO - SAP BI (Dev, QA, PROD)

    Hi, I wanted to know how the landscape will be for BO -BI system. In Bi system if we create any report in Dev, then collect transport and move to QA, later that transport to PROD. But in the case of BO reports based SAP BI/BW as datasource. How we co

  • TS3778 How do I open MP4 files with VLC?

    How do I open MP4 files? I have VLC open on my desktop but cannot manage.