Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2151

Re: Stuck trying to get Crystal Reports to run out of Visual Studio on 64 bit computer

$
0
0

Check your references and Project files, maybe it's still trying to load the old CR versions.

 

Try creating a new Windows Form project.

 

Add the CR Windows.Form to the form and then add the Engine and Shared and then simply open a report with saved data and preview.

 

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using System.Windows.Forms;

using CrystalDecisions.CrystalReports.Engine;

using CrystalDecisions.Shared;

 

namespace SimpleTest

{

    public partial class Form1 : Form

    {

        public Form1()

        {

            InitializeComponent();

        }

 

        private void crystalReportViewer1_Load(object sender, EventArgs e)

        {

            CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new ReportDocument();

            rpt.Load(@"C:\Reports\World Sales Report.rpt");

            crystalReportViewer1.ReportSource = rpt;

        }

    }

}

 

Set the Project to X64 and run. Then browse to the D:\CPP Net 2015\SimpleTest\SimpleTest\SimpleTest\bin\Debug

 

and run the exe:

 

 

If that doesn't work then you need to reinstall VS and make sure it's Pro or above.

Check your AV software, it may be blocking installing and registering the COM dll's.

 

Something in your environment is causing problems...

 

Don


Viewing all articles
Browse latest Browse all 2151

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>